pub fn decrypt<'c>(
ciphertext: &'c mut [u8],
key: &LessSafeKey,
) -> Result<&'c [u8], DecryptError>Expand description
Decrypts a ciphertext using key.
Expect nonce in the prefix, like encrypt produces.
pub fn decrypt<'c>(
ciphertext: &'c mut [u8],
key: &LessSafeKey,
) -> Result<&'c [u8], DecryptError>Decrypts a ciphertext using key.
Expect nonce in the prefix, like encrypt produces.