pub(crate) fn decode_sealed_symmetric_key(
header: &Header,
key_bytes: Vec<u8>,
) -> Result<SymmetricCryptoKey, DecodeSealedKeyError>Expand description
Decodes the raw key bytes recovered from a key envelope into a SymmetricCryptoKey, using the
content format declared in the envelope’s protected header.
Shared by the key envelopes
(PasswordProtectedKeyEnvelope, SecretProtectedKeyEnvelope, and
SymmetricKeyEnvelope), which all store the wrapped key using the same content-format-tagged
encoding.