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
XChaCha20 encryption as specified in the draft RFC.