/uoscore-uedhoc-3.6.0/src/oscore/ |
D | option.c | 52 for (uint8_t i = 0; i < options_cnt; i++) { in is_observe() local 53 if (options[i].option_number == OBSERVE) { in is_observe() 67 for (uint8_t i = 0; i < options_cnt; i++) { in get_observe_value() local 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() 83 for (uint8_t i = 0; i < options_cnt; i++) { in cache_echo_val() local 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() 87 options[i].len)); in cache_echo_val() [all …]
|
D | oscore_coap.c | 54 for (uint8_t i = 0; i < options_cnt; i++) { in options_serialize() local 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 | oscore2coap.c | 52 for (uint8_t i = 0; i < opt_cnt; i++) { in oscore_option_parser() local 53 temp_kid_len = opt[i].len; in oscore_option_parser() 56 if (opt[i].option_number == OSCORE) { in oscore_option_parser() 57 if (opt[i].len == 0) { in oscore_option_parser() 70 val_ptr = opt[i].value; in oscore_option_parser() 158 for (uint8_t i = 0; i < U_options_cnt; i++) { in options_reorder() local 159 if ((U_options[i].option_number != OSCORE) && in options_reorder() 160 (U_options[i].option_number != OBSERVE)) { in options_reorder() 161 out_options[*out_options_cnt] = U_options[i]; in options_reorder() 167 for (uint8_t i = 0; i < E_options_cnt; i++) { in options_reorder() local [all …]
|
D | coap2oscore.c | 64 for (uint8_t i = 0; i < in_o_coap->options_cnt; i++) { in inner_outer_option_split() local 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() 210 for (uint8_t i = 0; i < E_options_cnt; i++) { in plaintext_setup() local [all …]
|
D | nonce.c | 47 for (uint32_t i = 0; i < common_iv->len; i++) { in create_nonce() local 48 nonce->ptr[i] ^= common_iv->ptr[i]; in create_nonce()
|
D | replay_protection.c | 90 for (uint8_t i = 0; i < WINDOW_SIZE; i++) { in server_is_sequence_number_valid() local 91 if (seq_number == replay_window->window[i]) { in server_is_sequence_number_valid()
|
/uoscore-uedhoc-3.6.0/src/edhoc/ |
D | retrieve_cred.c | 104 for (uint32_t i = 0; i < cred_array->len; i++) { in get_local_cred() local 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() 110 cred_array->ptr[i].cred.ptr, in get_local_cred() 111 cred_array->ptr[i].cred.len)); in get_local_cred() 112 cred->len = cred_array->ptr[i].cred.len; in get_local_cred() 117 if (cred_array->ptr[i].g.len == 65) { in get_local_cred() 122 &cred_array->ptr[i].g.ptr[1], in get_local_cred() 128 cred_array->ptr[i].g.ptr, in get_local_cred() 129 cred_array->ptr[i].g.len)); in get_local_cred() [all …]
|
/uoscore-uedhoc-3.6.0/src/common/ |
D | print_util.c | 23 for (uint32_t i = 0; i < in_len; i++) { in print_array() local 24 if (i % 16 == 0) in print_array() 25 printf("\n\t%02X ", in_data[i]); in print_array() 27 printf("%02X ", in_data[i]); in print_array()
|
D | byte_array.c | 40 for (uint32_t i = 0; i < left->len; i++) { in array_equals() local 41 if (left->ptr[i] != right->ptr[i]) { in array_equals()
|
D | crypto_wrapper.c | 180 wordcount_t i; in uECC_vli_add() local 181 for (i = 0; i < num_words; ++i) { in uECC_vli_add() 182 uECC_word_t sum = left[i] + right[i] + carry; in uECC_vli_add() 183 uECC_word_t val = (sum < left[i]); in uECC_vli_add() 184 carry = cond_set(val, carry, (sum != left[i])); in uECC_vli_add() 185 result[i] = sum; in uECC_vli_add() 194 bitcount_t i; in mod_sqrt_default() local 202 for (i = uECC_vli_numBits(p1, num_words) - 1; i > 1; --i) { in mod_sqrt_default() 204 if (uECC_vli_testBit(p1, i)) { in mod_sqrt_default() 271 for (uint32_t i = 0; i < edhoc_crypto_mock_cb.aead_in_out_count; i++) { in aead() local [all …]
|
/uoscore-uedhoc-3.6.0/samples/zephyr_edhoc/initiator/src/ |
D | _entropy.c | 22 for (size_t i = 0; i < len; i++) { in mbedtls_hardware_poll() local 23 output[i] = i; in mbedtls_hardware_poll()
|
/uoscore-uedhoc-3.6.0/samples/zephyr_edhoc/responder/src/ |
D | _entropy.c | 22 for (size_t i = 0; i < len; i++) { in mbedtls_hardware_poll() local 23 output[i] = i; in mbedtls_hardware_poll()
|
/uoscore-uedhoc-3.6.0/samples/linux_oscore/client/src/ |
D | _entropy.c | 22 for (size_t i = 0; i < len; i++) { in mbedtls_hardware_poll() local 23 output[i] = i; in mbedtls_hardware_poll()
|
D | main.cpp | 161 for (int i = 0; i < num_opts; i++) { in main() local 162 if (opts[i].optionNumber == in main() 166 opts[i].optionValuePointer, in main() 167 opts[i].optionValueLength); in main()
|
/uoscore-uedhoc-3.6.0/samples/linux_oscore/server/src/ |
D | _entropy.c | 22 for (size_t i = 0; i < len; i++) { in mbedtls_hardware_poll() local 23 output[i] = i; in mbedtls_hardware_poll()
|
/uoscore-uedhoc-3.6.0/samples/linux_edhoc_oscore/initiator_client/src/ |
D | _entropy.c | 22 for (size_t i = 0; i < len; i++) { in mbedtls_hardware_poll() local 23 output[i] = i; in mbedtls_hardware_poll()
|
/uoscore-uedhoc-3.6.0/samples/linux_edhoc_oscore/responder_server/src/ |
D | _entropy.c | 22 for (size_t i = 0; i < len; i++) { in mbedtls_hardware_poll() local 23 output[i] = i; in mbedtls_hardware_poll()
|
/uoscore-uedhoc-3.6.0/samples/linux_edhoc/initiator/src/ |
D | _entropy.c | 22 for (size_t i = 0; i < len; i++) { in mbedtls_hardware_poll() local 23 output[i] = i; in mbedtls_hardware_poll()
|
/uoscore-uedhoc-3.6.0/samples/linux_edhoc/responder/src/ |
D | _entropy.c | 22 for (size_t i = 0; i < len; i++) { in mbedtls_hardware_poll() local 23 output[i] = i; in mbedtls_hardware_poll()
|
/uoscore-uedhoc-3.6.0/test/ci_scripts/ |
D | stack_watch.py | 29 i = gdb.inferiors()[0] 44 i = gdb.inferiors()[0] 45 stack_dump_start = i.read_memory(stack_bottom, f.max_stack_size) 54 stack_dump_end = i.read_memory(stack_bottom, f.max_stack_size) 57 for i in range(f.max_stack_size): 59 stack_dump_start.tobytes()[f.max_stack_size - i - 1] 60 != stack_dump_end.tobytes()[f.max_stack_size - i - 1] 62 used_stack_memory = i
|
/uoscore-uedhoc-3.6.0/test/ |
D | entropy.c | 46 for (size_t i = 0; i < len; i++) { in mbedtls_hardware_poll() local 47 output[i] = i; in mbedtls_hardware_poll()
|
/uoscore-uedhoc-3.6.0/test/oscore_unit_tests/ |
D | unit_test_oscore2coap.c | 176 uint8_t i; in t303_options_reorder() local 181 for (i = 0; i < len; i++) { in t303_options_reorder() 182 zassert_equal(expected[i].delta, out[i].delta, "wrong delta"); in t303_options_reorder() 183 zassert_equal(expected[i].len, out[i].len, "wrong len"); in t303_options_reorder() 184 zassert_equal(expected[i].value, out[i].value, "wrong value"); in t303_options_reorder() 185 zassert_equal(expected[i].option_number, out[i].option_number, in t303_options_reorder()
|
D | unit_test_coap2oscore.c | 25 uint8_t i; in print_options() local 26 for (i = 0; i < opt_cnt; i++) { in print_options() 27 PRINTF("option_number: %d\n", opt[i].option_number); in print_options() 28 PRINT_ARRAY("value", opt[i].value, opt[i].len); in print_options() 29 PRINTF("delta: %d\n\n", opt[i].delta); in print_options() 39 for (uint8_t i = 0; i < opt_cnt; i++) { in assert_options() local 40 zassert_equal(opt[i].delta, opt_expected[i].delta, in assert_options() 42 zassert_equal(opt[i].len, opt_expected[i].len, "wrong length"); in assert_options() 43 zassert_equal(opt[i].option_number, in assert_options() 44 opt_expected[i].option_number, "option_number"); in assert_options() [all …]
|
D | unit_test_oscore_coap.c | 75 for (uint8_t i = 0; i < coap_pkt.options_cnt; i++) { in deserialization_test() local 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() 79 "len mismatch: %d", coap_pkt.options[i].len); in deserialization_test() 80 zassert_equal(options[i].option_number, in deserialization_test() 81 coap_pkt.options[i].option_number, in deserialization_test() 83 coap_pkt.options[i].option_number); in deserialization_test() 84 zassert_mem_equal__(options[i].value, coap_pkt.options[i].value, in deserialization_test() 85 options[i].len, "option value mismatch"); in deserialization_test()
|
/uoscore-uedhoc-3.6.0/test/oscore_latency_tests/ |
D | oscore_latency_test.c | 157 for (int i = 0; in t800_oscore_latency_test() local 158 i < (sizeof(payload_lengths) / sizeof(payload_lengths[0])); i++) { in t800_oscore_latency_test() 160 payload_lengths[i]); in t800_oscore_latency_test() 165 FIXED_COAP_SIZE + payload_lengths[i], in t800_oscore_latency_test() 178 FIXED_COAP_SIZE + payload_lengths[i], in t800_oscore_latency_test()
|