Skip to main content

decode_encrypted

Function decode_encrypted 

Source
pub fn decode_encrypted(bytes: &[u8]) -> Result<EncryptedMessage, DecodeError>
Expand description

Strict-decode a seal-only tagged COSE_Encrypt (no opening, no claims).

ยงErrors

Any DecodeError the strict profile decoder emits; claims labels in a seal-only message are rejected.