|
t_cose
|
#include <t_cose_sign1_verify.h>
Data Fields | |
| int32_t | cose_algorithm_id |
| struct q_useful_buf_c | kid |
| struct q_useful_buf_c | iv |
| struct q_useful_buf_c | partial_iv |
| struct q_useful_buf_c | content_type_tstr |
| uint32_t | content_type_uint |
The result of parsing a set of COSE header parameters. The pointers in this are all back into the COSE_Sign1 blob passed in to t_cose_sign1_verify() as the sign1 parameter.
Approximate size on a 64-bit machine is 80 bytes and on a 32-bit machine is 40.
| struct q_useful_buf_c t_cose_parameters::content_type_tstr |
The content type as a MIME type like "text/plain". NULL_Q_USEFUL_BUF_C if parameter is not present
| uint32_t t_cose_parameters::content_type_uint |
The content type as a CoAP Content-Format integer. T_COSE_EMPTY_UINT_CONTENT_TYPE if parameter is not present. Allowed range is 0 to UINT16_MAX per RFC 7252.
| int32_t t_cose_parameters::cose_algorithm_id |
The algorithm ID. T_COSE_UNSET_ALGORITHM_ID if the algorithm ID parameter is not present. String type algorithm IDs are not supported. See the IANA COSE Registry for the algorithms corresponding to the integer values.
| struct q_useful_buf_c t_cose_parameters::iv |
The initialization vector. NULL_Q_USEFUL_BUF_C if parameter is not present
| struct q_useful_buf_c t_cose_parameters::kid |
The COSE key ID. NULL_Q_USEFUL_BUF_C if parameter is not present
| struct q_useful_buf_c t_cose_parameters::partial_iv |
The partial initialization vector. NULL_Q_USEFUL_BUF_C if parameter is not present