Vocabularycrypto.
chacha20Inputs| data | a byte-array |
| key | 8 u32 values (256 bits) |
| nonce | 3 u32 values (96 bits) |
| counter | starting block counter |
OutputsWord descriptionEncrypts or decrypts data using ChaCha20. XOR is symmetric, so the same function works for both encryption and decryption.
ExamplesUSING: byte-arrays crypto.chacha20 ;
"Hello" >byte-array 8 0 <array> 3 0 <array> 1 chacha20-crypt
8 0 <array> 3 0 <array> 1 chacha20-crypt >string
! => "Hello"
Definition