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”.
Interfaces
Section titled “Interfaces”| Interface | Description |
|---|---|
| DecodedEnvelope | - |
| DecodedProtectedHeader | A decoded protected header with its original encoded bytes. Use bytes verbatim when building the Enc_structure. |
| DecodedRecipient | A decoded COSE_recipient. No key unwrapping happens at this layer. |
Type Aliases
Section titled “Type Aliases”| Type Alias | Description |
|---|---|
| Alg | One of the two content-encryption schemes supported by this package. |
| UnprotectedHeaderMap | Content unprotected header map. |
Functions
Section titled “Functions”| Function | Description |
|---|---|
| decodeEnvelope | Decode the envelope at the start of data. Bytes after envelopeLength are untouched detached ciphertext. |
References
Section titled “References”CborValue
Section titled “CborValue”Re-exports CborValue