Searched refs:kid_context (Results 1 – 5 of 5) sorted by relevance
/third_party/libcoap/src/oscore/ |
D | oscore.c | 195 if (cose->kid_context.length > 0 && cose->kid_context.s != NULL) { in oscore_encode_option_value() 202 cose->kid_context.s, in oscore_encode_option_value() 203 cose->kid_context.length); in oscore_encode_option_value() 207 option_buffer[offset] = (uint8_t)cose->kid_context.length; in oscore_encode_option_value() 210 cose->kid_context.s, in oscore_encode_option_value() 211 (uint8_t)cose->kid_context.length); in oscore_encode_option_value() 212 offset += cose->kid_context.length; in oscore_encode_option_value() 213 assert(rem_space > cose->kid_context.length); in oscore_encode_option_value() 214 rem_space -= cose->kid_context.length; in oscore_encode_option_value() 279 coap_bin_const_t kid_context; in oscore_decode_option_value() local [all …]
|
D | oscore_cose.c | 363 *buffer = ptr->kid_context.s; in cose_encrypt0_get_kid_context() 364 return ptr->kid_context.length; in cose_encrypt0_get_kid_context() 369 coap_bin_const_t *kid_context) { in cose_encrypt0_set_kid_context() argument 370 if (kid_context) { in cose_encrypt0_set_kid_context() 371 ptr->kid_context = *kid_context; in cose_encrypt0_set_kid_context() 373 ptr->kid_context.length = 0; in cose_encrypt0_set_kid_context() 374 ptr->kid_context.s = NULL; in cose_encrypt0_set_kid_context()
|
/third_party/libcoap/src/ |
D | coap_oscore.c | 254 oscore_log_hex_value(COAP_LOG_OSCORE, "kid_context", &cose->kid_context); in dump_cose() 272 coap_bin_const_t *kid_context, in coap_oscore_new_pdu_encrypted() argument 420 if (kid_context) { in coap_oscore_new_pdu_encrypted() 421 cose_encrypt0_set_kid_context(cose, kid_context); in coap_oscore_new_pdu_encrypted() 432 if (kid_context) in coap_oscore_new_pdu_encrypted() 714 coap_bin_const_t *kid_context, in build_and_send_error_pdu() argument 733 } else if (kid_context == NULL) { in build_and_send_error_pdu() 743 if ((echo_data || kid_context) && encrypt_oscore) { in build_and_send_error_pdu() 747 coap_oscore_new_pdu_encrypted(session, err_pdu, kid_context, in build_and_send_error_pdu() 907 &cose->kid_context, in coap_oscore_decrypt_pdu() [all …]
|
/third_party/libcoap/include/oscore/ |
D | oscore_cose.h | 204 coap_bin_const_t kid_context; member 253 coap_bin_const_t *kid_context);
|
/third_party/libcoap/include/coap3/ |
D | coap_oscore_internal.h | 85 coap_bin_const_t *kid_context,
|