pub fn crypto_aead_chacha20poly1305_ietf_decrypt_detached_inplace(
data: &mut [u8],
mac: &Mac,
associated_data: Option<&[u8]>,
nonce: &Nonce,
key: &Key,
) -> Result<(), Error>Expand description
In-place detached variant of
crypto_aead_chacha20poly1305_ietf_decrypt_detached. On a failed tag
check data is left unchanged, so the ciphertext survives (libsodium
zeroes it; see Behavior on failure).
ยงErrors
Returns an error if data exceeds the maximum supported message length or
authentication fails.