/uoscore-uedhoc-3.6.0/src/edhoc/ |
D | signature_or_mac_msg.c | 46 const struct byte_array *id_cred, in mac() argument 58 id_cred->len + cred->len + ead->len + th_enc.len); in mac() 60 TRY(_memcpy_s(context_mac.ptr, context_mac.len, id_cred->ptr, in mac() 61 id_cred->len)); in mac() 63 TRY(_memcpy_s((context_mac.ptr + id_cred->len), in mac() 64 (context_mac.len - id_cred->len), th_enc.ptr, in mac() 67 TRY(_memcpy_s((context_mac.ptr + id_cred->len + th_enc.len), in mac() 68 (context_mac.len - id_cred->len - th_enc.len), cred->ptr, in mac() 72 TRY(_memcpy_s((context_mac.ptr + id_cred->len + th_enc.len + in mac() 74 (context_mac.len - id_cred->len - th_enc.len - in mac() [all …]
|
D | ciphertext.c | 119 struct byte_array *id_cred, in ciphertext_decrypt_split() argument 167 TRY(plaintext_split(plaintext, id_cred, sig_or_mac, ead)); in ciphertext_decrypt_split() 168 PRINT_ARRAY("ID_CRED", id_cred->ptr, id_cred->len); in ciphertext_decrypt_split() 179 const struct byte_array *id_cred, in ciphertext_gen() argument 193 TRY(id_cred2kid(id_cred, &kid)); in ciphertext_gen() 211 id_cred->ptr, id_cred->len)); in ciphertext_gen() 213 TRY(_memcpy_s(plaintext->ptr + id_cred->len, in ciphertext_gen() 214 plaintext->len - id_cred->len, in ciphertext_gen() 219 id_cred->len + signature_or_mac_enc.len; in ciphertext_gen()
|
D | plaintext_encode.c | 26 enum err id_cred2kid(const struct byte_array *id_cred, struct byte_array *kid) in id_cred2kid() argument 31 TRY_EXPECT(cbor_decode_id_cred_x_map(id_cred->ptr, id_cred->len, &map, in id_cred2kid()
|
D | retrieve_cred.c | 105 if ((cred_array->ptr[i].id_cred.len == ID_cred->len) && in get_local_cred() 106 (0 == memcmp(cred_array->ptr[i].id_cred.ptr, ID_cred->ptr, in get_local_cred() 148 struct byte_array *id_cred, struct byte_array *cred, in retrieve_cred() argument 154 TRY_EXPECT(cbor_decode_id_cred_x_map(id_cred->ptr, id_cred->len, &map, in retrieve_cred() 162 TRY(get_local_cred(static_dh_auth, cred_array, id_cred, cred, in retrieve_cred()
|
/uoscore-uedhoc-3.6.0/inc/edhoc/ |
D | ciphertext.h | 31 const struct byte_array *id_cred, 53 struct byte_array *id_cred,
|
D | plaintext.h | 25 enum err id_cred2kid(const struct byte_array *id_cred, struct byte_array *kid);
|
D | retrieve_cred.h | 59 struct byte_array *id_cred, struct byte_array *cred,
|
D | signature_or_mac_msg.h | 43 const struct byte_array *id_cred,
|
/uoscore-uedhoc-3.6.0/test/edhoc_integration_tests/ |
D | initiator_responder_interaction.c | 189 cred_r.id_cred.len = test_vectors[vec_num_i].id_cred_r_len; in thread_initiator() 190 cred_r.id_cred.ptr = (uint8_t *)test_vectors[vec_num_i].id_cred_r; in thread_initiator() 288 cred_i.id_cred.len = test_vectors[vec_num_i].id_cred_i_len; in thread_responder() 289 cred_i.id_cred.ptr = (uint8_t *)test_vectors[vec_num_i].id_cred_i; in thread_responder()
|
/uoscore-uedhoc-3.6.0/samples/zephyr_edhoc/initiator/src/ |
D | main.c | 173 cred_r.id_cred.len = test_vectors[vec_num_i].id_cred_r_len; in internal_main() 174 cred_r.id_cred.ptr = (uint8_t *)test_vectors[vec_num_i].id_cred_r; in internal_main()
|
/uoscore-uedhoc-3.6.0/samples/zephyr_edhoc/responder/src/ |
D | main.c | 180 cred_i.id_cred.len = test_vectors[vec_num_i].id_cred_i_len; in internal_main() 181 cred_i.id_cred.ptr = (uint8_t *)test_vectors[vec_num_i].id_cred_i; in internal_main()
|
/uoscore-uedhoc-3.6.0/samples/linux_edhoc/initiator/src/ |
D | main.cpp | 181 cred_r.id_cred.len = test_vectors[vec_num_i].id_cred_r_len; in main() 182 cred_r.id_cred.ptr = (uint8_t *)test_vectors[vec_num_i].id_cred_r; in main()
|
/uoscore-uedhoc-3.6.0/samples/linux_edhoc/responder/src/ |
D | main.cpp | 214 cred_i.id_cred.len = test_vectors[vec_num_i].id_cred_i_len; in main() 215 cred_i.id_cred.ptr = (uint8_t *)test_vectors[vec_num_i].id_cred_i; in main()
|
/uoscore-uedhoc-3.6.0/inc/ |
D | edhoc.h | 33 struct byte_array id_cred; /*ID_CRED_x of the other party*/ member
|
/uoscore-uedhoc-3.6.0/samples/linux_edhoc_oscore/initiator_client/src/ |
D | main.cpp | 191 cred_r.id_cred.len = test_vectors[vec_num_i].id_cred_r_len; in main() 192 cred_r.id_cred.ptr = (uint8_t *)test_vectors[vec_num_i].id_cred_r; in main()
|
/uoscore-uedhoc-3.6.0/samples/linux_edhoc_oscore/responder_server/src/ |
D | main.cpp | 262 cred_i.id_cred.len = test_vectors[vec_num_i].id_cred_i_len; in main() 263 cred_i.id_cred.ptr = (uint8_t *)test_vectors[vec_num_i].id_cred_i; in main()
|