Function encrypt

pub fn encrypt(
    secret_key: &SecretKey,
    nonce: &Nonce,
    initial_counter: u32,
    plaintext: &[u8],
    dst_out: &mut [u8],
) -> Result<(), UnknownCryptoError> 
Available on crate feature dep_orion only.
Expand description

IETF ChaCha20 encryption as specified in the RFC 8439.