Home
last modified time | relevance | path

Searched refs:digit (Results 1 – 16 of 16) sorted by relevance

/NetX-Duo-v6.2.1/crypto_libraries/src/
Dnx_crypto_huge_number_extended.c82 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
87 (value -> nx_crypto_huge_number_data[0] >= digit)) in _nx_crypto_huge_number_add_digit()
92 _nx_crypto_huge_number_subtract_digit_unsigned(value, digit); in _nx_crypto_huge_number_add_digit()
99 value -> nx_crypto_huge_number_data[0] = digit - value -> nx_crypto_huge_number_data[0]; in _nx_crypto_huge_number_add_digit()
107 _nx_crypto_huge_number_add_digit_unsigned(value, digit); in _nx_crypto_huge_number_add_digit()
158 …RYPTO_KEEP VOID _nx_crypto_huge_number_subtract_digit(NX_CRYPTO_HUGE_NUMBER *value, HN_UBASE digit) in _nx_crypto_huge_number_subtract_digit() argument
164 _nx_crypto_huge_number_add_digit_unsigned(value, digit); in _nx_crypto_huge_number_subtract_digit()
169 (value -> nx_crypto_huge_number_data[0] >= digit)) in _nx_crypto_huge_number_subtract_digit()
174 _nx_crypto_huge_number_subtract_digit_unsigned(value, digit); in _nx_crypto_huge_number_subtract_digit()
181 value -> nx_crypto_huge_number_data[0] = digit - value -> nx_crypto_huge_number_data[0]; in _nx_crypto_huge_number_subtract_digit()
Dnx_crypto_huge_number.c533 …O_KEEP VOID _nx_crypto_huge_number_add_digit_unsigned(NX_CRYPTO_HUGE_NUMBER *value, HN_UBASE digit) in _nx_crypto_huge_number_add_digit_unsigned() argument
540 product = (HN_UBASE2)buffer[0] + digit; in _nx_crypto_huge_number_add_digit_unsigned()
608 …P VOID _nx_crypto_huge_number_subtract_digit_unsigned(NX_CRYPTO_HUGE_NUMBER *value, HN_UBASE digit) in _nx_crypto_huge_number_subtract_digit_unsigned() argument
615 product = (HN_UBASE2)(HN_RADIX + buffer[0] - digit); in _nx_crypto_huge_number_subtract_digit_unsigned()
1198 HN_UBASE digit, in _nx_crypto_huge_number_multiply_digit() argument
1208 if (digit == 0) in _nx_crypto_huge_number_multiply_digit()
1225 product += (HN_UBASE2)value_buffer[i] * digit; in _nx_crypto_huge_number_multiply_digit()
2621 NX_CRYPTO_HUGE_NUMBER digit; in _nx_crypto_huge_number_mont_power_modulus() local
2658 NX_CRYPTO_HUGE_NUMBER_INITIALIZE_DIGIT(&digit, &digit_value, 1); in _nx_crypto_huge_number_mont_power_modulus()
2718 _nx_crypto_huge_number_mont(m, mm_buffer[0], &digit, operand, temp_result); in _nx_crypto_huge_number_mont_power_modulus()
[all …]
Dnx_crypto_ec.c1922 HN_UBASE digit, in _nx_crypto_ec_add_digit_reduce() argument
1927 _nx_crypto_huge_number_add_digit_unsigned(value, digit); in _nx_crypto_ec_add_digit_reduce()
1986 HN_UBASE digit, in _nx_crypto_ec_subtract_digit_reduce() argument
1992 (value -> nx_crypto_huge_number_data[0] < digit))) in _nx_crypto_ec_subtract_digit_reduce()
1996 _nx_crypto_huge_number_subtract_digit_unsigned(value, digit); in _nx_crypto_ec_subtract_digit_reduce()
2725 HN_UBASE2 digit; in _nx_crypto_ec_naf_compute() local
2734 digit = 0; in _nx_crypto_ec_naf_compute()
2737 digit = digit + d -> nx_crypto_huge_number_data[i]; in _nx_crypto_ec_naf_compute()
2740 value = digit & 3; in _nx_crypto_ec_naf_compute()
2751 digit >>= 1; in _nx_crypto_ec_naf_compute()
[all …]
/NetX-Duo-v6.2.1/crypto_libraries/inc/
Dnx_crypto_huge_number.h185 VOID _nx_crypto_huge_number_add_digit(NX_CRYPTO_HUGE_NUMBER *value, HN_UBASE digit);
186 VOID _nx_crypto_huge_number_subtract_digit(NX_CRYPTO_HUGE_NUMBER *value, HN_UBASE digit);
187 VOID _nx_crypto_huge_number_add_digit_unsigned(NX_CRYPTO_HUGE_NUMBER *value, HN_UBASE digit);
188 VOID _nx_crypto_huge_number_subtract_digit_unsigned(NX_CRYPTO_HUGE_NUMBER *value, HN_UBASE digit);
193 HN_UBASE digit,
Dnx_crypto_ec.h177 #define NX_CRYPTO_EC_MULTIPLE_DIGIT_REDUCE(curve, value, digit, result, scratch) \ argument
178 _nx_crypto_huge_number_multiply_digit(value, digit, result); \
545 HN_UBASE digit,
549 HN_UBASE digit,
/NetX-Duo-v6.2.1/common/src/
Dnx_utility.c252 UINT digit; in _nx_utility_uint_to_string() local
278 digit = number % base; in _nx_utility_uint_to_string()
284 if (digit < 10) in _nx_utility_uint_to_string()
286 string_buffer[0] = (CHAR) (digit + '0'); in _nx_utility_uint_to_string()
290 string_buffer[0] = (CHAR) (digit + 'a' - 0xa); in _nx_utility_uint_to_string()
/NetX-Duo-v6.2.1/addons/pop3/
Dnxd_pop3_client.c2473 CHAR digit; in _nx_pop3_hex_ascii_convert() local
2484 digit = (source[i] >> 4) & 0xF; in _nx_pop3_hex_ascii_convert()
2487 if (digit <= 9) in _nx_pop3_hex_ascii_convert()
2488 destination[j++] = (CHAR)(digit + '0'); in _nx_pop3_hex_ascii_convert()
2490 destination[j++] = (CHAR)(digit + 'a' - 10); in _nx_pop3_hex_ascii_convert()
2493 digit = source[i] & 0xF; in _nx_pop3_hex_ascii_convert()
2496 if (digit <= 9) in _nx_pop3_hex_ascii_convert()
2497 destination[j++] = (CHAR)(digit + '0'); in _nx_pop3_hex_ascii_convert()
2499 destination[j++] = (CHAR)(digit + 'a' - 10); in _nx_pop3_hex_ascii_convert()
2555 UINT digit; in _nx_pop3_server_number_convert() local
[all …]
/NetX-Duo-v6.2.1/addons/ftp/
Dnxd_ftp_server.c5747 UINT j, k, i, m, colons, digit; in _nx_ftp_utility_parse_IPv6_address() local
5817 digit = 10; in _nx_ftp_utility_parse_IPv6_address()
5822 digit = 11; in _nx_ftp_utility_parse_IPv6_address()
5827 digit = 12; in _nx_ftp_utility_parse_IPv6_address()
5832 digit = 13; in _nx_ftp_utility_parse_IPv6_address()
5837 digit = 14; in _nx_ftp_utility_parse_IPv6_address()
5842 digit = 15; in _nx_ftp_utility_parse_IPv6_address()
5846 digit = 0; in _nx_ftp_utility_parse_IPv6_address()
5850 temp = (temp*16 + digit); in _nx_ftp_utility_parse_IPv6_address()
6248 UINT digit; in _nx_ftp_server_utility_fill_port_number() local
[all …]
Dnxd_ftp_client.c4794 UINT digit; in _nx_ftp_utility_convert_portnumber_ascii() local
4813 digit = number % 10; in _nx_ftp_utility_convert_portnumber_ascii()
4819 numstring[0] = (CHAR) (digit + 0x30); in _nx_ftp_utility_convert_portnumber_ascii()
/NetX-Duo-v6.2.1/addons/http/
Dnxd_http_server.c6829 CHAR digit; in _nx_http_server_hex_ascii_convert() local
6840 digit = (source[i] >> 4) & 0xF; in _nx_http_server_hex_ascii_convert()
6843 if (digit <= 9) in _nx_http_server_hex_ascii_convert()
6844 destination[j++] = (CHAR)(digit + '0'); in _nx_http_server_hex_ascii_convert()
6846 destination[j++] = (CHAR)(digit + 'a' - 10); in _nx_http_server_hex_ascii_convert()
6849 digit = source[i] & 0xF; in _nx_http_server_hex_ascii_convert()
6852 if (digit <= 9) in _nx_http_server_hex_ascii_convert()
6853 destination[j++] = (CHAR)(digit + '0'); in _nx_http_server_hex_ascii_convert()
6855 destination[j++] = (CHAR)(digit + 'a' - 10); in _nx_http_server_hex_ascii_convert()
8999 UINT digit; in _nx_http_server_date_convert() local
[all …]
Dnxd_http_client.c3302 UINT digit; in _nx_http_client_number_convert() local
3325 digit = number % 10; in _nx_http_client_number_convert()
3331 string[0] = (CHAR) (digit + 0x30); in _nx_http_client_number_convert()
/NetX-Duo-v6.2.1/addons/web/
Dnx_web_http_server.c7342 CHAR digit; in _nx_web_http_server_hex_ascii_convert() local
7353 digit = (source[i] >> 4) & 0xF; in _nx_web_http_server_hex_ascii_convert()
7356 if (digit <= 9) in _nx_web_http_server_hex_ascii_convert()
7357 destination[j++] = (CHAR)(digit + '0'); in _nx_web_http_server_hex_ascii_convert()
7359 destination[j++] = (CHAR)(digit + 'a' - 10); in _nx_web_http_server_hex_ascii_convert()
7362 digit = source[i] & 0xF; in _nx_web_http_server_hex_ascii_convert()
7365 if (digit <= 9) in _nx_web_http_server_hex_ascii_convert()
7366 destination[j++] = (CHAR)(digit + '0'); in _nx_web_http_server_hex_ascii_convert()
7368 destination[j++] = (CHAR)(digit + 'a' - 10); in _nx_web_http_server_hex_ascii_convert()
10535 UINT digit; in _nx_web_http_server_date_convert() local
[all …]
Dnx_web_http_client.c6599 UINT digit; in _nx_web_http_client_number_convert() local
6622 digit = number % 10; in _nx_web_http_client_number_convert()
6628 string[0] = (CHAR) (digit + 0x30); in _nx_web_http_client_number_convert()
/NetX-Duo-v6.2.1/addons/dhcp/
Dnxd_dhcp_server.c63 static UINT _nx_dhcp_parse_next_option(CHAR **buffer, UINT *digit, UINT length);
2512 UINT digit; in _nx_dhcp_set_server_options() local
2531 status = _nx_dhcp_parse_next_option(&buffer, &digit, buffer_size); in _nx_dhcp_set_server_options()
2545 dhcp_ptr -> nx_dhcp_server_options[j] = digit; in _nx_dhcp_set_server_options()
/NetX-Duo-v6.2.1/addons/dns/
Dnxd_dns.c9264 UINT digit; in _nx_dns_number_to_ascii_convert() local
9281 digit = value % 10; in _nx_dns_number_to_ascii_convert()
9295 buffstring[index++] = (CHAR)('0' + digit); in _nx_dns_number_to_ascii_convert()
/NetX-Duo-v6.2.1/addons/BSD/
Dnxd_bsd.c5568 UINT digit; in bsd_number_convert() local
5588 digit = number % base; in bsd_number_convert()
5594 if(digit < 10) in bsd_number_convert()
5595 string[0] = (CHAR) (digit + 0x30); in bsd_number_convert()
5597 string[0] = (CHAR) (digit + 0x57); in bsd_number_convert()