Function aead_decrypt

Source
pub fn aead_decrypt(
    key: AEADKey,
    iv: AEADIV,
    aad: &[u8],
    cip: &[u8],
    tag: AEADTag,
) -> Result<Vec<u8>, ProtocolError>
Expand description

Abstract AEAD decryption using algorithm. On success returns the decrypted plaintext, otherwise a CryptoError.