Skip to main content

decrypt_payload

Function decrypt_payload 

Source
pub fn decrypt_payload(
    cipher: Option<&AesCipher>,
    bytes: &[u8],
) -> Result<Option<Vec<u8>>, IoError>
Expand description

Inverse of encrypt_payload: returns None on key mismatch or tag failure.