Vocabularycrypto.
chacha20Inputs| ciphertext | a byte-array |
| key-bytes | 32-byte array |
| nonce-bytes | 12-byte array |
| counter | starting block counter |
OutputsWord descriptionDecrypts ciphertext bytes using ChaCha20, returning a string.
ExamplesUSING: byte-arrays crypto.chacha20 ;
"Hello" 32 <byte-array> 12 <byte-array> 1 chacha20-encrypt-string
32 <byte-array> 12 <byte-array> 1 chacha20-decrypt-string
! => "Hello"
Definition