/uoscore-uedhoc-3.5.0/src/oscore/ |
D | oscore_interactions.c | 58 print_interaction_field("token ", record->token, in print_interactions() 155 uint8_t *token, uint8_t token_len) in find_record_index_by_token() argument 160 bool token_ok = compare_memory(token, token_len, in find_record_index_by_token() 161 interactions[index].token, in find_record_index_by_token() 207 interactions, record->token, record->token_len); in oscore_interactions_set_record() 225 uint8_t *token, uint8_t token_len, in oscore_interactions_get_record() argument 238 find_record_index_by_token(interactions, token, token_len); in oscore_interactions_get_record() 241 PRINT_ARRAY("token", token, token_len); in oscore_interactions_get_record() 251 uint8_t *token, uint8_t token_len) in oscore_interactions_remove_record() argument 261 find_record_index_by_token(interactions, token, token_len); in oscore_interactions_remove_record() [all …]
|
D | oscore2coap.c | 219 out->token = oscore_pkt->token; in o_coap_pkg_generate() 266 struct byte_array token = in decrypt_wrapper() local 267 BYTE_ARRAY_INIT(input_oscore->token, input_oscore->header.TKL); in decrypt_wrapper() 276 TRY(oscore_interactions_read_wrapper(msg_type_oscore, &token, in decrypt_wrapper() 320 TRY(oscore_interactions_update_wrapper(msg_type, &token, &uri_paths, in decrypt_wrapper()
|
D | coap2oscore.c | 372 out_oscore->token = NULL; in oscore_pkg_generate() 374 out_oscore->token = in_o_coap->token; in oscore_pkg_generate() 514 struct byte_array token = in encrypt_wrapper() local 515 BYTE_ARRAY_INIT(input_coap->token, input_coap->header.TKL); in encrypt_wrapper() 542 TRY(oscore_interactions_read_wrapper(msg_type, &token, in encrypt_wrapper() 562 TRY(oscore_interactions_update_wrapper(msg_type, &token, &uri_paths, in encrypt_wrapper()
|
D | oscore_coap.c | 250 out->token = NULL; in coap_deserialize() 253 out->token = tmp_p; in coap_deserialize() 293 TRY(_memcpy_s(temp_out_ptr, dest_size, in->token, in coap_serialize()
|
/uoscore-uedhoc-3.5.0/test/oscore_unit_tests/ |
D | unit_test_oscore_interactions.c | 29 .token = TOKEN_DEFAULT, 61 static void get_record_and_expect(struct oscore_interaction_t * interactions, uint8_t * token, uint… in get_record_and_expect() argument 64 enum err result = oscore_interactions_get_record(interactions, token, token_len, record); in get_record_and_expect() 74 get_record_and_expect(interactions, record->token, record->token_len, &received_record, ok); in get_record_and_compare() 81 static void remove_record_and_expect(struct oscore_interaction_t * interactions, uint8_t * token, u… in remove_record_and_expect() argument 84 enum err result = oscore_interactions_remove_record(interactions, token, token_len); in remove_record_and_expect() 100 record->token[0] += entry + 1; in generate_and_fill() 173 memcpy(record_2.token, TOKEN_2, sizeof(TOKEN_2)); in t701_interactions_set_record_test() 231 …get_record_and_expect(interactions, default_record.token, default_record.token_len, &received_reco… in t702_interactions_get_record_test() 272 …remove_record_and_expect(interactions, generated_records[0].token, generated_records[0].token_len,… in t703_interactions_remove_record_test() [all …]
|
D | unit_test_coap2oscore.c | 69 .token = NULL, in t100_inner_outer_option_split__no_special_options() 175 .token = NULL, in t101_inner_outer_option_split__with_observe_notification() 298 .token = NULL, in t102_inner_outer_option_split__with_observe_registration() 424 .token = NULL, in t103_oscore_pkg_generate__request_with_observe_registration() 487 .token = NULL, in t103_oscore_pkg_generate__request_with_observe_registration() 549 .token = NULL, in t104_oscore_pkg_generate__request_with_observe_notification() 589 .token = NULL, in t104_oscore_pkg_generate__request_with_observe_notification() 640 .token = NULL, in t105_inner_outer_option_split__too_many_options()
|
D | unit_test_oscore_coap.c | 435 zassert_is_null(out.token, "invalid token"); in t201_coap_serialize_deserialize()
|
/uoscore-uedhoc-3.5.0/inc/oscore/ |
D | oscore_interactions.h | 35 uint8_t token[MAX_TOKEN_LEN]; member 84 uint8_t *token, uint8_t token_len, 97 uint8_t *token, uint8_t token_len); 110 enum o_coap_msg msg_type, struct byte_array *token, 126 enum o_coap_msg msg_type, struct byte_array *token,
|
D | oscore_coap.h | 49 uint8_t *token; member
|
/uoscore-uedhoc-3.5.0/test/oscore_integration_tests/ |
D | oscore_integration_tests.c | 423 uint8_t token[] = { 0x4a }; in t9_oscore_client_server_observe() local 440 .token = token, in t9_oscore_client_server_observe() 524 .token = token, in t9_oscore_client_server_observe() 679 uint8_t token[] = { 0x4a }; in t10_oscore_client_server_after_reboot() local 689 .token = token, in t10_oscore_client_server_after_reboot() 748 .token = token, in t10_oscore_client_server_after_reboot() 820 .token = token, in t10_oscore_client_server_after_reboot() 862 token[0] = 0x4b; in t10_oscore_client_server_after_reboot() 872 .token = token, in t10_oscore_client_server_after_reboot() 925 .token = token, in t10_oscore_client_server_after_reboot() [all …]
|
/uoscore-uedhoc-3.5.0/samples/linux_oscore/client/src/ |
D | main.cpp | 66 uint32_t token = 0; in main() local 110 protected_pdu->setToken((uint8_t *)&(++token), sizeof(token)); in main()
|
/uoscore-uedhoc-3.5.0/samples/linux_edhoc_oscore/initiator_client/src/ |
D | main.cpp | 78 static uint32_t token = 0; in tx() local 84 pdu->setToken((uint8_t *)&(++token), sizeof(token)); in tx() 241 uint32_t token = 0; in main() local 280 protected_pdu->setToken((uint8_t *)&(++token), sizeof(token)); in main()
|
/uoscore-uedhoc-3.5.0/samples/linux_edhoc/initiator/src/ |
D | main.cpp | 77 static uint32_t token = 0; in tx() local 83 pdu->setToken((uint8_t *)&(++token), sizeof(token)); in tx()
|