| /uoscore-uedhoc-latest/samples/linux_edhoc/responder/src/ |
| D | main.cpp | 179 struct edhoc_responder_context c_r; in main() local 189 c_r.sock = &sockfd; in main() 190 c_r.c_r.ptr = (uint8_t *)test_vectors[vec_num_i].c_r; in main() 191 c_r.c_r.len = test_vectors[vec_num_i].c_r_len; in main() 192 c_r.suites_r.len = test_vectors[vec_num_i].SUITES_R_len; in main() 193 c_r.suites_r.ptr = (uint8_t *)test_vectors[vec_num_i].SUITES_R; in main() 194 c_r.ead_2.len = test_vectors[vec_num_i].ead_2_len; in main() 195 c_r.ead_2.ptr = (uint8_t *)test_vectors[vec_num_i].ead_2; in main() 196 c_r.ead_4.len = test_vectors[vec_num_i].ead_4_len; in main() 197 c_r.ead_4.ptr = (uint8_t *)test_vectors[vec_num_i].ead_4; in main() [all …]
|
| /uoscore-uedhoc-latest/samples/zephyr_edhoc/responder/src/ |
| D | main.c | 147 struct edhoc_responder_context c_r; in internal_main() local 154 c_r.sock = &sockfd; in internal_main() 155 c_r.c_r.ptr = (uint8_t *)test_vectors[vec_num_i].c_r; in internal_main() 156 c_r.c_r.len = test_vectors[vec_num_i].c_r_len; in internal_main() 157 c_r.suites_r.len = test_vectors[vec_num_i].SUITES_R_len; in internal_main() 158 c_r.suites_r.ptr = (uint8_t *)test_vectors[vec_num_i].SUITES_R; in internal_main() 159 c_r.ead_2.len = test_vectors[vec_num_i].ead_2_len; in internal_main() 160 c_r.ead_2.ptr = (uint8_t *)test_vectors[vec_num_i].ead_2; in internal_main() 161 c_r.ead_4.len = test_vectors[vec_num_i].ead_4_len; in internal_main() 162 c_r.ead_4.ptr = (uint8_t *)test_vectors[vec_num_i].ead_4; in internal_main() [all …]
|
| /uoscore-uedhoc-latest/test/edhoc_integration_tests/ |
| D | edhoc_tests_rfc9529.c | 165 struct edhoc_responder_context c_r; in test_edhoc_responder_x509_x5t_rfc9529() local 175 c_r.sock = NULL; in test_edhoc_responder_x509_x5t_rfc9529() 176 c_r.c_r.ptr = (uint8_t *)T1_RFC9529__C_R; in test_edhoc_responder_x509_x5t_rfc9529() 177 c_r.c_r.len = T1_RFC9529__C_R_LEN; in test_edhoc_responder_x509_x5t_rfc9529() 178 c_r.suites_r.len = T1_RFC9529__SUITES_R_LEN; in test_edhoc_responder_x509_x5t_rfc9529() 179 c_r.suites_r.ptr = (uint8_t *)T1_RFC9529__SUITES_R; in test_edhoc_responder_x509_x5t_rfc9529() 180 c_r.ead_2.len = 0; in test_edhoc_responder_x509_x5t_rfc9529() 181 c_r.ead_2.ptr = NULL; in test_edhoc_responder_x509_x5t_rfc9529() 182 c_r.ead_4.len = 0; in test_edhoc_responder_x509_x5t_rfc9529() 183 c_r.ead_4.ptr = NULL; in test_edhoc_responder_x509_x5t_rfc9529() [all …]
|
| D | initiator_responder_interaction.c | 260 struct edhoc_responder_context c_r; in thread_responder() local 262 c_r.sock = NULL; in thread_responder() 263 c_r.c_r.ptr = (uint8_t *)test_vectors[vec_num_i].c_r; in thread_responder() 264 c_r.c_r.len = test_vectors[vec_num_i].c_r_len; in thread_responder() 265 c_r.suites_r.len = test_vectors[vec_num_i].SUITES_R_len; in thread_responder() 266 c_r.suites_r.ptr = (uint8_t *)test_vectors[vec_num_i].SUITES_R; in thread_responder() 267 c_r.ead_2.len = test_vectors[vec_num_i].ead_2_len; in thread_responder() 268 c_r.ead_2.ptr = (uint8_t *)test_vectors[vec_num_i].ead_2; in thread_responder() 269 c_r.ead_4.len = test_vectors[vec_num_i].ead_4_len; in thread_responder() 270 c_r.ead_4.ptr = (uint8_t *)test_vectors[vec_num_i].ead_4; in thread_responder() [all …]
|
| /uoscore-uedhoc-latest/samples/linux_edhoc_oscore/responder_server/src/ |
| D | main.cpp | 229 struct edhoc_responder_context c_r; in main() local 236 c_r.sock = &sockfd; in main() 237 c_r.c_r.ptr = (uint8_t *)test_vectors[vec_num_i].c_r; in main() 238 c_r.c_r.len = test_vectors[vec_num_i].c_r_len; in main() 239 c_r.suites_r.len = test_vectors[vec_num_i].SUITES_R_len; in main() 240 c_r.suites_r.ptr = (uint8_t *)test_vectors[vec_num_i].SUITES_R; in main() 241 c_r.ead_2.len = test_vectors[vec_num_i].ead_2_len; in main() 242 c_r.ead_2.ptr = (uint8_t *)test_vectors[vec_num_i].ead_2; in main() 243 c_r.ead_4.len = test_vectors[vec_num_i].ead_4_len; in main() 244 c_r.ead_4.ptr = (uint8_t *)test_vectors[vec_num_i].ead_4; in main() [all …]
|
| /uoscore-uedhoc-latest/src/edhoc/ |
| D | signature_or_mac_msg.c | 47 static enum err mac(const struct byte_array *prk, const struct byte_array *c_r, in mac() argument 60 AS_BSTR_SIZE(c_r->len) + id_cred->len + cred->len + in mac() 64 if (c_r->len != 0) { in mac() 66 AS_BSTR_SIZE(c_r->len)); in mac() 67 if (c_r_is_raw_int(c_r)) { in mac() 68 TRY(encode_int((const int32_t *)c_r->ptr, c_r->len, in mac() 71 TRY(encode_bstr(c_r, &c_r_enc)); in mac() 143 const struct byte_array *prk, const struct byte_array *c_r, in signature_or_mac() argument 150 TRY(mac(prk, c_r, th, id_cred, cred, ead, mac_label, static_dh, in signature_or_mac() 183 TRY(mac(prk, c_r, th, id_cred, cred, ead, mac_label, static_dh, in signature_or_mac()
|
| D | int_encode_decode.c | 24 bool c_r_is_raw_int(const struct byte_array *c_r) in c_r_is_raw_int() argument 26 if (c_r->len == 1 && c_r->ptr[0] >= -24 && c_r->ptr[0] <= 23) { in c_r_is_raw_int()
|
| D | plaintext_decode.c | 82 struct byte_array *c_r, in plaintext2_split() argument 94 TRY(_memcpy_s(c_r->ptr, c_r->len, p.ptxt2_C_R_bstr.value, in plaintext2_split() 96 c_r->len = (uint32_t)p.ptxt2_C_R_bstr.len; in plaintext2_split() 100 TRY(encode_int(&p.ptxt2_C_R_int, 1, c_r)); in plaintext2_split() 224 enum err plaintext_split(struct byte_array *ptxt, struct byte_array *c_r, in plaintext_split() argument 229 if (c_r != NULL) { in plaintext_split() 230 return plaintext2_split(ptxt, c_r, id_cred_x, sign_or_mac, ead); in plaintext_split()
|
| D | ciphertext.c | 120 enum ciphertext ctxt, struct suite *suite, struct byte_array *c_r, in ciphertext_decrypt_split() argument 167 TRY(plaintext_split(plaintext, c_r, id_cred, sig_or_mac, in ciphertext_decrypt_split() 169 PRINT_ARRAY("C_R (raw)", c_r->ptr, c_r->len); in ciphertext_decrypt_split() 185 const struct byte_array *c_r, in ciphertext_gen() argument 200 if (c_x_is_encoded_int(c_r)) { in ciphertext_gen() 201 TRY(byte_array_append(plaintext, c_r, in ciphertext_gen() 205 AS_BSTR_SIZE(c_r->len)); in ciphertext_gen() 206 TRY(encode_bstr(c_r, &c_r_enc)); in ciphertext_gen()
|
| D | initiator.c | 132 struct byte_array *c_r, bool static_dh_i, in msg2_process() argument 168 TRY(ciphertext_decrypt_split(CIPHERTEXT2, &rc->suite, c_r, &id_cred_r, in msg2_process() 188 PRK_3e2m, c_r, &th2, &id_cred_r, &cred_r, &rc->ead, in msg2_process() 242 struct byte_array *c_r, struct byte_array *prk_out) in msg3_gen() argument 250 TRY(msg2_process(c, rc, cred_r_array, c_r, static_dh_i, static_dh_r, in msg3_gen() 321 BYTE_ARRAY_NEW(c_r, C_R_SIZE, C_R_SIZE); in edhoc_initiator_run() 323 return edhoc_initiator_run_extended(c, cred_r_array, err_msg, &c_r, in edhoc_initiator_run()
|
| D | responder.c | 153 struct byte_array *c_r, in msg2_encode() argument 220 &c->pk_r, &rc->prk_3e2m, &c->c_r, &th2, in msg2_gen() 226 AS_BSTR_SIZE(c->c_r.len) + c->id_cred_r.len + in msg2_gen() 230 TRY(ciphertext_gen(CIPHERTEXT2, &rc->suite, &c->c_r, &c->id_cred_r, in msg2_gen() 238 TRY(msg2_encode(&c->g_y, &c->c_r, &ciphertext_2, &rc->msg)); in msg2_gen()
|
| /uoscore-uedhoc-latest/inc/edhoc/ |
| D | ciphertext.h | 31 const struct byte_array *c_r, 57 enum ciphertext ctxt, struct suite *suite, struct byte_array *c_r,
|
| D | plaintext.h | 38 enum err plaintext_split(struct byte_array *ptxt, struct byte_array *c_r,
|
| D | int_encode_decode.h | 51 bool c_r_is_raw_int(const struct byte_array *c_r);
|
| D | messages.h | 28 struct byte_array c_r; member
|
| D | signature_or_mac_msg.h | 42 const struct byte_array *prk, const struct byte_array *c_r,
|
| /uoscore-uedhoc-latest/test_vectors/old/ |
| D | edhoc-vectors-json_v11.txt | 24 "c_r": "40", 115 "c_r": "06", 208 "c_r": "2d", 299 "c_r": "32", 392 "c_r": "14", 483 "c_r": "2c", 575 "c_r": "01", 668 "c_r": "23", 759 "c_r": "0f", 852 "c_r": "42977c", [all …]
|
| D | edhoc_test_vectors_v11.h_old | 64 const uint8_t *c_r; 7524 .c_r = test_vector_1_c_r, 7815 .c_r = test_vector_2_c_r, 8106 .c_r = test_vector_3_c_r, 8397 .c_r = test_vector_4_c_r, 8688 .c_r = test_vector_5_c_r, 8979 .c_r = test_vector_6_c_r, 9270 .c_r = test_vector_7_c_r, 9561 .c_r = test_vector_8_c_r, 9852 .c_r = test_vector_9_c_r, [all …]
|
| /uoscore-uedhoc-latest/inc/ |
| D | edhoc_internal.h | 63 struct byte_array *c_r, struct byte_array *prk_out);
|
| D | edhoc.h | 47 struct byte_array c_r; /*connection identifier of the responder*/ member
|
| /uoscore-uedhoc-latest/test_vectors/ |
| D | edhoc_test_vectors_p256_v15.h | 64 const uint8_t *c_r; member 6176 .c_r = test_vector_1_c_r, 6473 .c_r = test_vector_2_c_r, 6770 .c_r = test_vector_3_c_r, 7067 .c_r = test_vector_4_c_r, 7364 .c_r = test_vector_5_c_r, 7661 .c_r = test_vector_6_c_r,
|
| D | edhoc_test_vectors_p256_v16.h | 64 const uint8_t *c_r; member 6594 .c_r = test_vector_1_c_r, 6891 .c_r = test_vector_2_c_r, 7188 .c_r = test_vector_3_c_r, 7485 .c_r = test_vector_4_c_r, 7782 .c_r = test_vector_5_c_r, 8079 .c_r = test_vector_6_c_r,
|
| /uoscore-uedhoc-latest/samples/linux_edhoc_oscore/initiator_client/src/ |
| D | main.cpp | 251 (uint8_t *)test_vectors[vec_num_i].c_r, in main()
|
| /uoscore-uedhoc-latest/scripts/ |
| D | json2c.py | 72 const uint8_t *c_r;\n\ 370 .c_r = NULL,\n\
|