Home
last modified time | relevance | path

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

/NetX-Duo-v6.2.1/addons/snmp/
Dnx_des.c205 ULONG left, right, temp; in _nx_des_key_set() local
216left = (((ULONG) key[0]) << 24) | (((ULONG) key[1]) << 16) | (((ULONG) key[2]) << 8) | ((ULONG) k… in _nx_des_key_set()
220 temp = ((right >> 4) ^ left) & 0x0F0F0F0FUL; in _nx_des_key_set()
221 left = left ^ temp; in _nx_des_key_set()
223 temp = (right ^ left) & 0x10101010; in _nx_des_key_set()
224 left = left ^ temp; in _nx_des_key_set()
227left = (left_half_bit_swap[(left) & 0xf] << 3) | (left_half_bit_swap[(left >> 8) & 0xf] << 2) | in _nx_des_key_set()
228 … (left_half_bit_swap[(left >> 16) & 0xf] << 1) | (left_half_bit_swap[(left >> 24) & 0xf]) | in _nx_des_key_set()
229 … (left_half_bit_swap[(left >> 5) & 0xf] << 7) | (left_half_bit_swap[(left >> 13) & 0xf] << 6) | in _nx_des_key_set()
230 … (left_half_bit_swap[(left >> 21) & 0xf] << 5) | (left_half_bit_swap[(left >> 29) & 0xf] << 4); in _nx_des_key_set()
[all …]
/NetX-Duo-v6.2.1/crypto_libraries/src/
Dnx_crypto_des.c202 ULONG left, right, temp; in _nx_crypto_des_key_set() local
215left = (((ULONG)key[0]) << 24) | (((ULONG)key[1]) << 16) | (((ULONG)key[2]) << 8) | ((ULONG)key[3… in _nx_crypto_des_key_set()
219 temp = ((right >> 4) ^ left) & 0x0F0F0F0FUL; in _nx_crypto_des_key_set()
220 left = left ^ temp; in _nx_crypto_des_key_set()
222 temp = (right ^ left) & 0x10101010; in _nx_crypto_des_key_set()
223 left = left ^ temp; in _nx_crypto_des_key_set()
226 left = (left_half_bit_swap[(left) & 0xf] << 3) | (left_half_bit_swap[(left >> 8) & 0xf] << 2) | in _nx_crypto_des_key_set()
227 … (left_half_bit_swap[(left >> 16) & 0xf] << 1) | (left_half_bit_swap[(left >> 24) & 0xf]) | in _nx_crypto_des_key_set()
228 … (left_half_bit_swap[(left >> 5) & 0xf] << 7) | (left_half_bit_swap[(left >> 13) & 0xf] << 6) | in _nx_crypto_des_key_set()
229 … (left_half_bit_swap[(left >> 21) & 0xf] << 5) | (left_half_bit_swap[(left >> 29) & 0xf] << 4); in _nx_crypto_des_key_set()
[all …]
Dnx_crypto_huge_number.c171 NX_CRYPTO_KEEP VOID _nx_crypto_huge_number_add(NX_CRYPTO_HUGE_NUMBER *left, NX_CRYPTO_HUGE_NUMBER *… in _nx_crypto_huge_number_add() argument
175 cmp = _nx_crypto_huge_number_compare_unsigned(left, right); in _nx_crypto_huge_number_add()
177 if (left -> nx_crypto_huge_number_is_negative == right -> nx_crypto_huge_number_is_negative) in _nx_crypto_huge_number_add()
179 _nx_crypto_huge_number_add_unsigned(left, right); in _nx_crypto_huge_number_add()
186 NX_CRYPTO_HUGE_NUMBER_SET_DIGIT(left, 0); in _nx_crypto_huge_number_add()
190 _nx_crypto_huge_number_subtract_unsigned(right, left, left); in _nx_crypto_huge_number_add()
191 left -> nx_crypto_huge_number_is_negative = right -> nx_crypto_huge_number_is_negative; in _nx_crypto_huge_number_add()
195 _nx_crypto_huge_number_subtract_unsigned(left, right, left); in _nx_crypto_huge_number_add()
269 NX_CRYPTO_KEEP VOID _nx_crypto_huge_number_subtract(NX_CRYPTO_HUGE_NUMBER *left, NX_CRYPTO_HUGE_NUM… in _nx_crypto_huge_number_subtract() argument
273 cmp = _nx_crypto_huge_number_compare_unsigned(left, right); in _nx_crypto_huge_number_subtract()
[all …]
Dnx_crypto_ec.c2107 NX_CRYPTO_HUGE_NUMBER *left, in _nx_crypto_ec_add_reduce() argument
2113 _nx_crypto_huge_number_add_unsigned(left, right); in _nx_crypto_ec_add_reduce()
2114 if (_nx_crypto_huge_number_compare_unsigned(left, in _nx_crypto_ec_add_reduce()
2117 _nx_crypto_huge_number_subtract_unsigned(left, &curve -> nx_crypto_ec_field.fp, left); in _nx_crypto_ec_add_reduce()
2181 NX_CRYPTO_HUGE_NUMBER *left, in _nx_crypto_ec_subtract_reduce() argument
2187 if (_nx_crypto_huge_number_compare_unsigned(left, right) == NX_CRYPTO_HUGE_NUMBER_LESS) in _nx_crypto_ec_subtract_reduce()
2189 _nx_crypto_huge_number_add_unsigned(left, &curve -> nx_crypto_ec_field.fp); in _nx_crypto_ec_subtract_reduce()
2191 _nx_crypto_huge_number_subtract_unsigned(left, right, left); in _nx_crypto_ec_subtract_reduce()
2541 NX_CRYPTO_EC_POINT *left, in _nx_crypto_ec_fp_affine_add() argument
2549 if (_nx_crypto_ec_point_is_infinite(left)) in _nx_crypto_ec_fp_affine_add()
[all …]
/NetX-Duo-v6.2.1/crypto_libraries/inc/
Dnx_crypto_huge_number.h174 UINT _nx_crypto_huge_number_compare(NX_CRYPTO_HUGE_NUMBER *left, NX_CRYPTO_HUGE_NUMBER *right);
175 UINT _nx_crypto_huge_number_compare_unsigned(NX_CRYPTO_HUGE_NUMBER *left,
178 VOID _nx_crypto_huge_number_add(NX_CRYPTO_HUGE_NUMBER *left, NX_CRYPTO_HUGE_NUMBER *right);
179 VOID _nx_crypto_huge_number_add_unsigned(NX_CRYPTO_HUGE_NUMBER *left, NX_CRYPTO_HUGE_NUMBER *right);
180 VOID _nx_crypto_huge_number_subtract(NX_CRYPTO_HUGE_NUMBER *left, NX_CRYPTO_HUGE_NUMBER *right);
181 VOID _nx_crypto_huge_number_subtract_unsigned(NX_CRYPTO_HUGE_NUMBER *left,
188 VOID _nx_crypto_huge_number_multiply(NX_CRYPTO_HUGE_NUMBER *left,
Dnx_crypto_ec.h140 NX_CRYPTO_EC_POINT *left,
144 NX_CRYPTO_EC_POINT *left,
180 #define NX_CRYPTO_EC_MULTIPLE_REDUCE(curve, left, right, result, scratch) \ argument
181 _nx_crypto_huge_number_multiply(left, right, result); \
524 NX_CRYPTO_EC_POINT *left,
528 NX_CRYPTO_EC_POINT *left,
551 NX_CRYPTO_HUGE_NUMBER *left,
555 NX_CRYPTO_HUGE_NUMBER *left,
/NetX-Duo-v6.2.1/tsn/src/
Dnx_shaper.c1148 UINT left = 0, right; in nx_shaper_tas_parameter_set() local
1271 right = left + tas_parameter.gcl[i].duration; in nx_shaper_tas_parameter_set()
1274 …if ((right <= tas_config -> traffic[j].time_offset) || (left >= tas_config -> traffic[j].time_offs… in nx_shaper_tas_parameter_set()
1321 left = right; in nx_shaper_tas_parameter_set()