Home
last modified time | relevance | path

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

/NetX-Duo-v6.2.1/crypto_libraries/src/
Dnx_crypto_huge_number_extended.c81 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
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()
106 _nx_crypto_huge_number_add_digit_unsigned(value, digit); in _nx_crypto_huge_number_add_digit()
157 …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
163 _nx_crypto_huge_number_add_digit_unsigned(value, digit); in _nx_crypto_huge_number_subtract_digit()
168 (value -> nx_crypto_huge_number_data[0] >= digit)) in _nx_crypto_huge_number_subtract_digit()
173 _nx_crypto_huge_number_subtract_digit_unsigned(value, digit); in _nx_crypto_huge_number_subtract_digit()
180 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.c532 …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
539 product = (HN_UBASE2)buffer[0] + digit; in _nx_crypto_huge_number_add_digit_unsigned()
607 …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
614 product = (HN_UBASE2)(HN_RADIX + buffer[0] - digit); in _nx_crypto_huge_number_subtract_digit_unsigned()
1197 HN_UBASE digit, in _nx_crypto_huge_number_multiply_digit() argument
1207 if (digit == 0) in _nx_crypto_huge_number_multiply_digit()
1224 product += (HN_UBASE2)value_buffer[i] * digit; in _nx_crypto_huge_number_multiply_digit()
2620 NX_CRYPTO_HUGE_NUMBER digit; in _nx_crypto_huge_number_mont_power_modulus() local
2657 NX_CRYPTO_HUGE_NUMBER_INITIALIZE_DIGIT(&digit, &digit_value, 1); in _nx_crypto_huge_number_mont_power_modulus()
2717 _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.c1921 HN_UBASE digit, in _nx_crypto_ec_add_digit_reduce() argument
1926 _nx_crypto_huge_number_add_digit_unsigned(value, digit); in _nx_crypto_ec_add_digit_reduce()
1985 HN_UBASE digit, in _nx_crypto_ec_subtract_digit_reduce() argument
1991 (value -> nx_crypto_huge_number_data[0] < digit))) in _nx_crypto_ec_subtract_digit_reduce()
1995 _nx_crypto_huge_number_subtract_digit_unsigned(value, digit); in _nx_crypto_ec_subtract_digit_reduce()
2724 HN_UBASE2 digit; in _nx_crypto_ec_naf_compute() local
2733 digit = 0; in _nx_crypto_ec_naf_compute()
2736 digit = digit + d -> nx_crypto_huge_number_data[i]; in _nx_crypto_ec_naf_compute()
2739 value = digit & 3; in _nx_crypto_ec_naf_compute()
2750 digit >>= 1; in _nx_crypto_ec_naf_compute()
[all …]
/NetX-Duo-v6.2.1/test/regression/web_test/
Dhttp_digest_authentication.c11 CHAR digit; in http_hex_ascii_convert() local
22 digit = (source[i] >> 4) & 0xF; in http_hex_ascii_convert()
25 if (digit <= 9) in http_hex_ascii_convert()
26 destination[j++] = (CHAR)(digit + '0'); in http_hex_ascii_convert()
28 destination[j++] = (CHAR)(digit + 'a' - 10); in http_hex_ascii_convert()
31 digit = source[i] & 0xF; in http_hex_ascii_convert()
34 if (digit <= 9) in http_hex_ascii_convert()
35 destination[j++] = (CHAR)(digit + '0'); in http_hex_ascii_convert()
37 destination[j++] = (CHAR)(digit + 'a' - 10); in http_hex_ascii_convert()
/NetX-Duo-v6.2.1/crypto_libraries/inc/
Dnx_crypto_huge_number.h184 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);
192 HN_UBASE digit,
Dnx_crypto_ec.h176 #define NX_CRYPTO_EC_MULTIPLE_DIGIT_REDUCE(curve, value, digit, result, scratch) \ argument
177 _nx_crypto_huge_number_multiply_digit(value, digit, result); \
544 HN_UBASE digit,
548 HN_UBASE digit,
/NetX-Duo-v6.2.1/common/src/
Dnx_utility.c251 UINT digit; in _nx_utility_uint_to_string() local
277 digit = number % base; in _nx_utility_uint_to_string()
283 if (digit < 10) in _nx_utility_uint_to_string()
285 string_buffer[0] = (CHAR) (digit + '0'); in _nx_utility_uint_to_string()
289 string_buffer[0] = (CHAR) (digit + 'a' - 0xa); in _nx_utility_uint_to_string()
/NetX-Duo-v6.2.1/addons/pop3/
Dnxd_pop3_client.c2472 CHAR digit; in _nx_pop3_hex_ascii_convert() local
2483 digit = (source[i] >> 4) & 0xF; in _nx_pop3_hex_ascii_convert()
2486 if (digit <= 9) in _nx_pop3_hex_ascii_convert()
2487 destination[j++] = (CHAR)(digit + '0'); in _nx_pop3_hex_ascii_convert()
2489 destination[j++] = (CHAR)(digit + 'a' - 10); in _nx_pop3_hex_ascii_convert()
2492 digit = source[i] & 0xF; in _nx_pop3_hex_ascii_convert()
2495 if (digit <= 9) in _nx_pop3_hex_ascii_convert()
2496 destination[j++] = (CHAR)(digit + '0'); in _nx_pop3_hex_ascii_convert()
2498 destination[j++] = (CHAR)(digit + 'a' - 10); in _nx_pop3_hex_ascii_convert()
2554 UINT digit; in _nx_pop3_server_number_convert() local
[all …]
/NetX-Duo-v6.2.1/addons/ftp/
Dnxd_ftp_server.c5810 UINT j, k, i, m, colons, digit; in _nx_ftp_utility_parse_IPv6_address() local
5880 digit = 10; in _nx_ftp_utility_parse_IPv6_address()
5885 digit = 11; in _nx_ftp_utility_parse_IPv6_address()
5890 digit = 12; in _nx_ftp_utility_parse_IPv6_address()
5895 digit = 13; in _nx_ftp_utility_parse_IPv6_address()
5900 digit = 14; in _nx_ftp_utility_parse_IPv6_address()
5905 digit = 15; in _nx_ftp_utility_parse_IPv6_address()
5909 digit = 0; in _nx_ftp_utility_parse_IPv6_address()
5913 temp = (temp*16 + digit); in _nx_ftp_utility_parse_IPv6_address()
6311 UINT digit; in _nx_ftp_server_utility_fill_port_number() local
[all …]
Dnxd_ftp_client.c4797 UINT digit; in _nx_ftp_utility_convert_portnumber_ascii() local
4816 digit = number % 10; in _nx_ftp_utility_convert_portnumber_ascii()
4822 numstring[0] = (CHAR) (digit + 0x30); in _nx_ftp_utility_convert_portnumber_ascii()
/NetX-Duo-v6.2.1/addons/http/
Dnxd_http_server.c6828 CHAR digit; in _nx_http_server_hex_ascii_convert() local
6839 digit = (source[i] >> 4) & 0xF; in _nx_http_server_hex_ascii_convert()
6842 if (digit <= 9) in _nx_http_server_hex_ascii_convert()
6843 destination[j++] = (CHAR)(digit + '0'); in _nx_http_server_hex_ascii_convert()
6845 destination[j++] = (CHAR)(digit + 'a' - 10); in _nx_http_server_hex_ascii_convert()
6848 digit = source[i] & 0xF; in _nx_http_server_hex_ascii_convert()
6851 if (digit <= 9) in _nx_http_server_hex_ascii_convert()
6852 destination[j++] = (CHAR)(digit + '0'); in _nx_http_server_hex_ascii_convert()
6854 destination[j++] = (CHAR)(digit + 'a' - 10); in _nx_http_server_hex_ascii_convert()
8998 UINT digit; in _nx_http_server_date_convert() local
[all …]
Dnxd_http_client.c3301 UINT digit; in _nx_http_client_number_convert() local
3324 digit = number % 10; in _nx_http_client_number_convert()
3330 string[0] = (CHAR) (digit + 0x30); in _nx_http_client_number_convert()
/NetX-Duo-v6.2.1/addons/web/
Dnx_web_http_server.c7341 CHAR digit; in _nx_web_http_server_hex_ascii_convert() local
7352 digit = (source[i] >> 4) & 0xF; in _nx_web_http_server_hex_ascii_convert()
7355 if (digit <= 9) in _nx_web_http_server_hex_ascii_convert()
7356 destination[j++] = (CHAR)(digit + '0'); in _nx_web_http_server_hex_ascii_convert()
7358 destination[j++] = (CHAR)(digit + 'a' - 10); in _nx_web_http_server_hex_ascii_convert()
7361 digit = source[i] & 0xF; in _nx_web_http_server_hex_ascii_convert()
7364 if (digit <= 9) in _nx_web_http_server_hex_ascii_convert()
7365 destination[j++] = (CHAR)(digit + '0'); in _nx_web_http_server_hex_ascii_convert()
7367 destination[j++] = (CHAR)(digit + 'a' - 10); in _nx_web_http_server_hex_ascii_convert()
10534 UINT digit; in _nx_web_http_server_date_convert() local
[all …]
Dnx_web_http_client.c6598 UINT digit; in _nx_web_http_client_number_convert() local
6621 digit = number % 10; in _nx_web_http_client_number_convert()
6627 string[0] = (CHAR) (digit + 0x30); in _nx_web_http_client_number_convert()
/NetX-Duo-v6.2.1/addons/dhcp/
Dnxd_dhcp_server.c62 static UINT _nx_dhcp_parse_next_option(CHAR **buffer, UINT *digit, UINT length);
2511 UINT digit; in _nx_dhcp_set_server_options() local
2530 status = _nx_dhcp_parse_next_option(&buffer, &digit, buffer_size); in _nx_dhcp_set_server_options()
2544 dhcp_ptr -> nx_dhcp_server_options[j] = digit; in _nx_dhcp_set_server_options()
/NetX-Duo-v6.2.1/addons/dns/
Dnxd_dns.c9270 UINT digit; in _nx_dns_number_to_ascii_convert() local
9287 digit = value % 10; in _nx_dns_number_to_ascii_convert()
9301 buffstring[index++] = (CHAR)('0' + digit); in _nx_dns_number_to_ascii_convert()
/NetX-Duo-v6.2.1/addons/BSD/
Dnxd_bsd.c5853 UINT digit; in bsd_number_convert() local
5873 digit = number % base; in bsd_number_convert()
5879 if(digit < 10) in bsd_number_convert()
5880 string[0] = (CHAR) (digit + 0x30); in bsd_number_convert()
5882 string[0] = (CHAR) (digit + 0x57); in bsd_number_convert()