Home
last modified time | relevance | path

Searched refs:nx_crypto_huge_number_data (Results 1 – 10 of 10) sorted by relevance

/NetX-Duo-v6.4.1/crypto_libraries/inc/
Dnx_crypto_ec.h198 NX_CRYPTO_EC_CHANGE_ENDIAN((s) -> nx_crypto_huge_number_data[5], b, c0); \
199 NX_CRYPTO_EC_CHANGE_ENDIAN((s) -> nx_crypto_huge_number_data[4], b, c1); \
200 NX_CRYPTO_EC_CHANGE_ENDIAN((s) -> nx_crypto_huge_number_data[3], b, c2); \
201 NX_CRYPTO_EC_CHANGE_ENDIAN((s) -> nx_crypto_huge_number_data[2], b, c3); \
202 NX_CRYPTO_EC_CHANGE_ENDIAN((s) -> nx_crypto_huge_number_data[1], b, c4); \
203 NX_CRYPTO_EC_CHANGE_ENDIAN((s) -> nx_crypto_huge_number_data[0], b, c5); \
208 NX_CRYPTO_EC_CHANGE_ENDIAN((s) -> nx_crypto_huge_number_data[6], b, c0); \
209 NX_CRYPTO_EC_CHANGE_ENDIAN((s) -> nx_crypto_huge_number_data[5], b, c1); \
210 NX_CRYPTO_EC_CHANGE_ENDIAN((s) -> nx_crypto_huge_number_data[4], b, c2); \
211 NX_CRYPTO_EC_CHANGE_ENDIAN((s) -> nx_crypto_huge_number_data[3], b, c3); \
[all …]
Dnx_crypto_huge_number.h117 HN_UBASE *nx_crypto_huge_number_data; member
134 (hn) -> nx_crypto_huge_number_data = (HN_UBASE *)(buff); \
142 !((hn) -> nx_crypto_huge_number_data[0] & 1)
146 (hn) -> nx_crypto_huge_number_data[0] = (val); \
152 (hn) -> nx_crypto_huge_number_data = (HN_UBASE *)(buff); \
160 …NX_CRYPTO_MEMCPY((dst) -> nx_crypto_huge_number_data, …
161 (src) -> nx_crypto_huge_number_data, \
/NetX-Duo-v6.4.1/test/regression/nx_secure_test/
Dnx_secure_huge_number_test.c39 a.nx_crypto_huge_number_data = a_buf; in thread_0_entry()
40 b.nx_crypto_huge_number_data = b_buf; in thread_0_entry()
41 c.nx_crypto_huge_number_data = c_buf; in thread_0_entry()
63 a.nx_crypto_huge_number_data[1] = 0; in thread_0_entry()
80 a.nx_crypto_huge_number_data[0] = 0; in thread_0_entry()
81 a.nx_crypto_huge_number_data[1] = 1; in thread_0_entry()
122 a.nx_crypto_huge_number_data[1] = 0; in thread_0_entry()
127 a.nx_crypto_huge_number_data[0] = 0xFFFFFFFF; in thread_0_entry()
128 a.nx_crypto_huge_number_data[1] = 0xFFFFFFFE; in thread_0_entry()
129 a.nx_crypto_huge_number_data[2] = 0xFFFFFFFF; in thread_0_entry()
[all …]
Dnx_secure_ec_additional_test.c71 point.nx_crypto_ec_point_x.nx_crypto_huge_number_data[63] = 0xff; in thread_0_entry()
77 point.nx_crypto_ec_point_y.nx_crypto_huge_number_data[62] = 0xff; in thread_0_entry()
78 point.nx_crypto_ec_point_y.nx_crypto_huge_number_data[63] = 0; in thread_0_entry()
94 test_ec.nx_crypto_ec_field.fp.nx_crypto_huge_number_data = (VOID *)buffer; in thread_0_entry()
95 …O_MEMCPY(buffer, _nx_crypto_ec_secp192r1.nx_crypto_ec_field.fp.nx_crypto_huge_number_data, _nx_cry… 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()
113 value.nx_crypto_huge_number_data[1] = 1; in thread_0_entry()
114 value.nx_crypto_huge_number_data[0] = 3; in thread_0_entry()
Dnx_secure_ec_test.c90 …NX_CRYPTO_MEMCPY(m.nx_crypto_huge_number_data, ec_data_x25519_448[i].m, ec_data_x25519_448[i].m_le… in thread_0_entry()
93 …NX_CRYPTO_MEMCPY(point.nx_crypto_ec_point_x.nx_crypto_huge_number_data, ec_data_x25519_448[i].poin… in thread_0_entry()
/NetX-Duo-v6.4.1/crypto_libraries/src/
Dnx_crypto_huge_number_extended.c86 (value -> nx_crypto_huge_number_data[0] >= 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()
168 (value -> nx_crypto_huge_number_data[0] >= 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()
267 val = exponent -> nx_crypto_huge_number_data; in _nx_crypto_huge_number_power_modulus()
Dnx_crypto_huge_number.c92 if (x -> nx_crypto_huge_number_data[i]) in _nx_crypto_huge_number_is_zero()
355 HN_UBASE *result_buffer = left -> nx_crypto_huge_number_data; in _nx_crypto_huge_number_add_unsigned()
364 left_buffer = right -> nx_crypto_huge_number_data; in _nx_crypto_huge_number_add_unsigned()
365 right_buffer = left -> nx_crypto_huge_number_data; in _nx_crypto_huge_number_add_unsigned()
371 left_buffer = left -> nx_crypto_huge_number_data; in _nx_crypto_huge_number_add_unsigned()
372 right_buffer = right -> nx_crypto_huge_number_data; in _nx_crypto_huge_number_add_unsigned()
460 HN_UBASE *left_buffer = left -> nx_crypto_huge_number_data; in _nx_crypto_huge_number_subtract_unsigned()
461 HN_UBASE *right_buffer = right -> nx_crypto_huge_number_data; in _nx_crypto_huge_number_subtract_unsigned()
462 HN_UBASE *result_buffer = result -> nx_crypto_huge_number_data; in _nx_crypto_huge_number_subtract_unsigned()
536 HN_UBASE *buffer = value -> nx_crypto_huge_number_data; in _nx_crypto_huge_number_add_digit_unsigned()
[all …]
Dnx_crypto_dh.c143 modulus.nx_crypto_huge_number_data = dh_ptr -> nx_crypto_dh_modulus; in _nx_crypto_dh_setup()
163 private_key.nx_crypto_huge_number_data = dh_ptr -> nx_crypto_dh_private_key_buffer; in _nx_crypto_dh_setup()
291 modulus.nx_crypto_huge_number_data = (HN_UBASE *)dh_ptr -> nx_crypto_dh_modulus; in _nx_crypto_dh_compute_secret()
299 private_key.nx_crypto_huge_number_data = (HN_UBASE *)dh_ptr -> nx_crypto_dh_private_key_buffer; in _nx_crypto_dh_compute_secret()
Dnx_crypto_ecdh.c106 private_key.nx_crypto_huge_number_data = ecdh_ptr -> nx_crypto_ecdh_private_key_buffer; in _nx_crypto_ecdh_key_pair_import()
188 …private_key.nx_crypto_huge_number_data = (HN_UBASE *)ecdh_ptr -> nx_crypto_ecdh_private_key_buffer; in _nx_crypto_ecdh_private_key_export()
281 private_key.nx_crypto_huge_number_data = ecdh_ptr -> nx_crypto_ecdh_private_key_buffer; in _nx_crypto_ecdh_setup()
424 …private_key.nx_crypto_huge_number_data = (HN_UBASE *)ecdh_ptr -> nx_crypto_ecdh_private_key_buffer; in _nx_crypto_ecdh_compute_secret()
1050 private_key.nx_crypto_huge_number_data = ecdh_ptr -> nx_crypto_ecdh_private_key_buffer; in _nx_crypto_ecdh_setup_x25519_448()
1171 …NX_CRYPTO_MEMCPY(public_key.nx_crypto_ec_point_x.nx_crypto_huge_number_data, remote_public_key, re… in _nx_crypto_ecdh_compute_secret_x25519_448()
1175 … private_key.nx_crypto_huge_number_data = (HN_UBASE*)ecdh_ptr -> nx_crypto_ecdh_private_key_buffer; in _nx_crypto_ecdh_compute_secret_x25519_448()
Dnx_crypto_ec.c1991 (value -> nx_crypto_huge_number_data[0] < digit))) in _nx_crypto_ec_subtract_digit_reduce()
2736 digit = digit + d -> nx_crypto_huge_number_data[i]; in _nx_crypto_ec_naf_compute()
2758 value = (((d -> nx_crypto_huge_number_data[i + 1] & 1) << 1) + digit) & 3; in _nx_crypto_ec_naf_compute()
2777 digit = digit + d -> nx_crypto_huge_number_data[i]; in _nx_crypto_ec_naf_compute()
3029 … NX_CRYPTO_MEMSET(&expanded_d.nx_crypto_huge_number_data[expanded_d.nx_crypto_huge_number_size], 0, in _nx_crypto_ec_fp_fixed_multiple()
3042 value = expanded_d.nx_crypto_huge_number_data[bit_index >> (HN_SIZE_SHIFT + 3)]; in _nx_crypto_ec_fp_fixed_multiple()
3067 value = expanded_d.nx_crypto_huge_number_data[bit_index >> (HN_SIZE_SHIFT + 3)]; in _nx_crypto_ec_fp_fixed_multiple()
3414 … NX_CRYPTO_MEMSET(d.nx_crypto_huge_number_data, 0, d.nx_crypto_huge_number_size << HN_SIZE_SHIFT); in _nx_crypto_ec_precomputation()
3415 d.nx_crypto_huge_number_data[d.nx_crypto_huge_number_size - 1] = in _nx_crypto_ec_precomputation()
3449 … NX_CRYPTO_MEMSET(d.nx_crypto_huge_number_data, 0, d.nx_crypto_huge_number_size << HN_SIZE_SHIFT); in _nx_crypto_ec_precomputation()
[all …]