Skip to content

cose

COSE decode-only inspection surface (FIP-1253): read an untrusted envelope into its typed protected header, unprotected header, and recipient list. See docs/tech-spec.md, “Wire profile” and “CDDL”.

InterfaceDescription
DecodedEnvelope-
DecodedProtectedHeaderA decoded protected header with its original encoded bytes. Use bytes verbatim when building the Enc_structure.
DecodedRecipientA decoded COSE_recipient. No key unwrapping happens at this layer.
Type AliasDescription
AlgOne of the two content-encryption schemes supported by this package.
UnprotectedHeaderMapContent unprotected header map.
FunctionDescription
decodeEnvelopeDecode the envelope at the start of data. Bytes after envelopeLength are untouched detached ciphertext.

Re-exports CborValue