/uoscore-uedhoc-3.6.0/src/edhoc/ |
D | responder.c | 191 enum err msg2_gen(struct edhoc_responder_context *c, struct runtime_context *rc, in msg2_gen() argument 194 PRINT_ARRAY("message_1 (CBOR Sequence)", rc->msg.ptr, rc->msg.len); in msg2_gen() 200 TRY(msg1_parse(&rc->msg, &method, &suites_i, &g_x, c_i, &rc->ead)); in msg2_gen() 211 &rc->suite)); in msg2_gen() 214 authentication_type_get(method, &rc->static_dh_i, &static_dh_r); in msg2_gen() 217 BYTE_ARRAY_NEW(th2, HASH_SIZE, get_hash_len(rc->suite.edhoc_hash)); in msg2_gen() 218 TRY(hash(rc->suite.edhoc_hash, &rc->msg, &rc->msg1_hash)); in msg2_gen() 219 TRY(th2_calculate(rc->suite.edhoc_hash, &rc->msg1_hash, &c->g_y, in msg2_gen() 224 TRY(shared_secret_derive(rc->suite.edhoc_ecdh, &c->y, &g_x, g_xy.ptr)); in msg2_gen() 229 TRY(hkdf_extract(rc->suite.edhoc_hash, &th2, &g_xy, PRK_2e.ptr)); in msg2_gen() [all …]
|
D | initiator.c | 82 struct runtime_context *rc) in msg1_gen() argument 130 TRY_EXPECT(cbor_encode_message_1(rc->msg.ptr, rc->msg.len, &m1, in msg1_gen() 133 rc->msg.len = (uint32_t)payload_len_out; in msg1_gen() 135 PRINT_ARRAY("message_1 (CBOR Sequence)", rc->msg.ptr, rc->msg.len); in msg1_gen() 138 &rc->suite)); in msg1_gen() 140 TRY(hash(rc->suite.edhoc_hash, &rc->msg, &rc->msg1_hash)); in msg1_gen() 145 struct runtime_context *rc, in msg2_process() argument 151 BYTE_ARRAY_NEW(g_y, G_Y_SIZE, get_ecdh_pk_len(rc->suite.edhoc_ecdh)); in msg2_process() 152 uint32_t ciphertext_len = rc->msg.len - g_y.len - c_r->len; in msg2_process() 156 PRINT_ARRAY("message_2 (CBOR Sequence)", rc->msg.ptr, rc->msg.len); in msg2_process() [all …]
|
/uoscore-uedhoc-3.6.0/src/oscore/ |
D | security_context.c | 95 struct recipient_context *rc) in derive_recipient_key() argument 97 TRY(derive(cc, &rc->recipient_id, KEY, &rc->recipient_key)); in derive_recipient_key() 99 PRINT_ARRAY("Recipient Key", rc->recipient_key.ptr, in derive_recipient_key() 100 rc->recipient_key.len); in derive_recipient_key() 130 c->rc.notification_num_initialized = false; in oscore_context_init() 131 server_replay_window_init(&c->rc.replay_window); in oscore_context_init() 132 c->rc.recipient_id.len = params->recipient_id.len; in oscore_context_init() 133 c->rc.recipient_id.ptr = c->rc.recipient_id_buf; in oscore_context_init() 134 memcpy(c->rc.recipient_id.ptr, params->recipient_id.ptr, in oscore_context_init() 136 c->rc.recipient_key.len = sizeof(c->rc.recipient_key_buf); in oscore_context_init() [all …]
|
D | oscore2coap.c | 302 &c->rc.recipient_key)); in decrypt_wrapper() 373 if (!array_equals(&c->rc.recipient_id, &oscore_option.kid)) { in oscore2coap() 383 ssn, &c->rc.replay_window)) { in oscore2coap() 409 ssn, &c->rc.replay_window)); in oscore2coap() 421 &c->rc.replay_window); in oscore2coap() 433 c->rc.notification_num, in oscore2coap() 434 c->rc.notification_num_initialized, in oscore2coap() 445 &c->rc.notification_num, in oscore2coap() 446 &c->rc.notification_num_initialized, in oscore2coap()
|
D | coap2oscore.c | 458 .recipient_id = c->rc.recipient_id, in generate_new_ssn()
|
/uoscore-uedhoc-3.6.0/inc/ |
D | edhoc_internal.h | 45 struct runtime_context *rc); 62 struct runtime_context *rc, struct cred_array *cred_r_array, 75 enum err msg4_process(struct runtime_context *rc); 86 enum err msg2_gen(struct edhoc_responder_context *c, struct runtime_context *rc, 106 struct runtime_context *rc, 120 struct runtime_context *rc);
|
/uoscore-uedhoc-3.6.0/scripts/ |
D | gen_coverage_report.sh | 22 lcov --capture --directory ./ --output-file lcov.info -q --rc lcov_branch_coverage=1
|
D | ble_connect.sh | 57 invoke-rc.d bluetooth restart
|
/uoscore-uedhoc-3.6.0/test/oscore_integration_tests/ |
D | oscore_integration_tests.c | 86 zassert_mem_equal__(c_client.rc.recipient_key.ptr, T1__RECIPIENT_KEY, in t1_oscore_client_request_response() 87 c_client.rc.recipient_key.len, in t1_oscore_client_request_response() 243 c_server.rc.recipient_id.ptr = wrong_recipient_id; in t2_oscore_server_request_response() 244 c_server.rc.recipient_id.len = sizeof(wrong_recipient_id); in t2_oscore_server_request_response() 292 zassert_mem_equal__(c_server.rc.recipient_key.ptr, T4__RECIPIENT_KEY, in t4_oscore_server_key_derivation() 293 c_server.rc.recipient_key.len, in t4_oscore_server_key_derivation() 333 zassert_mem_equal__(c_server.rc.recipient_key.ptr, T6__RECIPIENT_KEY, in t6_oscore_server_key_derivation() 334 c_server.rc.recipient_key.len, in t6_oscore_server_key_derivation()
|
/uoscore-uedhoc-3.6.0/inc/oscore/ |
D | security_context.h | 98 struct recipient_context rc; member
|