Home
last modified time | relevance | path

Searched refs:shift (Results 1 – 7 of 7) sorted by relevance

/NetX-Duo-v6.4.1/test/regression/netxduo_test/
Dnetx_ipv4_option_process_test.c235 ULONG shift; in my_packet_process() local
269 shift = packet_ptr -> nx_packet_length - ip_header_length; in my_packet_process()
270 memmove(((UCHAR *)(icmp_header_ptr)) + offset, icmp_header_ptr, shift); in my_packet_process()
291 shift = packet_ptr -> nx_packet_length - ip_header_length; in my_packet_process()
292 memmove(((UCHAR *)(icmp_header_ptr)) + offset, icmp_header_ptr, shift); in my_packet_process()
335 shift = packet_ptr -> nx_packet_length - ip_header_length; in my_packet_process()
336 memmove(((UCHAR *)(icmp_header_ptr)) + offset, icmp_header_ptr, shift); in my_packet_process()
360 shift = packet_ptr -> nx_packet_length - ip_header_length; in my_packet_process()
361 memmove(((UCHAR *)(icmp_header_ptr)) + offset, icmp_header_ptr, shift); in my_packet_process()
385 shift = packet_ptr -> nx_packet_length - ip_header_length; in my_packet_process()
[all …]
Dnetx_icmp_send_error_message_test_1.c169 ULONG shift; in my_packet_process() local
204 shift = packet_ptr -> nx_packet_length - ip_header_length; in my_packet_process()
205 memmove(((UCHAR *)(icmp_header_ptr)) + offset, icmp_header_ptr, shift); in my_packet_process()
Dnetx_icmp_send_error_message_test.c280 ULONG shift; in my_packet_process() local
323 shift = packet_ptr -> nx_packet_length - ip_header_length; in my_packet_process()
324 memmove(((UCHAR *)(icmp_header_ptr)) + offset, icmp_header_ptr, shift); in my_packet_process()
/NetX-Duo-v6.4.1/crypto_libraries/src/
Dnx_crypto_huge_number.c670 NX_CRYPTO_KEEP VOID _nx_crypto_huge_number_shift_left(NX_CRYPTO_HUGE_NUMBER *x, UINT shift) in _nx_crypto_huge_number_shift_left() argument
677 x_buffer[i] = x_buffer[i - 1] >> (HN_SHIFT - shift); in _nx_crypto_huge_number_shift_left()
680 x_buffer[i] = (x_buffer[i - 1] >> (HN_SHIFT - shift)) | (x_buffer[i] << shift); in _nx_crypto_huge_number_shift_left()
682 x_buffer[0] <<= shift; in _nx_crypto_huge_number_shift_left()
740 NX_CRYPTO_KEEP VOID _nx_crypto_huge_number_shift_right(NX_CRYPTO_HUGE_NUMBER *x, UINT shift) in _nx_crypto_huge_number_shift_right() argument
748 x_buffer[i] = (x_buffer[i + 1] << (HN_SHIFT - shift)) | (x_buffer[i] >> shift); in _nx_crypto_huge_number_shift_right()
750 x_buffer[i] >>= shift; in _nx_crypto_huge_number_shift_right()
1424 UINT shift; /* In number of USHORT words. */ in _nx_crypto_huge_number_modulus() local
1501 shift = result_length - divisor_length; in _nx_crypto_huge_number_modulus()
1503 if (shift && (dividend_msb < divisor_msb)) in _nx_crypto_huge_number_modulus()
[all …]
Dnx_crypto_ec.c2727 UINT shift; in _nx_crypto_ec_naf_compute() local
2730 shift = 0; in _nx_crypto_ec_naf_compute()
2741 *ptr = *ptr | (value << shift); in _nx_crypto_ec_naf_compute()
2742 shift += 2; in _nx_crypto_ec_naf_compute()
2743 if (shift == HN_SHIFT) in _nx_crypto_ec_naf_compute()
2745 shift = 0; in _nx_crypto_ec_naf_compute()
2760 *ptr = *ptr | (value << shift); in _nx_crypto_ec_naf_compute()
2761 shift += 2; in _nx_crypto_ec_naf_compute()
2762 if (shift == HN_SHIFT) in _nx_crypto_ec_naf_compute()
2764 shift = 0; in _nx_crypto_ec_naf_compute()
[all …]
/NetX-Duo-v6.4.1/crypto_libraries/inc/
Dnx_crypto_huge_number.h196 VOID _nx_crypto_huge_number_shift_left(NX_CRYPTO_HUGE_NUMBER *x, UINT shift);
197 VOID _nx_crypto_huge_number_shift_right(NX_CRYPTO_HUGE_NUMBER *x, UINT shift);
Dnx_crypto_ec.h188 #define NX_CRYPTO_EC_SHIFT_LEFT_REDUCE(curve, value, shift, scratch) \ argument
189 _nx_crypto_huge_number_shift_left(value, shift); \