Skip to main content

open

Function open 

Source
pub fn open(
    a: &Admitted,
    recipient: &PrivateKey,
    domain: &[u8],
    aad: &[u8],
    blob: &[u8],
) -> Result<Zeroizing<Vec<u8>>, CryptoError>
Expand description

Opens a blob sealed to recipient under domain and aad. Refuses outside FIPS mode, then a profile that does not admit ECDH on P-384, HKDF-SHA384 and AES-256-GCM, then an empty domain (CryptoError::SealDomainEmpty), before reading the blob.