/uoscore-uedhoc-3.6.0/src/oscore/ |
D | option.c | 50 bool is_observe(struct o_coap_option *options, uint8_t options_cnt) in is_observe() argument 53 if (options[i].option_number == OBSERVE) { in is_observe() 60 bool get_observe_value(struct o_coap_option *options, uint8_t options_cnt, in get_observe_value() argument 63 if ((NULL == options) || (NULL == output)) { in get_observe_value() 68 if (OBSERVE != options[i].option_number) { in get_observe_value() 72 output->ptr = options[i].value; in get_observe_value() 73 output->len = options[i].len; in get_observe_value() 80 enum err cache_echo_val(struct byte_array *dest, struct o_coap_option *options, in cache_echo_val() argument 84 if (options[i].option_number == ECHO) { in cache_echo_val() 86 TRY(_memcpy_s(dest->ptr, dest->len, options[i].value, in cache_echo_val() [all …]
|
D | oscore_coap.c | 42 enum err options_serialize(struct o_coap_option *options, uint8_t options_cnt, in options_serialize() argument 55 delta_extra_byte = opt_extra_bytes(options[i].delta); in options_serialize() 56 len_extra_byte = opt_extra_bytes(options[i].len); in options_serialize() 63 *(header_byte) = (uint8_t)(options[i].delta << 4); in options_serialize() 67 *(temp_ptr + 1) = (uint8_t)(options[i].delta - 13); in options_serialize() 72 (uint16_t)(options[i].delta - 269); in options_serialize() 80 *(header_byte) |= (uint8_t)(options[i].len); in options_serialize() 85 (uint8_t)(options[i].len - 13); in options_serialize() 89 uint16_t temp_len = (uint16_t)(options[i].len - 269); in options_serialize() 101 len_extra_byte + options[i].len); in options_serialize() [all …]
|
D | coap2oscore.c | 66 opt_extra_bytes(in_o_coap->options[i].delta) + in inner_outer_option_split() 67 opt_extra_bytes(in_o_coap->options[i].len); in inner_outer_option_split() 70 (uint8_t)(temp_option_nr + in_o_coap->options[i].delta); in inner_outer_option_split() 71 temp_len = in_o_coap->options[i].len; in inner_outer_option_split() 92 in_o_coap->options[i].value; in inner_outer_option_split() 125 in_o_coap->options[i].value; in inner_outer_option_split() 148 in_o_coap->options[i].value; in inner_outer_option_split() 170 in_o_coap->options[i].value; in inner_outer_option_split() 412 out_oscore->options[i].delta = in oscore_pkg_generate() 415 out_oscore->options[i].len = oscore_option->len; in oscore_pkg_generate() [all …]
|
D | oscore2coap.c | 232 TRY(options_reorder(oscore_pkt->options, oscore_pkt->options_cnt, in o_coap_pkg_generate() 233 E_options, E_options_cnt, out->options, in o_coap_pkg_generate() 318 TRY(uri_path_create(output_coap->options, output_coap->options_cnt, in decrypt_wrapper() 348 TRY(oscore_option_parser(oscore_packet.options, in oscore2coap() 425 if (is_observe(oscore_packet.options, in oscore2coap()
|
D | aad.c | 23 enum err create_aad(struct o_coap_option *options, uint16_t opt_num, in create_aad() argument
|
/uoscore-uedhoc-3.6.0/test/oscore_unit_tests/ |
D | unit_test_oscore_coap.c | 40 result.options[0].option_number = OBSERVE; in generate_test_packet() 41 result.options[0].value = observe_value; in generate_test_packet() 42 result.options[0].len = observe_len; in generate_test_packet() 46 static void serialization_test(struct o_coap_option *options, uint8_t opt_cnt, in serialization_test() argument 52 enum err r = options_serialize(options, opt_cnt, &out); in serialization_test() 63 struct o_coap_option *options, in deserialization_test() argument 70 (struct o_coap_option *)&coap_pkt.options, in deserialization_test() 76 zassert_equal(options[i].delta, coap_pkt.options[i].delta, in deserialization_test() 77 "delta mismatch: %d", coap_pkt.options[i].delta); in deserialization_test() 78 zassert_equal(options[i].len, coap_pkt.options[i].len, in deserialization_test() [all …]
|
D | unit_test_option.c | 21 static void uri_path_create_and_expect(struct o_coap_option *options, uint32_t options_size, uint8_… in uri_path_create_and_expect() argument 24 enum err result = uri_path_create(options, options_size, uri_path, uri_path_size); in uri_path_create_and_expect() 28 static void uri_path_create_and_compare(struct o_coap_option *options, uint32_t options_size, uint8… in uri_path_create_and_compare() argument 30 uri_path_create_and_expect(options, options_size, uri_path, uri_path_size, expected_result); in uri_path_create_and_compare() 36 static void get_observe_value_and_compare(struct o_coap_option *options, uint8_t options_cnt, struc… in get_observe_value_and_compare() argument 39 bool result = get_observe_value(options, options_cnt, output); in get_observe_value_and_compare() 64 struct o_coap_option options[] = { in t401_cache_echo_val() local 72 r = cache_echo_val(&empty, (struct o_coap_option *)&options, 4); in t401_cache_echo_val() 76 r = cache_echo_val(&empty, (struct o_coap_option *)&options, 3); in t401_cache_echo_val()
|
D | unit_test_coap2oscore.c | 71 .options = { in t100_inner_outer_option_split__no_special_options() 177 .options = { in t101_inner_outer_option_split__with_observe_notification() 300 .options = { in t102_inner_outer_option_split__with_observe_registration() 426 .options = { in t103_oscore_pkg_generate__request_with_observe_registration() 489 .options = { { .delta = 6, in t103_oscore_pkg_generate__request_with_observe_registration() 551 .options = { in t104_oscore_pkg_generate__request_with_observe_notification() 591 .options = { { .delta = 6, in t104_oscore_pkg_generate__request_with_observe_notification()
|
/uoscore-uedhoc-3.6.0/inc/oscore/ |
D | option.h | 75 enum err decode_options(struct byte_array options, struct o_coap_option *out, 87 uint32_t encoded_option_len(struct o_coap_option *options, uint16_t opt_num, 101 enum err encode_options(struct o_coap_option *options, uint16_t opt_num, 113 bool is_observe(struct o_coap_option *options, uint8_t options_cnt); 123 bool get_observe_value(struct o_coap_option *options, uint8_t options_cnt, 135 enum err cache_echo_val(struct byte_array *dest, struct o_coap_option *options, 173 enum err uri_path_create(struct o_coap_option *options, uint32_t options_size,
|
D | oscore_coap.h | 103 struct o_coap_option options[MAX_OPTION_COUNT]; member 142 enum err options_serialize(struct o_coap_option *options, uint8_t options_cnt,
|
D | aad.h | 33 enum err create_aad(struct o_coap_option *options, uint16_t opt_num,
|
/uoscore-uedhoc-3.6.0/test/ |
D | CMakeLists.txt | 53 zephyr_get_compile_options_for_lang_as_string(C options) 58 #message("C options is: ${options}") 63 "${COMMAND_LINE_FLAGS} ${includes} ${definitions} ${options} ${system_includes}"
|
/uoscore-uedhoc-3.6.0/test/oscore_integration_tests/ |
D | oscore_integration_tests.c | 446 .options = { in t9_oscore_client_server_observe() 530 .options = { { .delta = 6, in t9_oscore_client_server_observe() 695 .options = { in t10_oscore_client_server_after_reboot() 754 .options = { { .delta = 252, in t10_oscore_client_server_after_reboot() 826 .options = { { .delta = 252, in t10_oscore_client_server_after_reboot() 878 .options = { in t10_oscore_client_server_after_reboot() 931 .options = { { .delta = 252, in t10_oscore_client_server_after_reboot() 982 .options = { in t10_oscore_client_server_after_reboot() 1035 .options = {}, in t10_oscore_client_server_after_reboot() 1086 .options = { in t10_oscore_client_server_after_reboot()
|
/uoscore-uedhoc-3.6.0/samples/zephyr_edhoc/initiator/ |
D | CMakeLists.txt | 41 zephyr_get_compile_options_for_lang_as_string( C options) 44 "${includes} ${definitions} ${options} ${system_includes}"
|
/uoscore-uedhoc-3.6.0/samples/zephyr_edhoc/responder/ |
D | CMakeLists.txt | 40 zephyr_get_compile_options_for_lang_as_string( C options) 43 "${includes} ${definitions} ${options} ${system_includes}"
|
/uoscore-uedhoc-3.6.0/cddl_models/ |
D | oscore_aad_array.cddl | 17 options: bstr,
|
/uoscore-uedhoc-3.6.0/ |
D | Doxyfile | 17 # Project related configuration options 477 # Build related configuration options 789 # Configuration options related to warning and progress messages 858 # Configuration options related to the input files 1067 # Configuration options related to source browsing 1170 # line options that you would normally use when invoking the compiler. Note that 1181 # options used when the source files were built. This is equivalent to 1182 # specifying the -p option to a clang tool, such as clang-check. These options 1183 # will then be passed to the parser. Any options specified with CLANG_OPTIONS 1191 # Configuration options related to the alphabetical class index [all …]
|
D | README.MD | 138 ….org/doc/html/rfc5084). In order to avoid this situation, the user has 2 options while creating co… 168 ## Additional configuration options
|