Home
last modified time | relevance | path

Searched refs:id_cred (Results 1 – 16 of 16) sorted by relevance

/uoscore-uedhoc-3.6.0/src/edhoc/
Dsignature_or_mac_msg.c46 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 …]
Dciphertext.c119 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()
Dplaintext_encode.c26 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()
Dretrieve_cred.c105 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/
Dciphertext.h31 const struct byte_array *id_cred,
53 struct byte_array *id_cred,
Dplaintext.h25 enum err id_cred2kid(const struct byte_array *id_cred, struct byte_array *kid);
Dretrieve_cred.h59 struct byte_array *id_cred, struct byte_array *cred,
Dsignature_or_mac_msg.h43 const struct byte_array *id_cred,
/uoscore-uedhoc-3.6.0/test/edhoc_integration_tests/
Dinitiator_responder_interaction.c189 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/
Dmain.c173 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/
Dmain.c180 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/
Dmain.cpp181 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/
Dmain.cpp214 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/
Dedhoc.h33 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/
Dmain.cpp191 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/
Dmain.cpp262 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()