Struct 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¶
Algorithm identifier (0 if unused)
variable crv¶
Curve identifier (for OKP / EC2)
variable kid¶
Key identifier
variable kid_len¶
Key ID length
variable kty¶
Key Type (OKP, EC2, Symmetric)
variable priv_d¶
Private key scalar / Symmetric key (32 bytes)
variable priv_d_len¶
Private / Symmetric key length
variable pub_x¶
Public key / x-coordinate (32 bytes)
variable pub_x_len¶
Public key x length
variable pub_y¶
Public key y-coordinate (32 bytes for EC2)
variable pub_y_len¶
Public key y length
The documentation for this class was generated from the following file src/syntropic/proto/syn_cose.h