Home
last modified time | relevance | path

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

/NetX-Duo-v6.2.1/crypto_libraries/src/
Dnx_crypto_ecjpake.c168 HN_UBASE *scratch) in _nx_crypto_ecjpake_hello_generate() argument
179 NX_CRYPTO_HUGE_NUMBER_INITIALIZE(&private_key, scratch, buffer_size); in _nx_crypto_ecjpake_hello_generate()
180 NX_CRYPTO_HUGE_NUMBER_INITIALIZE(&r, scratch, buffer_size); in _nx_crypto_ecjpake_hello_generate()
181 NX_CRYPTO_EC_POINT_INITIALIZE(&v, NX_CRYPTO_EC_POINT_AFFINE, scratch, buffer_size); in _nx_crypto_ecjpake_hello_generate()
184 &ecjpake -> nx_crypto_ecjpake_public_x1, scratch); in _nx_crypto_ecjpake_hello_generate()
200 scratch); in _nx_crypto_ecjpake_hello_generate()
236 &ecjpake -> nx_crypto_ecjpake_public_x2, scratch); in _nx_crypto_ecjpake_hello_generate()
252 scratch); in _nx_crypto_ecjpake_hello_generate()
337 HN_UBASE *scratch) in _nx_crypto_ecjpake_hello_process() argument
348 NX_CRYPTO_HUGE_NUMBER_INITIALIZE(&r, scratch, buffer_size); in _nx_crypto_ecjpake_hello_process()
[all …]
Dnx_crypto_ec.c1086 HN_UBASE *scratch) in _nx_crypto_ec_point_fp_projective_to_affine() argument
1102 NX_CRYPTO_HUGE_NUMBER_INITIALIZE(&temp1, scratch, buffer_size << 1); in _nx_crypto_ec_point_fp_projective_to_affine()
1103 NX_CRYPTO_HUGE_NUMBER_INITIALIZE(&temp2, scratch, buffer_size << 1); in _nx_crypto_ec_point_fp_projective_to_affine()
1104 NX_CRYPTO_HUGE_NUMBER_INITIALIZE(&zi, scratch, buffer_size); in _nx_crypto_ec_point_fp_projective_to_affine()
1108 p, &zi, scratch); in _nx_crypto_ec_point_fp_projective_to_affine()
1111 NX_CRYPTO_EC_SQUARE_REDUCE(curve, &zi, &temp1, scratch); in _nx_crypto_ec_point_fp_projective_to_affine()
1113 &temp1, &temp2, scratch); in _nx_crypto_ec_point_fp_projective_to_affine()
1117 NX_CRYPTO_EC_MULTIPLE_REDUCE(curve, &zi, &temp1, &temp2, scratch); in _nx_crypto_ec_point_fp_projective_to_affine()
1119 &temp2, &temp1, scratch); in _nx_crypto_ec_point_fp_projective_to_affine()
1185 HN_UBASE *scratch) in _nx_crypto_ec_secp192r1_reduce() argument
[all …]
Dnx_crypto_ecdsa.c79 ULONG *actual_signature_length, HN_UBASE *scratch) in _nx_crypto_ecdsa_sign() argument
120 NX_CRYPTO_HUGE_NUMBER_INITIALIZE(&privkey, scratch, buffer_size); in _nx_crypto_ecdsa_sign()
121 NX_CRYPTO_HUGE_NUMBER_INITIALIZE(&z, scratch, buffer_size); in _nx_crypto_ecdsa_sign()
123 NX_CRYPTO_HUGE_NUMBER_INITIALIZE(&k, scratch, buffer_size + 8); in _nx_crypto_ecdsa_sign()
124 NX_CRYPTO_HUGE_NUMBER_INITIALIZE(&ik, scratch, buffer_size); in _nx_crypto_ecdsa_sign()
125 NX_CRYPTO_HUGE_NUMBER_INITIALIZE(&temp, scratch, buffer_size * 2); in _nx_crypto_ecdsa_sign()
126 NX_CRYPTO_EC_POINT_INITIALIZE(&pt, NX_CRYPTO_EC_POINT_AFFINE, scratch, buffer_size); in _nx_crypto_ecdsa_sign()
159 scratch); in _nx_crypto_ecdsa_sign()
167 _nx_crypto_huge_number_inverse_modulus(&k, &curve -> nx_crypto_ec_n, &ik, scratch); in _nx_crypto_ecdsa_sign()
317 … UCHAR *signature, UINT signature_length, HN_UBASE *scratch) in _nx_crypto_ecdsa_verify() argument
[all …]
Dnx_crypto_rsa.c97 HN_UBASE *scratch; in _nx_crypto_rsa_operation() local
105 scratch = (HN_UBASE *)scratch_buf_ptr; in _nx_crypto_rsa_operation()
108 NX_CRYPTO_HUGE_NUMBER_INITIALIZE(&modulus_hn, scratch, modulus_length); in _nx_crypto_rsa_operation()
111 NX_CRYPTO_HUGE_NUMBER_INITIALIZE(&input_hn, scratch, modulus_length); in _nx_crypto_rsa_operation()
114 NX_CRYPTO_HUGE_NUMBER_INITIALIZE(&exponent_hn, scratch, modulus_length); in _nx_crypto_rsa_operation()
117 NX_CRYPTO_HUGE_NUMBER_INITIALIZE(&output_hn, scratch, modulus_length << 1); in _nx_crypto_rsa_operation()
131 NX_CRYPTO_HUGE_NUMBER_INITIALIZE(&p_hn, scratch, modulus_length >> 1); in _nx_crypto_rsa_operation()
133 NX_CRYPTO_HUGE_NUMBER_INITIALIZE(&q_hn, scratch, modulus_length >> 1); in _nx_crypto_rsa_operation()
144 scratch); in _nx_crypto_rsa_operation()
153 &output_hn, scratch); in _nx_crypto_rsa_operation()
Dnx_crypto_method_self_test_ecdsa.c108 HN_UBASE *scratch; in _nx_crypto_method_self_test_ecdsa() local
220 scratch = (HN_UBASE*)(&scratch_buffer[3 * buffer_size + 4]); in _nx_crypto_method_self_test_ecdsa()
223 NX_CRYPTO_EC_POINT_INITIALIZE(&public_key, NX_CRYPTO_EC_POINT_AFFINE, scratch, buffer_size); in _nx_crypto_method_self_test_ecdsa()
224 NX_CRYPTO_HUGE_NUMBER_INITIALIZE(&private_key, scratch, buffer_size + 8); in _nx_crypto_method_self_test_ecdsa()
228 &public_key, scratch); in _nx_crypto_method_self_test_ecdsa()
Dnx_crypto_huge_number.c2162 HN_UBASE *scratch) in _nx_crypto_huge_number_inverse_modulus_prime() argument
2177 NX_CRYPTO_HUGE_NUMBER_INITIALIZE(&u, scratch, buffer_size); in _nx_crypto_huge_number_inverse_modulus_prime()
2178 NX_CRYPTO_HUGE_NUMBER_INITIALIZE(&v, scratch, buffer_size); in _nx_crypto_huge_number_inverse_modulus_prime()
2179 NX_CRYPTO_HUGE_NUMBER_INITIALIZE(&A, scratch, buffer_size); in _nx_crypto_huge_number_inverse_modulus_prime()
2180 NX_CRYPTO_HUGE_NUMBER_INITIALIZE(&C, scratch, buffer_size); in _nx_crypto_huge_number_inverse_modulus_prime()
2299 HN_UBASE *scratch) in _nx_crypto_huge_number_inverse_modulus() argument
2329 NX_CRYPTO_HUGE_NUMBER_INITIALIZE(&u, scratch, buffer_size); in _nx_crypto_huge_number_inverse_modulus()
2330 NX_CRYPTO_HUGE_NUMBER_INITIALIZE(&v, scratch, buffer_size); in _nx_crypto_huge_number_inverse_modulus()
2331 NX_CRYPTO_HUGE_NUMBER_INITIALIZE(&A, scratch, buffer_size); in _nx_crypto_huge_number_inverse_modulus()
2332 NX_CRYPTO_HUGE_NUMBER_INITIALIZE(&B, scratch, buffer_size); in _nx_crypto_huge_number_inverse_modulus()
[all …]
Dnx_crypto_huge_number_extended.c252 HN_UBASE *scratch) in _nx_crypto_huge_number_power_modulus() argument
260 NX_CRYPTO_HUGE_NUMBER_INITIALIZE(&temp, scratch, in _nx_crypto_huge_number_power_modulus()
/NetX-Duo-v6.2.1/test/regression/nx_secure_test/
Dnx_secure_ec_test.c48 HN_UBASE *scratch; in thread_0_entry() local
56 scratch = scratch_buffer; in thread_0_entry()
61 …NX_CRYPTO_EC_POINT_INITIALIZE(&point, NX_CRYPTO_EC_POINT_AFFINE, scratch, ec_data[i].point_len * 2… in thread_0_entry()
66 NX_CRYPTO_HUGE_NUMBER_INITIALIZE(&m, scratch, ec_data[i].m_len); in thread_0_entry()
70 …NX_CRYPTO_EC_POINT_INITIALIZE(&output, NX_CRYPTO_EC_POINT_AFFINE, scratch, ec_data[i].point_len * … in thread_0_entry()
71 …nx_crypto_ec_fp_projective_multiple((NX_CRYPTO_EC*)ec_data[i].curve, &point, &m, &output, scratch); in thread_0_entry()
81 scratch = scratch_buffer; in thread_0_entry()
86 NX_CRYPTO_HUGE_NUMBER_INITIALIZE(&m, scratch, ec_data_x25519_448[i].m_len); in thread_0_entry()
87 …NX_CRYPTO_HUGE_NUMBER_INITIALIZE(&point.nx_crypto_ec_point_x, scratch, ec_data_x25519_448[i].point… in thread_0_entry()
88 …NX_CRYPTO_HUGE_NUMBER_INITIALIZE(&output.nx_crypto_ec_point_x, scratch, ec_data_x25519_448[i].mul_… in thread_0_entry()
[all …]
Dnx_secure_ecdsa_test.c105 HN_UBASE *scratch; in thread_0_entry() local
148 scratch = (HN_UBASE*)(&scratch_buffer[3 * buffer_size + 4]); in thread_0_entry()
151 NX_CRYPTO_EC_POINT_INITIALIZE(&public_key, NX_CRYPTO_EC_POINT_AFFINE, scratch, buffer_size); in thread_0_entry()
152 NX_CRYPTO_HUGE_NUMBER_INITIALIZE(&private_key, scratch, buffer_size + 8); in thread_0_entry()
158 &public_key, scratch); in thread_0_entry()
171 … sizeof(hash_data), privkey, buffer_size, signature, signature_length, &signature_length, scratch); in thread_0_entry()
174 …curve, hash_data, sizeof(hash_data), pubkey, pubkey_length, signature, signature_length, scratch)); in thread_0_entry()
Dnx_secure_crypto_method_cleanup_test.c586 HN_UBASE *scratch; in crypto_method_cleanup_ecdsa_test() local
642 scratch = (HN_UBASE*)scratch_buffer; in crypto_method_cleanup_ecdsa_test()
643 NX_CRYPTO_EC_POINT_INITIALIZE(&public_key, NX_CRYPTO_EC_POINT_AFFINE, scratch, buffer_size); in crypto_method_cleanup_ecdsa_test()
644 NX_CRYPTO_HUGE_NUMBER_INITIALIZE(&private_key, scratch, buffer_size + 8); in crypto_method_cleanup_ecdsa_test()
648 &public_key, scratch); in crypto_method_cleanup_ecdsa_test()
Dnx_secure_ecdsa_error_checking_test.c82 HN_UBASE *scratch; in thread_0_entry() local
/NetX-Duo-v6.2.1/crypto_libraries/inc/
Dnx_crypto_ecjpake.h114 HN_UBASE *scratch);
119 HN_UBASE *scratch);
127 HN_UBASE *scratch);
135 HN_UBASE *scratch);
146 HN_UBASE *scratch);
158 HN_UBASE *scratch);
169 HN_UBASE *scratch);
180 HN_UBASE *scratch);
190 HN_UBASE *scratch);
Dnx_crypto_ec.h142 HN_UBASE *scratch);
146 HN_UBASE *scratch);
151 HN_UBASE *scratch);
154 HN_UBASE *scratch);
176 #define NX_CRYPTO_EC_MULTIPLE_DIGIT_REDUCE(curve, value, digit, result, scratch) \ argument
178 curve -> nx_crypto_ec_reduce(curve, result, scratch);
180 #define NX_CRYPTO_EC_MULTIPLE_REDUCE(curve, left, right, result, scratch) \ argument
182 curve -> nx_crypto_ec_reduce(curve, result, scratch);
184 #define NX_CRYPTO_EC_SQUARE_REDUCE(curve, value, result, scratch) \ argument
186 curve -> nx_crypto_ec_reduce(curve, result, scratch);
[all …]
Dnx_crypto_huge_number.h201 HN_UBASE *scratch);
205 HN_UBASE *scratch);
214 HN_UBASE *scratch);
219 HN_UBASE *scratch);
226 HN_UBASE *scratch);
Dnx_crypto_ecdsa.h93 HN_UBASE *scratch);
102 HN_UBASE *scratch);
/NetX-Duo-v6.2.1/docs/
Drevision_history.txt3216 Files are modified to update scratch buffers to support the new