Home
last modified time | relevance | path

Searched refs:id_context (Results 1 – 9 of 9) sorted by relevance

/third_party/libcoap/src/oscore/
Doscore_context.c58 coap_bin_const_t *id_context, in compose_info() argument
69 if (id_context != NULL && id_context->length > 0) { in compose_info()
72 id_context->s, in compose_info()
73 id_context->length); in compose_info()
143 coap_delete_bin_const(osc_ctx->id_context); in oscore_free_context()
204 if (pt->id_context != NULL && pt->id_context->length > 8) { in oscore_find_context()
205 ok = ok + (memcmp(pt->id_context->s, oscore_r2, 8) != 0); in oscore_find_context()
210 if (pt->id_context != NULL) { in oscore_find_context()
211 if (ctxkey_id->length != pt->id_context->length) in oscore_find_context()
214 ok = ok + (memcmp(pt->id_context->s, in oscore_find_context()
[all …]
/third_party/libcoap/include/oscore/
Doscore_context.h90 coap_bin_const_t *id_context; /**< contains GID in case of group */ member
182 coap_bin_const_t *id_context);
190 void oscore_update_ctx(oscore_ctx_t *osc_ctx, coap_bin_const_t *id_context);
272 coap_bin_const_t *id_context,
/third_party/libcoap/src/
Dcoap_oscore.c44 coap_binary_t *id_context = coap_new_binary(8); in coap_oscore_initiate() local
46 if (id_context == NULL) in coap_oscore_initiate()
48 coap_delete_bin_const(oscore_conf->id_context); in coap_oscore_initiate()
49 coap_prng(id_context->s, id_context->length); in coap_oscore_initiate()
50 oscore_conf->id_context = (coap_bin_const_t *)id_context; in coap_oscore_initiate()
372 cose_encrypt0_set_kid_context(cose, osc_ctx->id_context); in coap_oscore_new_pdu_encrypted()
433 cose_encrypt0_set_kid_context(cose, osc_ctx->id_context); in coap_oscore_new_pdu_encrypted()
1039 if (ptr && !coap_binary_equal(osc_ctx->id_context, &cose->kid_context)) { in coap_oscore_decrypt_pdu()
1043 osc_ctx->id_context->length); in coap_oscore_decrypt_pdu()
1054 osc_ctx->id_context->s, in coap_oscore_decrypt_pdu()
[all …]
Dcoap_subscribe.c185 coap_bin_const_t id_context; in coap_persist_observe_add() local
210 id_context.length = oscore_cbor_get_element_size(&info_buf, in coap_persist_observe_add()
212 id_context.s = info_buf; in coap_persist_observe_add()
213 info_buf += id_context.length; in coap_persist_observe_add()
263 have_id_context ? &id_context : NULL, NULL, in coap_persist_observe_add()
Dcoap_resource.c851 session->recipient_ctx->osc_ctx->id_context) {
854 session->recipient_ctx->osc_ctx->id_context->s,
855 session->recipient_ctx->osc_ctx->id_context->length);
/third_party/libcoap/examples/interop/
Dc_client.conf3 id_context,hex,"37cbf3210017a2d3"
Dd_server.conf3 id_context,hex,"37cbf3210017a2d3"
/third_party/libcoap/include/coap3/
Dcoap_oscore_internal.h40 coap_bin_const_t *id_context; /**< Common ID context */ member
/third_party/libcoap/man/
Dcoap-oscore-conf.txt.in79 *id_context* ::