Searched refs:p_osc_ctx (Results 1 – 5 of 5) sorted by relevance
/third_party/libcoap/tests/ |
D | test_oscore.c | 74 FailIf_CU_ASSERT_PTR_NOT_NULL(ctx->p_osc_ctx); in t_oscore_c_1_1() 76 CU_ASSERT(CHECK_SAME(sender_key, ctx->p_osc_ctx->sender_context->sender_key)); in t_oscore_c_1_1() 78 ctx->p_osc_ctx->recipient_chain->recipient_key)); in t_oscore_c_1_1() 79 CU_ASSERT(CHECK_SAME(common_iv, ctx->p_osc_ctx->common_iv)); in t_oscore_c_1_1() 82 cose_encrypt0_set_key_id(cose, ctx->p_osc_ctx->recipient_chain->recipient_id); in t_oscore_c_1_1() 84 oscore_generate_nonce(cose, ctx->p_osc_ctx, nonce_buffer, 13); in t_oscore_c_1_1() 88 cose_encrypt0_set_key_id(cose, ctx->p_osc_ctx->sender_context->sender_id); in t_oscore_c_1_1() 90 oscore_generate_nonce(cose, ctx->p_osc_ctx, nonce_buffer, 13); in t_oscore_c_1_1() 138 FailIf_CU_ASSERT_PTR_NOT_NULL(ctx->p_osc_ctx); in t_oscore_c_1_2() 140 CU_ASSERT(CHECK_SAME(sender_key, ctx->p_osc_ctx->sender_context->sender_key)); in t_oscore_c_1_2() [all …]
|
/third_party/libcoap/src/oscore/ |
D | oscore_context.c | 104 if (c_context->p_osc_ctx) { in oscore_enter_context() 105 oscore_ctx_t *prev = c_context->p_osc_ctx; in oscore_enter_context() 106 oscore_ctx_t *next = c_context->p_osc_ctx->next; in oscore_enter_context() 114 c_context->p_osc_ctx = osc_ctx; in oscore_enter_context() 150 while (c_context->p_osc_ctx) { in oscore_free_contexts() 151 oscore_ctx_t *osc_ctx = c_context->p_osc_ctx; in oscore_free_contexts() 153 c_context->p_osc_ctx = osc_ctx->next; in oscore_free_contexts() 162 oscore_ctx_t *next = c_context->p_osc_ctx; in oscore_remove_context() 168 c_context->p_osc_ctx = next->next; in oscore_remove_context() 190 oscore_ctx_t *pt = c_context->p_osc_ctx; in oscore_find_context()
|
/third_party/libcoap/include/coap3/ |
D | coap_net_internal.h | 95 struct oscore_ctx_t *p_osc_ctx; /**< primary oscore context */ member
|
/third_party/libcoap/src/ |
D | coap_oscore.c | 805 if (session->context->p_osc_ctx == NULL) { in coap_oscore_decrypt_pdu() 2086 if (context->p_osc_ctx == NULL) in coap_new_oscore_recipient() 2088 if (oscore_add_recipient(context->p_osc_ctx, recipient_id, 0) == NULL) in coap_new_oscore_recipient() 2096 if (context->p_osc_ctx == NULL) in coap_delete_oscore_recipient() 2098 return oscore_delete_recipient(context->p_osc_ctx, recipient_id); in coap_delete_oscore_recipient()
|
D | coap_net.c | 702 if (ctx->p_osc_ctx) in coap_option_check_critical()
|