Chacha20.crypt

You're seeing just the function crypt, go back to Chacha20 module for more information.

Specs

crypt(binary(), key(), nonce(), non_neg_integer()) :: binary()

The crypt function suitable for a complete message.

This is a convenience wrapper when the full message is ready for processing.

The operations are symmetric, so if crypt(m,k,n) = c, then crypt(c,k,n) = m