Chacha20.crypt_bytes
You're seeing just the function
crypt_bytes
, go back to Chacha20 module for more information.
Specs
crypt_bytes(binary(), chacha_parameters(), [binary()]) :: {binary(), chacha_parameters()}
The crypt function suitable for streaming
Use an initial state of {k,n,0,""}
The returned parameters can be used for the next available bytes.
Any previous emitted binary can be included in the acc
, if desired.