Skip to main content

Module cose

Module cose 

Source
Expand description

Generic COSE_Sign1 envelope (RFC 9052) for CBOR-serializable payloads.

Crypto-agnostic: signing and verification are supplied as closures, with Ed25519 / P-256 / P-384 convenience implementations behind features.

This module is deliberately self-contained — it knows nothing about Profile 0.2 — so it can be extracted into its own crate the moment a second consumer needs it.

Structs§

CoseSigned
Generic COSE_Sign1 signed envelope wrapping a payload T.

Enums§

CoseError
COSE signing and verification errors.
SigningAlgorithm
Supported COSE signing algorithms.