| /NetX-Duo-v6.2.1/crypto_libraries/src/ |
| D | nx_crypto_huge_number_extended.c | 81 NX_CRYPTO_KEEP VOID _nx_crypto_huge_number_add_digit(NX_CRYPTO_HUGE_NUMBER *value, HN_UBASE digit) in _nx_crypto_huge_number_add_digit() argument 83 if (value -> nx_crypto_huge_number_is_negative) in _nx_crypto_huge_number_add_digit() 85 if ((value -> nx_crypto_huge_number_size > 1) || in _nx_crypto_huge_number_add_digit() 86 (value -> nx_crypto_huge_number_data[0] >= digit)) in _nx_crypto_huge_number_add_digit() 91 _nx_crypto_huge_number_subtract_digit_unsigned(value, digit); in _nx_crypto_huge_number_add_digit() 98 value -> nx_crypto_huge_number_data[0] = digit - value -> nx_crypto_huge_number_data[0]; in _nx_crypto_huge_number_add_digit() 99 value -> nx_crypto_huge_number_is_negative = NX_CRYPTO_FALSE; in _nx_crypto_huge_number_add_digit() 106 _nx_crypto_huge_number_add_digit_unsigned(value, digit); in _nx_crypto_huge_number_add_digit() 157 NX_CRYPTO_KEEP VOID _nx_crypto_huge_number_subtract_digit(NX_CRYPTO_HUGE_NUMBER *value, HN_UBASE di… in _nx_crypto_huge_number_subtract_digit() argument 159 if (value -> nx_crypto_huge_number_is_negative) in _nx_crypto_huge_number_subtract_digit() [all …]
|
| D | nx_crypto_ec.c | 1184 NX_CRYPTO_HUGE_NUMBER *value, in _nx_crypto_ec_secp192r1_reduce() argument 1193 compare_value = _nx_crypto_huge_number_compare(value, &curve -> nx_crypto_ec_field.fp); in _nx_crypto_ec_secp192r1_reduce() 1200 NX_CRYPTO_HUGE_NUMBER_SET_DIGIT(value, 0); in _nx_crypto_ec_secp192r1_reduce() 1209 _nx_crypto_huge_number_extract(value, (UCHAR *)data, 48, &size); in _nx_crypto_ec_secp192r1_reduce() 1219 _nx_crypto_huge_number_setup(value, (UCHAR *)data + 24, 24); in _nx_crypto_ec_secp192r1_reduce() 1225 _nx_crypto_huge_number_add(value, &temp); in _nx_crypto_ec_secp192r1_reduce() 1231 _nx_crypto_huge_number_add(value, &temp); in _nx_crypto_ec_secp192r1_reduce() 1237 _nx_crypto_huge_number_add(value, &temp); in _nx_crypto_ec_secp192r1_reduce() 1239 compare_value = _nx_crypto_huge_number_compare_unsigned(value, &curve -> nx_crypto_ec_field.fp); in _nx_crypto_ec_secp192r1_reduce() 1242 _nx_crypto_huge_number_subtract_unsigned(value, &curve -> nx_crypto_ec_field.fp, value); in _nx_crypto_ec_secp192r1_reduce() [all …]
|
| D | nx_crypto_huge_number.c | 532 NX_CRYPTO_KEEP VOID _nx_crypto_huge_number_add_digit_unsigned(NX_CRYPTO_HUGE_NUMBER *value, HN_UBAS… in _nx_crypto_huge_number_add_digit_unsigned() argument 536 HN_UBASE *buffer = value -> nx_crypto_huge_number_data; in _nx_crypto_huge_number_add_digit_unsigned() 537 UINT size = value -> nx_crypto_huge_number_size; in _nx_crypto_huge_number_add_digit_unsigned() 553 value -> nx_crypto_huge_number_size = i + 1; in _nx_crypto_huge_number_add_digit_unsigned() 607 NX_CRYPTO_KEEP VOID _nx_crypto_huge_number_subtract_digit_unsigned(NX_CRYPTO_HUGE_NUMBER *value, HN… in _nx_crypto_huge_number_subtract_digit_unsigned() argument 611 HN_UBASE *buffer = value -> nx_crypto_huge_number_data; in _nx_crypto_huge_number_subtract_digit_unsigned() 612 UINT size = value -> nx_crypto_huge_number_size; in _nx_crypto_huge_number_subtract_digit_unsigned() 624 _nx_crypto_huge_number_adjust_size(value); in _nx_crypto_huge_number_subtract_digit_unsigned() 1196 NX_CRYPTO_KEEP VOID _nx_crypto_huge_number_multiply_digit(NX_CRYPTO_HUGE_NUMBER *value, in _nx_crypto_huge_number_multiply_digit() argument 1215 size = value -> nx_crypto_huge_number_size; in _nx_crypto_huge_number_multiply_digit() [all …]
|
| D | nx_crypto_initialize.c | 141 NX_CRYPTO_KEEP VOID *_nx_crypto_self_test_memset(void *dest, int value, size_t size) in _nx_crypto_self_test_memset() argument 148 v = (char)(value & 0xFF); in _nx_crypto_self_test_memset()
|
| /NetX-Duo-v6.2.1/test/regression/netxduo_test/ |
| D | netx_ip_status_check_test.c | 103 ULONG value; in ntest_0_entry() local 117 status = nx_ip_status_check(&ip_0, NX_IP_INITIALIZE_DONE, &value, NX_IP_PERIODIC_RATE); in ntest_0_entry() 120 if ((status) || (value != NX_IP_INITIALIZE_DONE)) in ntest_0_entry() 124 status = nx_ip_status_check(&ip_0, NX_IP_LINK_ENABLED, &value, NX_IP_PERIODIC_RATE); in ntest_0_entry() 127 if ((status) || (value != NX_IP_LINK_ENABLED)) in ntest_0_entry() 131 status = nx_ip_status_check(&ip_0, NX_IP_ARP_ENABLED, &value, NX_IP_PERIODIC_RATE); in ntest_0_entry() 134 if ((status) || (value != NX_IP_ARP_ENABLED)) in ntest_0_entry() 138 status = nx_ip_status_check(&ip_0, NX_IP_UDP_ENABLED, &value, NX_IP_PERIODIC_RATE); in ntest_0_entry() 141 if ((status) || (value != NX_IP_UDP_ENABLED)) in ntest_0_entry() 145 status = nx_ip_status_check(&ip_0, NX_IP_TCP_ENABLED, &value, NX_IP_PERIODIC_RATE); in ntest_0_entry() [all …]
|
| D | netx_ip_raw_packet_queue_test.c | 130 ULONG value; in ntest_0_entry() local 146 status = nx_ip_status_check(&ip_0, NX_IP_INITIALIZE_DONE, &value, NX_IP_PERIODIC_RATE); in ntest_0_entry() 149 if ((status) || (value != NX_IP_INITIALIZE_DONE)) in ntest_0_entry() 201 ULONG value; in ntest_1_entry() local 206 status = nx_ip_status_check(&ip_1, NX_IP_INITIALIZE_DONE, &value, NX_IP_PERIODIC_RATE); in ntest_1_entry() 209 if ((status) || (value != NX_IP_INITIALIZE_DONE)) in ntest_1_entry()
|
| D | netx_ip_raw_packet_filter_test.c | 138 ULONG value; in ntest_0_entry() local 152 status = nx_ip_status_check(&ip_0, NX_IP_INITIALIZE_DONE, &value, NX_IP_PERIODIC_RATE); in ntest_0_entry() 155 if ((status) || (value != NX_IP_INITIALIZE_DONE)) in ntest_0_entry() 189 ULONG value; in ntest_1_entry() local 196 status = nx_ip_status_check(&ip_1, NX_IP_INITIALIZE_DONE, &value, NX_IP_PERIODIC_RATE); in ntest_1_entry() 197 if ((status) || (value != NX_IP_INITIALIZE_DONE)) in ntest_1_entry()
|
| D | netx_raw_special_test.c | 157 ULONG value; in ntest_0_entry() local 177 status = nx_ip_status_check(&ip_0, NX_IP_INITIALIZE_DONE, &value, NX_IP_PERIODIC_RATE); in ntest_0_entry() 178 if ((status) || (value != NX_IP_INITIALIZE_DONE)) in ntest_0_entry() 267 ULONG value; in ntest_1_entry() local 270 status = nx_ip_status_check(&ip_1, NX_IP_INITIALIZE_DONE, &value, NX_IP_PERIODIC_RATE); in ntest_1_entry() 271 if ((status) || (value != NX_IP_INITIALIZE_DONE)) in ntest_1_entry()
|
| D | netx_ipv6_raw_packet_test.c | 158 ULONG value; in ntest_0_entry() local 179 status = nx_ip_status_check(&ip_0, NX_IP_INITIALIZE_DONE, &value, NX_IP_PERIODIC_RATE); in ntest_0_entry() 182 if ((status) || (value != NX_IP_INITIALIZE_DONE)) in ntest_0_entry() 260 ULONG value; in ntest_1_entry() local 272 status = nx_ip_status_check(&ip_1, NX_IP_INITIALIZE_DONE, &value, NX_IP_PERIODIC_RATE); in ntest_1_entry() 275 if ((status) || (value != NX_IP_INITIALIZE_DONE)) in ntest_1_entry()
|
| D | netx_ip_basic_test.c | 103 ULONG value; in ntest_0_entry() local 210 status += nx_ip_status_check(&ip_0, NX_IP_INITIALIZE_DONE, &value, NX_IP_PERIODIC_RATE); in ntest_0_entry() 213 if ((status) || (value != NX_IP_INITIALIZE_DONE)) in ntest_0_entry() 221 status = nx_ip_driver_direct_command(&ip_0, NX_LINK_GET_STATUS, &value); in ntest_0_entry() 232 status = nx_ip_driver_interface_direct_command(&ip_0, NX_LINK_GET_STATUS, 0, &value); in ntest_0_entry()
|
| /NetX-Duo-v6.2.1/addons/azure_iot/ |
| D | nx_azure_iot_json_writer.h | 93 int32_t value); 110 … double value, UINT fractional_digits); 126 UINT value); 144 const UCHAR *value, UINT value_len); 167 const UCHAR *value, UINT value_len); 205 const UCHAR *value, UINT value_len); 216 UINT nx_azure_iot_json_writer_append_bool(NX_AZURE_IOT_JSON_WRITER *json_writer_ptr, UINT value); 227 UINT nx_azure_iot_json_writer_append_int32(NX_AZURE_IOT_JSON_WRITER *json_writer_ptr, int32_t value… 250 double value, int32_t fractional_digits);
|
| D | nx_azure_iot_json_writer.c | 195 const UCHAR *value, UINT value_len) in nx_azure_iot_json_writer_append_string() argument 197 az_span span = az_span_create((UCHAR *)value, (INT)value_len); in nx_azure_iot_json_writer_append_string() 237 const UCHAR *value, UINT value_len) in nx_azure_iot_json_writer_append_property_name() argument 239 az_span span = az_span_create((UCHAR *)value, (INT)value_len); in nx_azure_iot_json_writer_append_property_name() 257 UINT nx_azure_iot_json_writer_append_bool(NX_AZURE_IOT_JSON_WRITER *json_writer_ptr, UINT value) in nx_azure_iot_json_writer_append_bool() argument 265 if (az_result_failed(az_json_writer_append_bool(&(json_writer_ptr -> json_writer), value))) in nx_azure_iot_json_writer_append_bool() 275 UINT nx_azure_iot_json_writer_append_int32(NX_AZURE_IOT_JSON_WRITER *json_writer_ptr, int32_t value) in nx_azure_iot_json_writer_append_int32() argument 283 if (az_result_failed(az_json_writer_append_int32(&(json_writer_ptr -> json_writer), value))) in nx_azure_iot_json_writer_append_int32() 294 double value, int32_t fractional_digits) in nx_azure_iot_json_writer_append_double() argument 302 …if (az_result_failed(az_json_writer_append_double(&(json_writer_ptr -> json_writer), value, fracti… in nx_azure_iot_json_writer_append_double() [all …]
|
| /NetX-Duo-v6.2.1/test/regression/nx_secure_test/ |
| D | nx_secure_ec_additional_test.c | 40 NX_CRYPTO_HUGE_NUMBER value; in thread_0_entry() local 103 NX_CRYPTO_HUGE_NUMBER_INITIALIZE(&value, scratch_ptr, 64); in thread_0_entry() 104 NX_CRYPTO_HUGE_NUMBER_SET_DIGIT(&value, 0); in thread_0_entry() 105 _nx_crypto_ec_subtract_digit_reduce(&test_ec, &value, 2, NX_CRYPTO_NULL); in thread_0_entry() 107 value.nx_crypto_huge_number_size = 2; in thread_0_entry() 108 value.nx_crypto_huge_number_data[1] = 1; in thread_0_entry() 109 value.nx_crypto_huge_number_data[0] = 0; in thread_0_entry() 110 _nx_crypto_ec_subtract_digit_reduce(&test_ec, &value, 2, NX_CRYPTO_NULL); in thread_0_entry() 112 value.nx_crypto_huge_number_size = 2; in thread_0_entry() 113 value.nx_crypto_huge_number_data[1] = 1; in thread_0_entry() [all …]
|
| /NetX-Duo-v6.2.1/addons/azure_iot/docs/ |
| D | azure_rtos_iot_json.md | 170 <div style="text-align: right">Gets the JSON token's boolean value</div> 180 <p>Gets the JSON token's boolean value.</p> 187 | value_ptr [out] | A pointer to a variable to receive the value. | 190 * NX_AZURE_IOT_SUCCESS The boolean value is returned. 221 | value_ptr [out] | A pointer to a variable to receive the value. | 255 | value_ptr [out] | A pointer to a variable to receive the value. | 289 | value_ptr [out] | A pointer to a variable to receive the value. | 352 <p>Determines whether the unescaped JSON token value that the #NX_AZURE_IOT_JSON_READER points to i… 363 * NX_TRUE If the current JSON token value in the JSON source semantically matches the expected look… 396 * NX_AZURE_IOT_READER_TOKEN_NONE There is no value. [all …]
|
| D | azure_rtos_iot_hub_client_properties.md | 130 // "value": <user_value> 145 // Append user value here (<user_value>) 156 // "value": <user_value> 255 | message_type [in] | Type of message repsonse, only valid value are NX_AZURE_IOT_HUB_PROPERTIES… 290 …value by calling nx_azure_iot_json_reader_next_token(). Note that on the subsequent call to this A… 306 /* Get the property value here 309 /* Skip to next property value */ 319 /* Skip children in case the property value is an object. */ 332 | message_type [in] | Type of message repsonse, only valid value are NX_AZURE_IOT_HUB_PROPERTIES… 333 | property_type [in] | Type of property, only valid value are NX_AZURE_IOT_HUB_CLIENT_PROPERTY_R…
|
| /NetX-Duo-v6.2.1/test/regression/dhcp_test/ |
| D | netx_dhcp_clone_function.c | 7 UINT dhcp_get_option_value(UCHAR *bootp_message, UINT option, ULONG *value, UINT length) in dhcp_get_option_value() argument 33 *value = dhcp_get_data(data + 1, 4); in dhcp_get_option_value() 49 *value = dhcp_get_data(data + 1, *data); in dhcp_get_option_value() 107 ULONG value = 0; in dhcp_get_data() local 115 value = (value << 8) | *data++; in dhcp_get_data() 119 return(value); in dhcp_get_data()
|
| D | netx_dhcp_client_server_source_port_test.c | 140 ULONG value = 0; in dhcp_get_data_local() local 148 value = (value << 8) | *data++; in dhcp_get_data_local() 152 return(value); in dhcp_get_data_local()
|
| /NetX-Duo-v6.2.1/addons/dhcp/ |
| D | nxd_dhcp_client.c | 45 static UINT _nx_dhcp_get_option_value(UCHAR *bootp_message, UINT option, ULONG *value, UINT … 46 … _nx_dhcp_add_option_value(UCHAR *bootp_message, UINT option, UINT size, ULONG value, UINT *index); 47 …nx_dhcp_add_option_string(UCHAR *bootp_message, UINT option, UINT size, UCHAR *value, UINT *index); 53 static VOID _nx_dhcp_store_data(UCHAR *data, UINT size, ULONG value); 7393 ULONG value; in _nx_dhcp_extract_information() local 7397 value = _nx_dhcp_get_data(dhcp_message + NX_BOOTP_OFFSET_YOUR_IP, 4); in _nx_dhcp_extract_information() 7400 if ((value != NX_BOOTP_NO_ADDRESS) && in _nx_dhcp_extract_information() 7401 (((value & NX_IP_CLASS_A_MASK) == NX_IP_CLASS_A_TYPE) || in _nx_dhcp_extract_information() 7402 ((value & NX_IP_CLASS_B_MASK) == NX_IP_CLASS_B_TYPE) || in _nx_dhcp_extract_information() 7403 ((value & NX_IP_CLASS_C_MASK) == NX_IP_CLASS_C_TYPE))) in _nx_dhcp_extract_information() [all …]
|
| D | nxd_dhcp_server.c | 57 static UINT _nx_dhcp_process_option_data(NX_DHCP_CLIENT *dhcp_ptr, CHAR *buffer, UCHAR value… 58 static UINT _nx_dhcp_add_option(UCHAR *bootp_message, UINT option, UINT size, ULONG value, U… 63 static UINT _nx_dhcp_server_get_data(UCHAR *data, UINT size, ULONG *value); 64 static VOID _nx_dhcp_server_store_data(UCHAR *data, UINT size, ULONG value); 4881 ULONG value; in _nx_dhcp_server_extract_information() local 4936 …tus = _nx_dhcp_server_get_data(packet_ptr -> nx_packet_prepend_ptr + NX_DHCP_OFFSET_OP, 1, &value); in _nx_dhcp_server_extract_information() 4944 if (value != NX_DHCP_OP_REQUEST) in _nx_dhcp_server_extract_information() 4959 … = _nx_dhcp_server_get_data(packet_ptr -> nx_packet_prepend_ptr + NX_DHCP_OFFSET_HTYPE, 1, &value); in _nx_dhcp_server_extract_information() 4966 temp_client_rec_ptr -> nx_dhcp_client_hwtype = value; in _nx_dhcp_server_extract_information() 4969 …s = _nx_dhcp_server_get_data(packet_ptr -> nx_packet_prepend_ptr + NX_DHCP_OFFSET_HLEN, 1, &value); in _nx_dhcp_server_extract_information() [all …]
|
| /NetX-Duo-v6.2.1/crypto_libraries/inc/ |
| D | nx_crypto_huge_number.h | 184 VOID _nx_crypto_huge_number_add_digit(NX_CRYPTO_HUGE_NUMBER *value, HN_UBASE digit); 185 VOID _nx_crypto_huge_number_subtract_digit(NX_CRYPTO_HUGE_NUMBER *value, HN_UBASE digit); 186 VOID _nx_crypto_huge_number_add_digit_unsigned(NX_CRYPTO_HUGE_NUMBER *value, HN_UBASE digit); 187 VOID _nx_crypto_huge_number_subtract_digit_unsigned(NX_CRYPTO_HUGE_NUMBER *value, HN_UBASE digit); 191 VOID _nx_crypto_huge_number_multiply_digit(NX_CRYPTO_HUGE_NUMBER *value, 194 VOID _nx_crypto_huge_number_square(NX_CRYPTO_HUGE_NUMBER *value, NX_CRYPTO_HUGE_NUMBER *result);
|
| D | nx_crypto_ec.h | 153 NX_CRYPTO_HUGE_NUMBER *value, 176 #define NX_CRYPTO_EC_MULTIPLE_DIGIT_REDUCE(curve, value, digit, result, scratch) \ argument 177 _nx_crypto_huge_number_multiply_digit(value, digit, result); \ 184 #define NX_CRYPTO_EC_SQUARE_REDUCE(curve, value, result, scratch) \ argument 185 _nx_crypto_huge_number_square(value, result); \ 188 #define NX_CRYPTO_EC_SHIFT_LEFT_REDUCE(curve, value, shift, scratch) \ argument 189 _nx_crypto_huge_number_shift_left(value, shift); \ 190 curve -> nx_crypto_ec_reduce(curve, value, scratch); 499 NX_CRYPTO_HUGE_NUMBER *value, 502 NX_CRYPTO_HUGE_NUMBER *value, [all …]
|
| D | nx_crypto.h | 107 VOID *_nx_crypto_self_test_memset(void *dest, int value, size_t size); 127 VOID *(*volatile _nx_crypto_memset_ptr)(void *dest, int value, size_t size) = memset; 130 extern VOID *(*volatile _nx_crypto_memset_ptr)(void *dest, int value, size_t size);
|
| /NetX-Duo-v6.2.1/test/regression/azure_iot/ |
| D | c2d_property_unit_test.c | 51 UCHAR *value; member 55 #define PROPERTY_INIT(name, value) {(name), sizeof(name) - 1, (value), sizeof(value) - 1} argument 195 …assert_int_equal(nx_packet_data_append(packet_ptr, properties[i].value, properties[i].value_length, in construct_c2d_packet() 349 assert_memory_equal(properties[l].value, result, result_size); in multiple_properties_test()
|
| /NetX-Duo-v6.2.1/samples/ |
| D | demo_netxduo_https.c | 526 CHAR value[100]; in http_response_callback() local 531 field_value_length >= sizeof(value)) in http_response_callback() 537 memset(value, 0, sizeof(value)); in http_response_callback() 540 memcpy(value, field_value, field_value_length); /* Use case of memcpy is verified. */ in http_response_callback() 543 name, field_name_length, value, field_value_length); in http_response_callback()
|
| /NetX-Duo-v6.2.1/common/src/ |
| D | nx_ip_packet_send.c | 99 USHORT value; in _nx_ip_packet_send() local 265 value = (USHORT)(packet_ptr -> nx_packet_length); in _nx_ip_packet_send() 266 NX_CHANGE_USHORT_ENDIAN(value); in _nx_ip_packet_send() 272 ip_header_ptr -> nx_ip_header_word_0 |= (ULONG)(value << NX_SHIFT_BY_16) & 0xFFFF0000; in _nx_ip_packet_send()
|