Skip to main content

gcm_decrypt

Function gcm_decrypt 

Source
fn gcm_decrypt(
    key: &[u8],
    iv: &[u8; 12],
    aad: &[u8],
    ct: &[u8],
    tag: &[u8],
) -> Result<Vec<u8>, CipherError>
Expand description

Decrypts ct and verifies the 12-octet tag, returning the plaintext.