Searched refs:osc_ctx (Results 1 – 6 of 6) sorted by relevance
/third_party/libcoap/src/oscore/ |
D | oscore_context.c | 51 oscore_ctx_t *osc_ctx); 103 oscore_enter_context(coap_context_t *c_context, oscore_ctx_t *osc_ctx) { in oscore_enter_context() argument 112 prev->next = osc_ctx; in oscore_enter_context() 114 c_context->p_osc_ctx = osc_ctx; in oscore_enter_context() 125 oscore_free_context(oscore_ctx_t *osc_ctx) { in oscore_free_context() argument 126 if (osc_ctx == NULL) in oscore_free_context() 128 if (osc_ctx->sender_context) { in oscore_free_context() 129 coap_delete_bin_const(osc_ctx->sender_context->sender_id); in oscore_free_context() 130 coap_delete_bin_const(osc_ctx->sender_context->sender_key); in oscore_free_context() 131 coap_free_type(COAP_OSCORE_SEN, osc_ctx->sender_context); in oscore_free_context() [all …]
|
D | oscore.c | 399 if (shift > ctx->osc_ctx->replay_window_size || shift > 63) { in oscore_validate_sender_seq()
|
/third_party/libcoap/src/ |
D | coap_oscore.c | 36 oscore_ctx_t *osc_ctx; in coap_oscore_initiate() local 55 osc_ctx = coap_oscore_init(session->context, oscore_conf); in coap_oscore_initiate() 56 if (osc_ctx == NULL) { in coap_oscore_initiate() 59 session->recipient_ctx = osc_ctx->recipient_chain; in coap_oscore_initiate() 129 oscore_ctx_t *osc_ctx = coap_oscore_init(context, oscore_conf); in coap_context_oscore_server() local 132 if (osc_ctx) in coap_context_oscore_server() 292 oscore_ctx_t *osc_ctx = rcp_ctx ? rcp_ctx->osc_ctx : NULL; in coap_oscore_new_pdu_encrypted() local 299 oscore_sender_ctx_t *snd_ctx = osc_ctx ? osc_ctx->sender_context : NULL; in coap_oscore_new_pdu_encrypted() 333 osc_ctx = rcp_ctx->osc_ctx; in coap_oscore_new_pdu_encrypted() 334 snd_ctx = osc_ctx->sender_context; in coap_oscore_new_pdu_encrypted() [all …]
|
D | coap_resource.c | 850 if (session->recipient_ctx->osc_ctx && 851 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);
|
D | coap_subscribe.c | 178 oscore_ctx_t *osc_ctx; in coap_persist_observe_add() local 262 osc_ctx = oscore_find_context(session->context, oscore_key_id, in coap_persist_observe_add() 265 if (osc_ctx) { in coap_persist_observe_add()
|
/third_party/libcoap/include/oscore/ |
D | oscore_context.h | 115 oscore_ctx_t *osc_ctx; member 190 void oscore_update_ctx(oscore_ctx_t *osc_ctx, coap_bin_const_t *id_context); 192 void oscore_free_context(oscore_ctx_t *osc_ctx); 196 int oscore_remove_context(coap_context_t *c_context, oscore_ctx_t *osc_ctx); 211 int oscore_delete_recipient(oscore_ctx_t *osc_ctx, coap_bin_const_t *rid); 268 int oscore_derive_keystream(oscore_ctx_t *osc_ctx,
|