Skip to main content

open

Function open 

Source
pub fn open(
    container: &[u8],
    kek: &[u8; 32],
    wrap_nonce: &[u8; 24],
    wrapped_dek: &[u8; 48],
) -> Result<(Header, Vec<u8>), BlobError>
Expand description

Open a container, given the key material stored beside it.

Returns the plaintext only if the header authenticates, every chunk authenticates in order, the final chunk was sealed as final, and the plaintext hashes to the digest the header claims.