/NetX-Duo-v6.3.0/common/src/ |
D | nx_utility.c | 80 UINT i; in _nx_utility_string_length_check() local 90 for (i = 0; input_string[i]; i++) in _nx_utility_string_length_check() 94 if (i >= max_string_length) in _nx_utility_string_length_check() 105 *string_length = i; in _nx_utility_string_length_check() 154 UINT i; in _nx_utility_string_to_uint() local 170 i = 0; in _nx_utility_string_to_uint() 174 while (i < string_length) in _nx_utility_string_to_uint() 178 if ((input_string[i] >= '0') && (input_string[i] <= '9')) in _nx_utility_string_to_uint() 182 if (((*number == 429496729) && (input_string[i] > '5')) || in _nx_utility_string_to_uint() 189 *number = (*number * 10) + (UINT) (input_string[i] - '0'); in _nx_utility_string_to_uint() [all …]
|
D | nx_ip_route_find.c | 97 ULONG i; in _nx_ip_route_find() local 115 for (i = 0; i < NX_MAX_PHYSICAL_INTERFACES; i++) in _nx_ip_route_find() 118 if (ip_ptr -> nx_ip_interface[i].nx_interface_link_up) in _nx_ip_route_find() 120 *ip_interface_ptr = &(ip_ptr -> nx_ip_interface[i]); in _nx_ip_route_find() 137 for (i = 0; i < NX_MAX_PHYSICAL_INTERFACES; i++) in _nx_ip_route_find() 141 interface_ptr = &(ip_ptr -> nx_ip_interface[i]); in _nx_ip_route_find() 161 for (i = 0; i < ip_ptr -> nx_ip_routing_table_entry_count; i++) in _nx_ip_route_find() 165 interface_ptr = ip_ptr -> nx_ip_routing_table[i].nx_ip_routing_entry_ip_interface; in _nx_ip_route_find() 174 if (ip_ptr -> nx_ip_routing_table[i].nx_ip_routing_dest_ip == in _nx_ip_route_find() 175 (destination_address & ip_ptr -> nx_ip_routing_table[i].nx_ip_routing_net_mask)) in _nx_ip_route_find() [all …]
|
D | nx_nd_cache_slow_periodic_update.c | 86 INT i; in _nx_nd_cache_slow_periodic_update() local 89 for (i = 0; i < NX_IPV6_NEIGHBOR_CACHE_SIZE; i++) in _nx_nd_cache_slow_periodic_update() 92 if (ip_ptr -> nx_ipv6_nd_cache[i].nx_nd_cache_nd_status == ND_CACHE_STATE_INVALID) in _nx_nd_cache_slow_periodic_update() 98 if (ip_ptr -> nx_ipv6_nd_cache[i].nx_nd_cache_is_static) in _nx_nd_cache_slow_periodic_update() 104 if (ip_ptr -> nx_ipv6_nd_cache[i].nx_nd_cache_nd_status == ND_CACHE_STATE_REACHABLE) in _nx_nd_cache_slow_periodic_update() 107 ip_ptr -> nx_ipv6_nd_cache[i].nx_nd_cache_timer_tick--; in _nx_nd_cache_slow_periodic_update() 110 if (ip_ptr -> nx_ipv6_nd_cache[i].nx_nd_cache_timer_tick == 0) in _nx_nd_cache_slow_periodic_update() 114 ip_ptr -> nx_ipv6_nd_cache[i].nx_nd_cache_nd_status = ND_CACHE_STATE_STALE; in _nx_nd_cache_slow_periodic_update() 118 else if (ip_ptr -> nx_ipv6_nd_cache[i].nx_nd_cache_nd_status == ND_CACHE_STATE_DELAY) in _nx_nd_cache_slow_periodic_update() 121 ip_ptr -> nx_ipv6_nd_cache[i].nx_nd_cache_timer_tick--; in _nx_nd_cache_slow_periodic_update() [all …]
|
D | nxd_ipv6_default_router_table_init.c | 79 ULONG i; in _nxd_ipv6_default_router_table_init() local 82 for (i = 0; i < NX_IPV6_DEFAULT_ROUTER_TABLE_SIZE; i++) in _nxd_ipv6_default_router_table_init() 85 ip_ptr -> nx_ipv6_default_router_table[i].nx_ipv6_default_router_entry_flag = 0; in _nxd_ipv6_default_router_table_init() 86 ip_ptr -> nx_ipv6_default_router_table[i].nx_ipv6_default_router_entry_life_time = 0; in _nxd_ipv6_default_router_table_init() 87 …ip_ptr -> nx_ipv6_default_router_table[i].nx_ipv6_default_router_entry_neighbor_cache_ptr = NX_NUL… in _nxd_ipv6_default_router_table_init() 102 for (i = 1; i < NX_IPV6_PREFIX_LIST_TABLE_SIZE - 1; i++) in _nxd_ipv6_default_router_table_init() 105 …ip_ptr -> nx_ipv6_prefix_list_table[i].nx_ipv6_prefix_entry_prev = &ip_ptr -> nx_ipv6_prefix_list_… in _nxd_ipv6_default_router_table_init() 106 …ip_ptr -> nx_ipv6_prefix_list_table[i].nx_ipv6_prefix_entry_next = &ip_ptr -> nx_ipv6_prefix_list_… in _nxd_ipv6_default_router_table_init() 110 …ip_ptr -> nx_ipv6_prefix_list_table[i].nx_ipv6_prefix_entry_prev = &ip_ptr -> nx_ipv6_prefix_list_… in _nxd_ipv6_default_router_table_init() 111 ip_ptr -> nx_ipv6_prefix_list_table[i].nx_ipv6_prefix_entry_next = NX_NULL; in _nxd_ipv6_default_router_table_init()
|
D | nx_nd_cache_fast_periodic_update.c | 92 INT i; in _nx_nd_cache_fast_periodic_update() local 95 for (i = 0; i < NX_IPV6_NEIGHBOR_CACHE_SIZE; i++) in _nx_nd_cache_fast_periodic_update() 99 if (ip_ptr -> nx_ipv6_nd_cache[i].nx_nd_cache_nd_status == ND_CACHE_STATE_INVALID) in _nx_nd_cache_fast_periodic_update() 105 if ((ip_ptr -> nx_ipv6_nd_cache[i].nx_nd_cache_nd_status != ND_CACHE_STATE_PROBE) && in _nx_nd_cache_fast_periodic_update() 106 (ip_ptr -> nx_ipv6_nd_cache[i].nx_nd_cache_nd_status != ND_CACHE_STATE_INCOMPLETE)) in _nx_nd_cache_fast_periodic_update() 116 if (ip_ptr -> nx_ipv6_nd_cache[i].nx_nd_cache_timer_tick == 0) in _nx_nd_cache_fast_periodic_update() 120 if (ip_ptr -> nx_ipv6_nd_cache[i].nx_nd_cache_num_solicit == 0) in _nx_nd_cache_fast_periodic_update() 125 _nx_nd_cache_delete_internal(ip_ptr, &ip_ptr -> nx_ipv6_nd_cache[i]); in _nx_nd_cache_fast_periodic_update() 132 … uniCastNS = (ip_ptr -> nx_ipv6_nd_cache[i].nx_nd_cache_nd_status == ND_CACHE_STATE_PROBE); in _nx_nd_cache_fast_periodic_update() 135 _nx_icmpv6_send_ns(ip_ptr, ip_ptr -> nx_ipv6_nd_cache[i].nx_nd_cache_dest_ip, in _nx_nd_cache_fast_periodic_update() [all …]
|
D | nxd_ipv6_router_solicitation_check.c | 86 UINT i; in _nxd_ipv6_router_solicitation_check() local 88 for (i = 0; i < NX_MAX_PHYSICAL_INTERFACES; i++) in _nxd_ipv6_router_solicitation_check() 90 if (ip_ptr -> nx_ip_interface[i].nx_interface_valid == NX_TRUE) in _nxd_ipv6_router_solicitation_check() 94 if (ip_ptr -> nx_ip_interface[i].nx_ipv6_rtr_solicitation_count != 0) in _nxd_ipv6_router_solicitation_check() 98 ip_ptr -> nx_ip_interface[i].nx_ipv6_rtr_solicitation_timer--; in _nxd_ipv6_router_solicitation_check() 99 if (ip_ptr -> nx_ip_interface[i].nx_ipv6_rtr_solicitation_timer == 0) in _nxd_ipv6_router_solicitation_check() 101 if (_nx_icmpv6_send_rs(ip_ptr, i) && in _nxd_ipv6_router_solicitation_check() 102 (ip_ptr -> nx_ip_interface[i].nx_ipv6_rtr_solicitation_count == in _nxd_ipv6_router_solicitation_check() 103 ip_ptr -> nx_ip_interface[i].nx_ipv6_rtr_solicitation_max)) in _nxd_ipv6_router_solicitation_check() 108 ip_ptr -> nx_ip_interface[i].nx_ipv6_rtr_solicitation_timer = 1; in _nxd_ipv6_router_solicitation_check() [all …]
|
D | nxd_ipv6_disable.c | 88 UINT i; in _nxd_ipv6_disable() local 134 for (i = 0; i < NX_MAX_PHYSICAL_INTERFACES; i++) in _nxd_ipv6_disable() 136 if (ip_ptr -> nx_ip_interface[i].nx_interface_valid == NX_TRUE) in _nxd_ipv6_disable() 138 ip_ptr -> nx_ip_interface[i].nxd_interface_ipv6_address_list_head = NX_NULL; in _nxd_ipv6_disable() 141 ip_ptr -> nx_ip_interface[i].nx_ipv6_rtr_solicitation_max = 0; in _nxd_ipv6_disable() 142 ip_ptr -> nx_ip_interface[i].nx_ipv6_rtr_solicitation_count = 0; in _nxd_ipv6_disable() 143 ip_ptr -> nx_ip_interface[i].nx_ipv6_rtr_solicitation_interval = 0; in _nxd_ipv6_disable() 144 ip_ptr -> nx_ip_interface[i].nx_ipv6_rtr_solicitation_timer = 0; in _nxd_ipv6_disable() 147 _nx_ipv6_multicast_leave(ip_ptr, address, &ip_ptr -> nx_ip_interface[i]); in _nxd_ipv6_disable() 155 for (i = 0; i < NX_MAX_IPV6_ADDRESSES; i++) in _nxd_ipv6_disable() [all …]
|
D | nx_icmpv6_destination_table_periodic_update.c | 86 UINT i, table_size; in _nx_icmpv6_destination_table_periodic_update() local 91 for (i = 0; table_size && (i < NX_IPV6_DESTINATION_TABLE_SIZE); i++) in _nx_icmpv6_destination_table_periodic_update() 95 if (ip_ptr -> nx_ipv6_destination_table[i].nx_ipv6_destination_entry_path_mtu && in _nx_icmpv6_destination_table_periodic_update() 96 ip_ptr -> nx_ipv6_destination_table[i].nx_ipv6_destination_entry_nd_entry && in _nx_icmpv6_destination_table_periodic_update() 97 (ip_ptr -> nx_ipv6_destination_table[i].nx_ipv6_destination_entry_path_mtu == in _nx_icmpv6_destination_table_periodic_update() 98 …ip_ptr -> nx_ipv6_destination_table[i].nx_ipv6_destination_entry_nd_entry -> nx_nd_cache_interface… in _nx_icmpv6_destination_table_periodic_update() 104 if (ip_ptr -> nx_ipv6_destination_table[i].nx_ipv6_destination_entry_valid && in _nx_icmpv6_destination_table_periodic_update() 105 …(ip_ptr -> nx_ipv6_destination_table[i].nx_ipv6_destination_entry_MTU_timer_tick != NX_WAIT_FOREVE… in _nx_icmpv6_destination_table_periodic_update() 112 …if (ip_ptr -> nx_ipv6_destination_table[i].nx_ipv6_destination_entry_MTU_timer_tick <= NX_IP_PERIO… in _nx_icmpv6_destination_table_periodic_update() 116 ip_ptr -> nx_ipv6_destination_table[i].nx_ipv6_destination_entry_path_mtu = in _nx_icmpv6_destination_table_periodic_update() [all …]
|
D | nxd_ipv6_interface_find.c | 81 UINT i; in _nxd_ipv6_interface_find() local 98 for (i = 0; i < NX_MAX_MULTICAST_GROUPS; i++) in _nxd_ipv6_interface_find() 102 if (ip_ptr -> nx_ipv6_multicast_entry[i].nx_ip_mld_join_interface_list == NX_NULL) in _nxd_ipv6_interface_find() 108 … if (if_ptr && (ip_ptr -> nx_ipv6_multicast_entry[i].nx_ip_mld_join_interface_list != if_ptr)) in _nxd_ipv6_interface_find() 114 …if (ip_ptr -> nx_ipv6_multicast_entry[i].nx_ip_mld_join_interface_list -> nx_interface_link_up == … in _nxd_ipv6_interface_find() 119 …if (CHECK_IPV6_ADDRESSES_SAME(ip_ptr -> nx_ipv6_multicast_entry[i].nx_ip_mld_join_list, dest_addre… in _nxd_ipv6_interface_find() 121 …*ipv6_addr = ip_ptr -> nx_ipv6_multicast_entry[i].nx_ip_mld_join_interface_list -> nxd_interface_i… in _nxd_ipv6_interface_find() 142 for (i = 0; i < NX_MAX_IPV6_ADDRESSES; i++) in _nxd_ipv6_interface_find() 146 if ((ip_ptr -> nx_ipv6_address[i].nxd_ipv6_address_valid) && in _nxd_ipv6_interface_find() 147 … (CHECK_IPV6_ADDRESSES_SAME(ip_ptr -> nx_ipv6_address[i].nxd_ipv6_address, dest_address))) in _nxd_ipv6_interface_find() [all …]
|
D | nx_ip_static_route_add.c | 86 INT i; in _nx_ip_static_route_add() local 98 for (i = 0; i < NX_MAX_IP_INTERFACES; i++) in _nx_ip_static_route_add() 101 if (ip_ptr -> nx_ip_interface[i].nx_interface_valid && in _nx_ip_static_route_add() 102 …((next_hop & (ip_ptr -> nx_ip_interface[i].nx_interface_ip_network_mask)) == ip_ptr -> nx_ip_inter… in _nx_ip_static_route_add() 105 nx_ip_interface = &(ip_ptr -> nx_ip_interface[i]); in _nx_ip_static_route_add() 126 for (i = 0; i < (INT)ip_ptr -> nx_ip_routing_table_entry_count; i++) in _nx_ip_static_route_add() 129 if (ip_ptr -> nx_ip_routing_table[i].nx_ip_routing_dest_ip == network_address && in _nx_ip_static_route_add() 130 ip_ptr -> nx_ip_routing_table[i].nx_ip_routing_net_mask == net_mask) in _nx_ip_static_route_add() 134 ip_ptr -> nx_ip_routing_table[i].nx_ip_routing_next_hop_address = next_hop; in _nx_ip_static_route_add() 144 if (ip_ptr -> nx_ip_routing_table[i].nx_ip_routing_net_mask <= net_mask) in _nx_ip_static_route_add() [all …]
|
D | nx_ram_network_driver.c | 157 UINT i = 0; in _nx_ram_network_driver() local 179 for (i = 0; i < NX_MAX_RAM_INTERFACES; i++) in _nx_ram_network_driver() 181 if (nx_ram_driver[i].nx_ram_network_driver_in_use == 0) in _nx_ram_network_driver() 186 if (nx_ram_driver[i].nx_ram_driver_ip_ptr != ip_ptr) in _nx_ram_network_driver() 191 … if (nx_ram_driver[i].nx_ram_driver_interface_ptr == driver_req_ptr -> nx_ip_driver_interface) in _nx_ram_network_driver() 197 if (i == NX_MAX_RAM_INTERFACES) in _nx_ram_network_driver() 214 for (i = 0; i < NX_MAX_RAM_INTERFACES; i++) in _nx_ram_network_driver() 216 if (nx_ram_driver[i].nx_ram_network_driver_in_use == 0) in _nx_ram_network_driver() 222 if (i < NX_MAX_RAM_INTERFACES) in _nx_ram_network_driver() 225 nx_ram_driver[i].nx_ram_network_driver_in_use = 1; in _nx_ram_network_driver() [all …]
|
D | nx_igmp_periodic_processing.c | 75 UINT i; in _nx_igmp_periodic_processing() local 83 for (i = 0; i < NX_MAX_MULTICAST_GROUPS; i++) in _nx_igmp_periodic_processing() 87 if (ip_ptr -> nx_ipv4_multicast_entry[i].nx_ipv4_multicast_join_list) in _nx_igmp_periodic_processing() 91 if ((ip_ptr -> nx_ipv4_multicast_entry[i].nx_ipv4_multicast_update_time > 0) && in _nx_igmp_periodic_processing() 92 … (ip_ptr -> nx_ipv4_multicast_entry[i].nx_ipv4_multicast_update_time != NX_WAIT_FOREVER)) in _nx_igmp_periodic_processing() 96 ip_ptr -> nx_ipv4_multicast_entry[i].nx_ipv4_multicast_update_time--; in _nx_igmp_periodic_processing() 100 … if ((ip_ptr -> nx_ipv4_multicast_entry[i].nx_ipv4_multicast_update_time == 0) && (sent_count > 0)) in _nx_igmp_periodic_processing() 104 ip_ptr -> nx_ipv4_multicast_entry[i].nx_ipv4_multicast_update_time = 1; in _nx_igmp_periodic_processing() 108 if (ip_ptr -> nx_ipv4_multicast_entry[i].nx_ipv4_multicast_update_time == 0) in _nx_igmp_periodic_processing() 114 … interface_ptr = ip_ptr -> nx_ipv4_multicast_entry[i].nx_ipv4_multicast_join_interface_list; in _nx_igmp_periodic_processing() [all …]
|
D | nx_icmpv6_dest_table_add.c | 96 UINT i, table_size; in _nx_icmpv6_dest_table_add() local 146 for (i = 0; i < NX_IPV6_DESTINATION_TABLE_SIZE; i++) in _nx_icmpv6_dest_table_add() 150 if (!ip_ptr -> nx_ipv6_destination_table[i].nx_ipv6_destination_entry_valid) in _nx_icmpv6_dest_table_add() 159 NX_ASSERT(i < NX_IPV6_DESTINATION_TABLE_SIZE); in _nx_icmpv6_dest_table_add() 169 memset(&ip_ptr -> nx_ipv6_destination_table[i], 0, sizeof(NX_IPV6_DESTINATION_ENTRY)); in _nx_icmpv6_dest_table_add() 172 …COPY_IPV6_ADDRESS(destination_address, ip_ptr -> nx_ipv6_destination_table[i].nx_ipv6_destination_… in _nx_icmpv6_dest_table_add() 175 …COPY_IPV6_ADDRESS(next_hop, ip_ptr -> nx_ipv6_destination_table[i].nx_ipv6_destination_entry_next_… in _nx_icmpv6_dest_table_add() 179 …status = _nx_nd_cache_find_entry(ip_ptr, next_hop, &ip_ptr -> nx_ipv6_destination_table[i].nx_ipv6… in _nx_icmpv6_dest_table_add() 184 …_entry(ip_ptr, next_hop, ipv6_address, &ip_ptr -> nx_ipv6_destination_table[i].nx_ipv6_destination… in _nx_icmpv6_dest_table_add() 195 ip_ptr -> nx_ipv6_destination_table[i].nx_ipv6_destination_entry_valid = 1; in _nx_icmpv6_dest_table_add() [all …]
|
D | nx_nd_cache_find_entry_by_mac_addr.c | 88 INT i; in _nx_nd_cache_find_entry_by_mac_addr() local 95 for (i = 0; i < NX_IPV6_NEIGHBOR_CACHE_SIZE; i++) in _nx_nd_cache_find_entry_by_mac_addr() 99 if (ip_ptr -> nx_ipv6_nd_cache[i].nx_nd_cache_interface_ptr == NX_NULL) in _nx_nd_cache_find_entry_by_mac_addr() 105 if (ip_ptr -> nx_ipv6_nd_cache[i].nx_nd_cache_nd_status == ND_CACHE_STATE_INVALID) in _nx_nd_cache_find_entry_by_mac_addr() 111 …mac_msw = ((ULONG)ip_ptr -> nx_ipv6_nd_cache[i].nx_nd_cache_mac_addr[0] << 8) | ip_ptr -> nx_ipv6_… in _nx_nd_cache_find_entry_by_mac_addr() 112 …sw = ((ULONG)ip_ptr -> nx_ipv6_nd_cache[i].nx_nd_cache_mac_addr[2] << 24) | ((ULONG)ip_ptr -> nx_i… in _nx_nd_cache_find_entry_by_mac_addr() 113 …((ULONG)ip_ptr -> nx_ipv6_nd_cache[i].nx_nd_cache_mac_addr[4] << 8) | ip_ptr -> nx_ipv6_nd_cache[i… in _nx_nd_cache_find_entry_by_mac_addr() 120 *nd_cache_entry = &ip_ptr -> nx_ipv6_nd_cache[i]; in _nx_nd_cache_find_entry_by_mac_addr()
|
D | nx_ip_interface_attach.c | 99 INT i; in _nx_ip_interface_attach() local 113 for (i = 0; i < NX_MAX_PHYSICAL_INTERFACES; i++) in _nx_ip_interface_attach() 115 if ((ip_ptr -> nx_ip_interface[i].nx_interface_ip_address == ip_address) && in _nx_ip_interface_attach() 125 for (i = 0; i < NX_MAX_PHYSICAL_INTERFACES; i++) in _nx_ip_interface_attach() 128 nx_interface = &(ip_ptr -> nx_ip_interface[i]); in _nx_ip_interface_attach() 137 if (i == NX_MAX_PHYSICAL_INTERFACES) in _nx_ip_interface_attach() 159 …NX_TRACE_IN_LINE_INSERT(NX_TRACE_IP_INTERFACE_ATTACH, ip_ptr, ip_address, i, 0, NX_TRACE_IP_EVENTS… in _nx_ip_interface_attach() 167 ip_ptr -> nx_ip_interface[i].nx_interface_capability_flag = 0; in _nx_ip_interface_attach() 173 driver_request.nx_ip_driver_interface = &(ip_ptr -> nx_ip_interface[i]); in _nx_ip_interface_attach() 174 (ip_ptr -> nx_ip_interface[i].nx_interface_link_driver_entry)(&driver_request); in _nx_ip_interface_attach() [all …]
|
D | nx_ip_interface_detach.c | 96 UINT i; in _nx_ip_interface_detach() local 155 for (i = 0; i < ip_ptr -> nx_ip_routing_table_entry_count; i++) in _nx_ip_interface_detach() 159 if (ip_ptr -> nx_ip_routing_table[i].nx_ip_routing_entry_ip_interface == interface_ptr) in _nx_ip_interface_detach() 164 for (j = i; j < ip_ptr -> nx_ip_routing_table_entry_count; j++) in _nx_ip_interface_detach() 189 for (i = 0; i < NX_IPV6_DEFAULT_ROUTER_TABLE_SIZE; i++) in _nx_ip_interface_detach() 192 rt_entry = &ip_ptr -> nx_ipv6_default_router_table[i]; in _nx_ip_interface_detach() 228 for (i = 0; i < NX_MAX_MULTICAST_GROUPS; i++) in _nx_ip_interface_detach() 232 … if (ip_ptr -> nx_ipv4_multicast_entry[i].nx_ipv4_multicast_join_interface_list != interface_ptr) in _nx_ip_interface_detach() 238 ip_ptr -> nx_ipv4_multicast_entry[i].nx_ipv4_multicast_join_count = 1; in _nx_ip_interface_detach() 242 … ip_ptr -> nx_ipv4_multicast_entry[i].nx_ipv4_multicast_join_list, in _nx_ip_interface_detach() [all …]
|
/NetX-Duo-v6.3.0/crypto_libraries/src/ |
D | nx_crypto_initialize.c | 82 unsigned int i; in _nx_crypto_self_test_memcpy() local 87 for(i = 0; i < size; i++) in _nx_crypto_self_test_memcpy() 89 to[i] = from[i]; in _nx_crypto_self_test_memcpy() 145 unsigned int i; in _nx_crypto_self_test_memset() local 150 for(i = 0; i < size; i++) in _nx_crypto_self_test_memset() 152 to[i] = v; in _nx_crypto_self_test_memset() 211 unsigned int i; in _nx_crypto_self_test_memcmp() local 215 for(i = 0; i < size; i++) in _nx_crypto_self_test_memcmp() 273 unsigned int i; in _nx_crypto_self_test_memmove() local 280 for(i = 0; i < size; i++) in _nx_crypto_self_test_memmove() [all …]
|
D | nx_crypto_cbc.c | 68 UINT i; in _nx_crypto_cbc_xor() local 70 for (i = 0; i < block_size; i++) in _nx_crypto_cbc_xor() 72 ciphertext[i] = plaintext[i] ^ key[i]; in _nx_crypto_cbc_xor() 133 UINT i; in _nx_crypto_cbc_encrypt() local 155 for (i = 0; i < length; i += block_size) in _nx_crypto_cbc_encrypt() 159 _nx_crypto_cbc_xor(&input[i], last_cipher, output, block_size); in _nx_crypto_cbc_encrypt() 235 UINT i; in _nx_crypto_cbc_decrypt() local 256 for (i = 0; i < length; i += block_size) in _nx_crypto_cbc_decrypt() 260 NX_CRYPTO_MEMCPY(save_input, &input[i], block_size); /* Use case of memcpy is verified. */ in _nx_crypto_cbc_decrypt() 263 crypto_function(crypto_metadata, &input[i], &output[i], block_size); in _nx_crypto_cbc_decrypt() [all …]
|
D | nx_crypto_method_self_test_rsa.c | 604 UINT i; in _nx_crypto_method_self_test_rsa() local 623 for (i = 0; i < sizeof(output_size) / sizeof(UINT); ++i) in _nx_crypto_method_self_test_rsa() 628 (UCHAR *)m[i], in _nx_crypto_method_self_test_rsa() 629 key_size[i], in _nx_crypto_method_self_test_rsa() 641 (UCHAR *)pub_e[i], in _nx_crypto_method_self_test_rsa() 643 (UCHAR *)plain[i], in _nx_crypto_method_self_test_rsa() 644 output_size[i], in _nx_crypto_method_self_test_rsa() 647 output_size[i], in _nx_crypto_method_self_test_rsa() 657 if (NX_CRYPTO_MEMCMP(output, secret[i], output_size[i]) != 0) in _nx_crypto_method_self_test_rsa() 675 (UCHAR *)m[i], in _nx_crypto_method_self_test_rsa() [all …]
|
D | nx_crypto_huge_number.c | 89 UINT i; in _nx_crypto_huge_number_is_zero() local 91 for (i = 0; i < x -> nx_crypto_huge_number_size; i++) in _nx_crypto_huge_number_is_zero() 93 if (x -> nx_crypto_huge_number_data[i]) in _nx_crypto_huge_number_is_zero() 352 UINT i; in _nx_crypto_huge_number_add_unsigned() local 379 for (i = 0; i < right_size; i++) in _nx_crypto_huge_number_add_unsigned() 381 product = (product >> HN_SHIFT) + left_buffer[i] + right_buffer[i]; in _nx_crypto_huge_number_add_unsigned() 382 result_buffer[i] = product & HN_MASK; in _nx_crypto_huge_number_add_unsigned() 386 for (; i < left_size; i++) in _nx_crypto_huge_number_add_unsigned() 388 product = (product >> HN_SHIFT) + left_buffer[i]; in _nx_crypto_huge_number_add_unsigned() 389 result_buffer[i] = product & HN_MASK; in _nx_crypto_huge_number_add_unsigned() [all …]
|
/NetX-Duo-v6.3.0/nx_secure/src/ |
D | nx_secure_dtls_session_cache.c | 79 UINT i; in nx_secure_dtls_session_cache_delete() local 89 for (i = 0; i < num_sessions; ++i) in nx_secure_dtls_session_cache_delete() 92 if (session_array[i].nx_secure_dtls_remote_port != remote_port || in nx_secure_dtls_session_cache_delete() 93 session_array[i].nx_secure_dtls_local_port != local_port) in nx_secure_dtls_session_cache_delete() 97 if (session_array[i].nx_secure_dtls_remote_ip_address.nxd_ip_version != in nx_secure_dtls_session_cache_delete() 105 if (session_array[i].nx_secure_dtls_remote_ip_address.nxd_ip_address.v4 != in nx_secure_dtls_session_cache_delete() 116 …if ((session_array[i].nx_secure_dtls_remote_ip_address.nxd_ip_address.v6[0] != ip_address -> nxd_i… in nx_secure_dtls_session_cache_delete() 117 …(session_array[i].nx_secure_dtls_remote_ip_address.nxd_ip_address.v6[1] != ip_address -> nxd_ip_ad… in nx_secure_dtls_session_cache_delete() 118 …(session_array[i].nx_secure_dtls_remote_ip_address.nxd_ip_address.v6[2] != ip_address -> nxd_ip_ad… in nx_secure_dtls_session_cache_delete() 119 …(session_array[i].nx_secure_dtls_remote_ip_address.nxd_ip_address.v6[3] != ip_address -> nxd_ip_ad… in nx_secure_dtls_session_cache_delete() [all …]
|
D | nx_secure_crypto_method_self_test_rsa.c | 453 UINT i; in _nx_secure_crypto_method_self_test_rsa() local 472 for (i = 0; i < sizeof(output_size) / sizeof(UINT); ++i) in _nx_secure_crypto_method_self_test_rsa() 477 (UCHAR *)m[i], in _nx_secure_crypto_method_self_test_rsa() 478 key_size[i], in _nx_secure_crypto_method_self_test_rsa() 490 (UCHAR *)pub_e[i], in _nx_secure_crypto_method_self_test_rsa() 492 (UCHAR *)plain[i], in _nx_secure_crypto_method_self_test_rsa() 493 output_size[i], in _nx_secure_crypto_method_self_test_rsa() 496 output_size[i], in _nx_secure_crypto_method_self_test_rsa() 506 if (NX_SECURE_MEMCMP(output, secret[i], output_size[i]) != 0) in _nx_secure_crypto_method_self_test_rsa() 524 (UCHAR *)m[i], in _nx_secure_crypto_method_self_test_rsa() [all …]
|
D | nx_secure_tls_metadata_size_calculate.c | 81 UINT i; in _nx_secure_tls_metadata_size_calculate() local 126 for (i = 0; i < ciphersuite_table_size; ++i) in _nx_secure_tls_metadata_size_calculate() 128 …if (max_public_cipher_metadata_size < ciphersuite_table[i].nx_secure_tls_public_cipher -> nx_crypt… in _nx_secure_tls_metadata_size_calculate() 130 …max_public_cipher_metadata_size = ciphersuite_table[i].nx_secure_tls_public_cipher -> nx_crypto_me… in _nx_secure_tls_metadata_size_calculate() 133 …if (max_public_auth_metadata_size < ciphersuite_table[i].nx_secure_tls_public_auth -> nx_crypto_me… in _nx_secure_tls_metadata_size_calculate() 135 …max_public_auth_metadata_size = ciphersuite_table[i].nx_secure_tls_public_auth -> nx_crypto_metada… in _nx_secure_tls_metadata_size_calculate() 138 …if (max_session_cipher_metadata_size < ciphersuite_table[i].nx_secure_tls_session_cipher -> nx_cry… in _nx_secure_tls_metadata_size_calculate() 140 …max_session_cipher_metadata_size = ciphersuite_table[i].nx_secure_tls_session_cipher -> nx_crypto_… in _nx_secure_tls_metadata_size_calculate() 143 …if (max_tls_prf_metadata_size < ciphersuite_table[i].nx_secure_tls_prf -> nx_crypto_metadata_area_… in _nx_secure_tls_metadata_size_calculate() 145 …max_tls_prf_metadata_size = ciphersuite_table[i].nx_secure_tls_prf -> nx_crypto_metadata_area_size; in _nx_secure_tls_metadata_size_calculate() [all …]
|
D | nx_secure_tls_newest_supported_version.c | 79 INT i; in _nx_secure_tls_newest_supported_version() local 95 …for (i = (INT)(nx_secure_supported_versions_list[id].nx_secure_versions_list_count - 1); i >= 0; -… in _nx_secure_tls_newest_supported_version() 98 … if (nx_secure_supported_versions_list[id].nx_secure_versions_list[i].nx_secure_tls_is_supported) in _nx_secure_tls_newest_supported_version() 100 …(*protocol_version) = nx_secure_supported_versions_list[id].nx_secure_versions_list[i].nx_secure_t… in _nx_secure_tls_newest_supported_version() 155 INT i; in _nx_secure_tls_highest_supported_version_negotiate() local 175 …for (i = (INT)(nx_secure_supported_versions_list[id].nx_secure_versions_list_count - 1); i >= 0; -… in _nx_secure_tls_highest_supported_version_negotiate() 178 … if (nx_secure_supported_versions_list[id].nx_secure_versions_list[i].nx_secure_tls_is_supported) in _nx_secure_tls_highest_supported_version_negotiate() 180 …if (highest_version < nx_secure_supported_versions_list[id].nx_secure_versions_list[i].nx_secure_t… in _nx_secure_tls_highest_supported_version_negotiate() 182 …highest_version = nx_secure_supported_versions_list[id].nx_secure_versions_list[i].nx_secure_tls_p… in _nx_secure_tls_highest_supported_version_negotiate() 185 …if (lowest_version > nx_secure_supported_versions_list[id].nx_secure_versions_list[i].nx_secure_tl… in _nx_secure_tls_highest_supported_version_negotiate() [all …]
|
/NetX-Duo-v6.3.0/samples/ |
D | demo_netxduo_dns.c | 176 UINT i; in thread_client_entry() local 402 for(i =0; i< record_count; i++) in thread_client_entry() 404 … ipv6_address_ptr[i] = (NX_DNS_IPV6_ADDRESS *)(record_buffer + i * sizeof(NX_DNS_IPV6_ADDRESS)); in thread_client_entry() 406 printf("record %d: IP address: %x:%x:%x:%x:%x:%x:%x:%x\n", i, in thread_client_entry() 407 (UINT)(ipv6_address_ptr[i] -> ipv6_address[0] >>16 & 0xFFFF), in thread_client_entry() 408 (UINT)(ipv6_address_ptr[i] -> ipv6_address[0] & 0xFFFF), in thread_client_entry() 409 (UINT)(ipv6_address_ptr[i] -> ipv6_address[1] >>16 & 0xFFFF), in thread_client_entry() 410 (UINT)(ipv6_address_ptr[i] -> ipv6_address[1] & 0xFFFF), in thread_client_entry() 411 (UINT)(ipv6_address_ptr[i] -> ipv6_address[2] >>16 & 0xFFFF), in thread_client_entry() 412 (UINT)(ipv6_address_ptr[i] -> ipv6_address[2] & 0xFFFF), in thread_client_entry() [all …]
|