Skip to main content

unwrap

Function unwrap 

Source
pub fn unwrap(
    blob: &WrappedSecret,
    passphrase: &[u8],
) -> Result<Vec<u8>, CryptoError>
Expand description

Unwrap a WrappedSecret, re-deriving the wrapping key from the in-band parameters. Returns CryptoError::Auth on a wrong passphrase or a corrupt/tampered blob.