Skip to main content

open

Function open 

Source
pub fn open(
    key: &[u8; 32],
    nonce: &[u8; 12],
    aad: &[u8],
    sealed: &[u8],
) -> Result<Vec<u8>, SealError>
Expand description

The plaintext of a sealed payload, or SealError::Refused when the key, the nonce, the AAD or a single bit of it differ.