Skip to content

Struct SYN_COSE_Key

ClassList > SYN_COSE_Key

COSE_Key representation structure (RFC 9052 / RFC 9053).

  • #include <syn_cose.h>

Public Attributes

Type Name
SYN_COSE_Algorithm alg
SYN_COSE_Curve crv
uint8_t kid
size_t kid_len
SYN_COSE_KeyType kty
uint8_t priv_d
size_t priv_d_len
uint8_t pub_x
size_t pub_x_len
uint8_t pub_y
size_t pub_y_len

Public Attributes Documentation

variable alg

SYN_COSE_Algorithm SYN_COSE_Key::alg;

Algorithm identifier (0 if unused)


variable crv

SYN_COSE_Curve SYN_COSE_Key::crv;

Curve identifier (for OKP / EC2)


variable kid

uint8_t SYN_COSE_Key::kid[SYN_COSE_MAX_KID_LEN];

Key identifier


variable kid_len

size_t SYN_COSE_Key::kid_len;

Key ID length


variable kty

SYN_COSE_KeyType SYN_COSE_Key::kty;

Key Type (OKP, EC2, Symmetric)


variable priv_d

uint8_t SYN_COSE_Key::priv_d[32];

Private key scalar / Symmetric key (32 bytes)


variable priv_d_len

size_t SYN_COSE_Key::priv_d_len;

Private / Symmetric key length


variable pub_x

uint8_t SYN_COSE_Key::pub_x[32];

Public key / x-coordinate (32 bytes)


variable pub_x_len

size_t SYN_COSE_Key::pub_x_len;

Public key x length


variable pub_y

uint8_t SYN_COSE_Key::pub_y[32];

Public key y-coordinate (32 bytes for EC2)


variable pub_y_len

size_t SYN_COSE_Key::pub_y_len;

Public key y length



The documentation for this class was generated from the following file src/syntropic/proto/syn_cose.h