Skip to main content

open

Function open 

Source
pub fn open(
    data_key: &Key,
    ctx: &Context,
    blob: &[u8],
) -> Result<Vec<u8>, OpenError>
Expand description

Decrypts a blob made by seal with the same key and context. Any change to the blob, the context or the key is an error, never partial plaintext.

ยงErrors

OpenError for a blob that does not open under this key and context.