pub fn unwrap(
suite: Suite,
key: &[u8; 32],
sealed: &[u8; 48],
) -> Result<[u8; 32]>Expand description
Opens a 48-byte sealed value under K_wrap with the AEAD of suite, returning the value.
§Errors
Fails when the tag does not authenticate: a wrong key - a different label, sid or ISK - a
seal made under the other suite, or any changed byte of the ciphertext or tag. It also fails
when the build’s cipher resolver has no AEAD for suite. The error names no key, value or
seal bytes.