Vocabularycrypto.
chacha20Inputs| data | a byte-array |
| key-bytes | 32-byte array |
| nonce-bytes | 12-byte array |
| counter | starting block counter |
OutputsWord descriptionEncrypts or decrypts data using ChaCha20 with raw byte keys and nonces. Converts bytes to u32 arrays internally.
ExamplesUSING: byte-arrays crypto.chacha20 ;
"Hello" >byte-array 32 <byte-array> 12 <byte-array> 1 chacha20-crypt-bytes
32 <byte-array> 12 <byte-array> 1 chacha20-crypt-bytes >string
! => "Hello"
Definition