Skip to main content

decrypt

Function decrypt 

Source
pub fn decrypt(session_key: &SessionKey, sealed: &Sealed) -> Result<Vec<u8>>
Expand description

Decrypt a Sealed blob under session_key. Returns plaintext on success; errors (AEAD authentication failed) if the ciphertext was tampered or the wrong session key was used.