Home
last modified time | relevance | path

Searched refs:BN_CTX_get (Results 1 – 25 of 50) sorted by relevance

12

/third_party/openssl/crypto/bn/
Dbn_gcd.c33 A = BN_CTX_get(ctx); in bn_mod_inverse_no_branch()
34 B = BN_CTX_get(ctx); in bn_mod_inverse_no_branch()
35 X = BN_CTX_get(ctx); in bn_mod_inverse_no_branch()
36 D = BN_CTX_get(ctx); in bn_mod_inverse_no_branch()
37 M = BN_CTX_get(ctx); in bn_mod_inverse_no_branch()
38 Y = BN_CTX_get(ctx); in bn_mod_inverse_no_branch()
39 T = BN_CTX_get(ctx); in bn_mod_inverse_no_branch()
221 A = BN_CTX_get(ctx); in int_bn_mod_inverse()
222 B = BN_CTX_get(ctx); in int_bn_mod_inverse()
223 X = BN_CTX_get(ctx); in int_bn_mod_inverse()
[all …]
Dbn_x931p.c66 p1 = BN_CTX_get(ctx); in BN_X931_derive_prime_ex()
69 p2 = BN_CTX_get(ctx); in BN_X931_derive_prime_ex()
71 t = BN_CTX_get(ctx); in BN_X931_derive_prime_ex()
73 p1p2 = BN_CTX_get(ctx); in BN_X931_derive_prime_ex()
75 pm1 = BN_CTX_get(ctx); in BN_X931_derive_prime_ex()
180 t = BN_CTX_get(ctx); in BN_X931_generate_Xpq()
224 Xp1 = BN_CTX_get(ctx); in BN_X931_generate_prime_ex()
226 Xp2 = BN_CTX_get(ctx); in BN_X931_generate_prime_ex()
Dbn_recp.c63 if ((a = BN_CTX_get(ctx)) == NULL) in BN_mod_mul_reciprocal()
91 d = (dv != NULL) ? dv : BN_CTX_get(ctx); in BN_div_recp()
92 r = (rem != NULL) ? rem : BN_CTX_get(ctx); in BN_div_recp()
93 a = BN_CTX_get(ctx); in BN_div_recp()
94 b = BN_CTX_get(ctx); in BN_div_recp()
180 if ((t = BN_CTX_get(ctx)) == NULL) in BN_reciprocal()
Dbn_exp2.c49 d = BN_CTX_get(ctx); in BN_mod_exp2_mont()
50 r = BN_CTX_get(ctx); in BN_mod_exp2_mont()
51 val1[0] = BN_CTX_get(ctx); in BN_mod_exp2_mont()
52 val2[0] = BN_CTX_get(ctx); in BN_mod_exp2_mont()
91 if (((val1[i] = BN_CTX_get(ctx)) == NULL) || in BN_mod_exp2_mont()
119 if (((val2[i] = BN_CTX_get(ctx)) == NULL) || in BN_mod_exp2_mont()
Dbn_sqrt.c61 A = BN_CTX_get(ctx); in BN_mod_sqrt()
62 b = BN_CTX_get(ctx); in BN_mod_sqrt()
63 q = BN_CTX_get(ctx); in BN_mod_sqrt()
64 t = BN_CTX_get(ctx); in BN_mod_sqrt()
65 x = BN_CTX_get(ctx); in BN_mod_sqrt()
66 y = BN_CTX_get(ctx); in BN_mod_sqrt()
Dbn_gf2m.c425 if ((s = BN_CTX_get(ctx)) == NULL) in BN_GF2m_mod_mul_arr()
497 if ((s = BN_CTX_get(ctx)) == NULL) in BN_GF2m_mod_sqr_arr()
563 b = BN_CTX_get(ctx); in BN_GF2m_mod_inv_vartime()
564 c = BN_CTX_get(ctx); in BN_GF2m_mod_inv_vartime()
565 u = BN_CTX_get(ctx); in BN_GF2m_mod_inv_vartime()
566 v = BN_CTX_get(ctx); in BN_GF2m_mod_inv_vartime()
730 if ((b = BN_CTX_get(ctx)) == NULL) in BN_GF2m_mod_inv()
773 if ((field = BN_CTX_get(ctx)) == NULL) in BN_GF2m_mod_inv_arr()
801 xinv = BN_CTX_get(ctx); in BN_GF2m_mod_div()
833 if ((field = BN_CTX_get(ctx)) == NULL) in BN_GF2m_mod_div_arr()
[all …]
Dbn_div.c42 D = BN_CTX_get(ctx);
44 dv = BN_CTX_get(ctx);
46 rem = BN_CTX_get(ctx);
281 res = (dv == NULL) ? BN_CTX_get(ctx) : dv; in bn_div_fixed_top()
282 tmp = BN_CTX_get(ctx); in bn_div_fixed_top()
283 snum = BN_CTX_get(ctx); in bn_div_fixed_top()
284 sdiv = BN_CTX_get(ctx); in bn_div_fixed_top()
Dbn_prime.c86 t = BN_CTX_get(ctx); in BN_generate_prime_ex()
190 A1 = BN_CTX_get(ctx); in BN_is_prime_fasttest_ex()
191 A3 = BN_CTX_get(ctx); in BN_is_prime_fasttest_ex()
192 A1_odd = BN_CTX_get(ctx); in BN_is_prime_fasttest_ex()
193 check = BN_CTX_get(ctx); in BN_is_prime_fasttest_ex()
330 if ((t1 = BN_CTX_get(ctx)) == NULL) in probable_prime_dh()
Dbn_exp.c54 rr = ((r == a) || (r == p)) ? BN_CTX_get(ctx) : r; in BN_exp()
55 v = BN_CTX_get(ctx); in BN_exp()
192 aa = BN_CTX_get(ctx); in BN_mod_exp_recp()
193 val[0] = BN_CTX_get(ctx); in BN_mod_exp_recp()
224 if (((val[i] = BN_CTX_get(ctx)) == NULL) || in BN_mod_exp_recp()
334 d = BN_CTX_get(ctx); in BN_mod_exp_mont()
335 r = BN_CTX_get(ctx); in BN_mod_exp_mont()
336 val[0] = BN_CTX_get(ctx); in BN_mod_exp_mont()
368 if (((val[i] = BN_CTX_get(ctx)) == NULL) || in BN_mod_exp_mont()
652 BIGNUM *reduced = BN_CTX_get(ctx); in BN_mod_exp_mont_consttime()
[all …]
Dbn_kron.c36 A = BN_CTX_get(ctx); in BN_kronecker()
37 B = BN_CTX_get(ctx); in BN_kronecker()
/third_party/openssl/doc/man3/
DBN_CTX_start.pod5 BN_CTX_start, BN_CTX_get, BN_CTX_end - use temporary BIGNUM variables
13 BIGNUM *BN_CTX_get(BN_CTX *ctx);
24 A function must call BN_CTX_start() first. Then, BN_CTX_get() may be
25 called repeatedly to obtain temporary B<BIGNUM>s. All BN_CTX_get()
32 BN_CTX_get() become invalid.
38 BN_CTX_get() returns a pointer to the B<BIGNUM>, or B<NULL> on error.
39 Once BN_CTX_get() has failed, the subsequent calls will return B<NULL>
41 BN_CTX_get() call. In case of an error, an error code is set, which
/third_party/openssl/crypto/ec/
Dec2_oct.c54 tmp = BN_CTX_get(ctx); in ec_GF2m_simple_set_compressed_coordinates()
55 x = BN_CTX_get(ctx); in ec_GF2m_simple_set_compressed_coordinates()
56 y = BN_CTX_get(ctx); in ec_GF2m_simple_set_compressed_coordinates()
57 z = BN_CTX_get(ctx); in ec_GF2m_simple_set_compressed_coordinates()
163 x = BN_CTX_get(ctx); in ec_GF2m_simple_point2oct()
164 y = BN_CTX_get(ctx); in ec_GF2m_simple_point2oct()
165 yxi = BN_CTX_get(ctx); in ec_GF2m_simple_point2oct()
304 x = BN_CTX_get(ctx); in ec_GF2m_simple_oct2point()
305 y = BN_CTX_get(ctx); in ec_GF2m_simple_oct2point()
306 yxi = BN_CTX_get(ctx); in ec_GF2m_simple_oct2point()
Decp_smpl.c155 tmp_a = BN_CTX_get(ctx); in ec_GFp_simple_group_set_curve()
259 a = BN_CTX_get(ctx); in ec_GFp_simple_group_check_discriminant()
260 b = BN_CTX_get(ctx); in ec_GFp_simple_group_check_discriminant()
261 tmp_1 = BN_CTX_get(ctx); in ec_GFp_simple_group_check_discriminant()
262 tmp_2 = BN_CTX_get(ctx); in ec_GFp_simple_group_check_discriminant()
263 order = BN_CTX_get(ctx); in ec_GFp_simple_group_check_discriminant()
518 Z = BN_CTX_get(ctx); in ec_GFp_simple_point_get_affine_coordinates()
519 Z_1 = BN_CTX_get(ctx); in ec_GFp_simple_point_get_affine_coordinates()
520 Z_2 = BN_CTX_get(ctx); in ec_GFp_simple_point_get_affine_coordinates()
521 Z_3 = BN_CTX_get(ctx); in ec_GFp_simple_point_get_affine_coordinates()
[all …]
Dec2_smpl.c190 b = BN_CTX_get(ctx); in ec_GF2m_simple_group_check_discriminant()
375 x0 = BN_CTX_get(ctx); in ec_GF2m_simple_add()
376 y0 = BN_CTX_get(ctx); in ec_GF2m_simple_add()
377 x1 = BN_CTX_get(ctx); in ec_GF2m_simple_add()
378 y1 = BN_CTX_get(ctx); in ec_GF2m_simple_add()
379 x2 = BN_CTX_get(ctx); in ec_GF2m_simple_add()
380 y2 = BN_CTX_get(ctx); in ec_GF2m_simple_add()
381 s = BN_CTX_get(ctx); in ec_GF2m_simple_add()
382 t = BN_CTX_get(ctx); in ec_GF2m_simple_add()
520 y2 = BN_CTX_get(ctx); in ec_GF2m_simple_is_on_curve()
[all …]
Decp_oct.c37 tmp1 = BN_CTX_get(ctx); in ec_GFp_simple_set_compressed_coordinates()
38 tmp2 = BN_CTX_get(ctx); in ec_GFp_simple_set_compressed_coordinates()
39 x = BN_CTX_get(ctx); in ec_GFp_simple_set_compressed_coordinates()
40 y = BN_CTX_get(ctx); in ec_GFp_simple_set_compressed_coordinates()
204 x = BN_CTX_get(ctx); in ec_GFp_simple_point2oct()
205 y = BN_CTX_get(ctx); in ec_GFp_simple_point2oct()
323 x = BN_CTX_get(ctx); in ec_GFp_simple_oct2point()
324 y = BN_CTX_get(ctx); in ec_GFp_simple_oct2point()
/third_party/openssl/crypto/dsa/
Ddsa_gen.c103 r0 = BN_CTX_get(ctx); in dsa_builtin_paramgen()
104 g = BN_CTX_get(ctx); in dsa_builtin_paramgen()
105 W = BN_CTX_get(ctx); in dsa_builtin_paramgen()
106 q = BN_CTX_get(ctx); in dsa_builtin_paramgen()
107 X = BN_CTX_get(ctx); in dsa_builtin_paramgen()
108 c = BN_CTX_get(ctx); in dsa_builtin_paramgen()
109 p = BN_CTX_get(ctx); in dsa_builtin_paramgen()
110 test = BN_CTX_get(ctx); in dsa_builtin_paramgen()
372 r0 = BN_CTX_get(ctx); in dsa_builtin_paramgen2()
373 g = BN_CTX_get(ctx); in dsa_builtin_paramgen2()
[all …]
Ddsa_ossl.c91 m = BN_CTX_get(ctx); in dsa_do_sign()
92 blind = BN_CTX_get(ctx); in dsa_do_sign()
93 blindm = BN_CTX_get(ctx); in dsa_do_sign()
94 tmp = BN_CTX_get(ctx); in dsa_do_sign()
433 if ((e = BN_CTX_get(ctx)) != NULL in dsa_mod_inverse_fermat()
/third_party/openssl/crypto/sm2/
Dsm2_sign.c51 p = BN_CTX_get(ctx); in sm2_compute_z_digest()
52 a = BN_CTX_get(ctx); in sm2_compute_z_digest()
53 b = BN_CTX_get(ctx); in sm2_compute_z_digest()
54 xG = BN_CTX_get(ctx); in sm2_compute_z_digest()
55 yG = BN_CTX_get(ctx); in sm2_compute_z_digest()
56 xA = BN_CTX_get(ctx); in sm2_compute_z_digest()
57 yA = BN_CTX_get(ctx); in sm2_compute_z_digest()
208 k = BN_CTX_get(ctx); in sm2_sig_gen()
209 rk = BN_CTX_get(ctx); in sm2_sig_gen()
210 x1 = BN_CTX_get(ctx); in sm2_sig_gen()
[all …]
Dsm2_crypt.c151 k = BN_CTX_get(ctx); in sm2_encrypt()
152 x1 = BN_CTX_get(ctx); in sm2_encrypt()
153 x2 = BN_CTX_get(ctx); in sm2_encrypt()
154 y1 = BN_CTX_get(ctx); in sm2_encrypt()
155 y2 = BN_CTX_get(ctx); in sm2_encrypt()
309 x2 = BN_CTX_get(ctx); in sm2_decrypt()
310 y2 = BN_CTX_get(ctx); in sm2_decrypt()
/third_party/openssl/crypto/rsa/
Drsa_x931g.c36 r0 = BN_CTX_get(ctx); in RSA_X931_derive_ex()
37 r1 = BN_CTX_get(ctx); in RSA_X931_derive_ex()
38 r2 = BN_CTX_get(ctx); in RSA_X931_derive_ex()
39 r3 = BN_CTX_get(ctx); in RSA_X931_derive_ex()
156 Xp = BN_CTX_get(ctx); in RSA_X931_generate_key_ex()
157 Xq = BN_CTX_get(ctx); in RSA_X931_generate_key_ex()
Drsa_ossl.c97 f = BN_CTX_get(ctx); in rsa_ossl_public_encrypt()
98 ret = BN_CTX_get(ctx); in rsa_ossl_public_encrypt()
252 f = BN_CTX_get(ctx); in rsa_ossl_private_encrypt()
253 ret = BN_CTX_get(ctx); in rsa_ossl_private_encrypt()
303 if (!local_blinding && ((unblind = BN_CTX_get(ctx)) == NULL)) { in rsa_ossl_private_encrypt()
386 f = BN_CTX_get(ctx); in rsa_ossl_private_decrypt()
387 ret = BN_CTX_get(ctx); in rsa_ossl_private_decrypt()
424 if (!local_blinding && ((unblind = BN_CTX_get(ctx)) == NULL)) { in rsa_ossl_private_decrypt()
540 f = BN_CTX_get(ctx); in rsa_ossl_public_decrypt()
541 ret = BN_CTX_get(ctx); in rsa_ossl_public_decrypt()
[all …]
Drsa_crpt.c91 r0 = BN_CTX_get(ctx); in rsa_get_public_exp()
92 r1 = BN_CTX_get(ctx); in rsa_get_public_exp()
93 r2 = BN_CTX_get(ctx); in rsa_get_public_exp()
124 e = BN_CTX_get(ctx); in RSA_setup_blinding()
/third_party/openssl/test/
Dec_internal_test.c29 a = BN_CTX_get(ctx); in group_field_tests()
30 b = BN_CTX_get(ctx); in group_field_tests()
31 if (!TEST_ptr(c = BN_CTX_get(ctx)) in group_field_tests()
82 p = BN_CTX_get(ctx); in field_tests()
83 a = BN_CTX_get(ctx); in field_tests()
84 if (!TEST_ptr(b = BN_CTX_get(ctx)) in field_tests()
/third_party/openssl/crypto/dh/
Ddh_check.c49 tmp = BN_CTX_get(ctx); in DH_check_params()
111 t1 = BN_CTX_get(ctx); in DH_check()
112 t2 = BN_CTX_get(ctx); in DH_check()
191 tmp = BN_CTX_get(ctx); in DH_check_pub_key()
Ddh_gen.c72 t1 = BN_CTX_get(ctx); in dh_builtin_genparams()
73 t2 = BN_CTX_get(ctx); in dh_builtin_genparams()

12