64#define COAP_MAX_HEADER_SIZE 70
67#define OSCORE_DECRYPTION_ERROR 100
68#define PACKET_SERIALIZATION_ERROR 102
92 size_t option_buf_len,
95 uint8_t appendix_b_2);
104#if COAP_OSCORE_GROUP_SUPPORT
106void oscore_populate_sign(cose_sign1_t *sign,
116size_t oscore_prepare_sig_structure(uint8_t *sigptr,
118 const uint8_t *e_aad_buffer,
127 size_t external_aad_len,
133 const uint8_t *oscore_option,
134 size_t oscore_option_len,
136#
if COAP_OSCORE_GROUP_SUPPORT
139 uint8_t *external_aad_ptr,
140 size_t external_aad_size);
size_t oscore_prepare_aad(const uint8_t *external_aad_buffer, size_t external_aad_len, uint8_t *aad_buffer, size_t aad_size)
uint8_t oscore_validate_sender_seq(oscore_recipient_ctx_t *ctx, cose_encrypt0_t *cose)
int oscore_decode_option_value(const uint8_t *option_value, size_t option_len, cose_encrypt0_t *cose)
uint8_t oscore_increment_sender_seq(oscore_ctx_t *ctx)
void oscore_roll_back_seq(oscore_recipient_ctx_t *ctx)
uint8_t * oscore_cs_key_params(cose_curve_t param, int8_t param_type, size_t *len)
void oscore_generate_nonce(cose_encrypt0_t *ptr, oscore_ctx_t *ctx, uint8_t *buffer, uint8_t size)
uint8_t * oscore_cs_params(int8_t param, int8_t param_type, size_t *len)
size_t oscore_prepare_e_aad(oscore_ctx_t *ctx, cose_encrypt0_t *cose, const uint8_t *oscore_option, size_t oscore_option_len, coap_crypto_cred_t *sender_cred, uint8_t *external_aad_ptr, size_t external_aad_size)
ssize_t oscore_encode_option_value(uint8_t *option_buffer, size_t option_buf_len, cose_encrypt0_t *cose, uint8_t group_flag, uint8_t appendix_b_2)
Encode the OSCORE option.
An implementation of the Object Security for Constrained RESTful Environments (RFC 8613).
An implementation of the CBOR Object Signing and Encryption (RFC).
Holds credential definitions.
Holds private key definitions.