Skip to main content

Module cose

Module cose 

Source
Expand description

COSE_Sign1 — CBOR-encoded signature wrapper (RFC 8152).

Wraps a single signature in the COSE_Sign1 structure:

COSE_Sign1 = [
    protected : bstr .cbor {1: algorithm},
    unprotected : {},
    payload : bstr,
    signature : bstr
]

Used in IoT and edge computing for compact binary signatures. The implementation uses a minimal CBOR encoder for the specific COSE_Sign1 structure — no external CBOR dependency.

Modules§

alg
Algorithm identifiers (subset of IANA COSE Algorithms registry).

Structs§

CoseSign1
A COSE_Sign1 structure.

Enums§

CoseError
Errors during COSE operations.

Constants§

COSE_ALG_PARAM
Standard COSE algorithm parameter key.
COSE_SIGN1_TAG
CBOR tag for COSE_Sign1 (RFC 8152 §4.1).