pub fn crypto_aead_xchacha20poly1305_ietf_decrypt_detached(
message: &mut [u8],
ciphertext: &[u8],
mac: &Mac,
associated_data: Option<&[u8]>,
nonce: &Nonce,
key: &Key,
) -> Result<(), Error>Expand description
Detached version of crypto_aead_xchacha20poly1305_ietf_decrypt.
Compatible with libsodium’s
crypto_aead_xchacha20poly1305_ietf_decrypt_detached.
§Errors
Returns an error if ciphertext is too long, message.len() does not equal
ciphertext.len(), or authentication fails.