Crate cosey

source ·
Expand description

§cosey

Data types and serde for public COSE_Keys

https://tools.ietf.org/html/rfc8152#section-7

A COSE Key structure is built on a CBOR map object. The set of common parameters that can appear in a COSE Key can be found in the IANA “COSE Key Common Parameters” registry (Section 16.5).

https://www.iana.org/assignments/cose/cose.xhtml#key-common-parameters

Additional parameters defined for specific key types can be found in the IANA “COSE Key Type Parameters” registry (Section 16.6).

https://www.iana.org/assignments/cose/cose.xhtml#key-type-parameters

Key Type 1 (OKP) -1: crv -2: x (x-coordinate) -4: d (private key)

Key Type 2 (EC2) -1: crv -2: x (x-coordinate) -3: y (y-coordinate) -4: d (private key)

Key Type 4 (Symmetric) -1: k (key value)

Structs§

Enums§