| t_cose
    | 
#include <t_cose_sign1_sign.h>
| Data Fields | |
| struct q_useful_buf_c | protected_parameters | 
| int32_t | cose_algorithm_id | 
| struct t_cose_key | signing_key | 
| uint32_t | option_flags | 
| struct q_useful_buf_c | kid | 
| uint32_t | content_type_uint | 
| const char * | content_type_tstr | 
| struct q_useful_buf | auxiliary_buffer | 
| size_t | auxiliary_buffer_size | 
This is the context for creating a COSE_Sign1 structure. The caller should allocate it and pass it to the functions here. This is about 100 bytes so it fits easily on the stack. 
| struct q_useful_buf t_cose_sign1_sign_ctx::auxiliary_buffer | 
A auxiliary buffer provided by the caller, used to serialize the Sig_Structure. This is only needed when using EdDSA, as otherwise the Sig_Structure is hashed incrementally.