Home
last modified time | relevance | path

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

123

/openssl-master/crypto/bn/
A Dbn_rsa_fips186_4.c170 p1i = (p1 != NULL) ? p1 : BN_CTX_get(ctx); in ossl_bn_rsa_fips186_4_gen_prob_primes()
171 p2i = (p2 != NULL) ? p2 : BN_CTX_get(ctx); in ossl_bn_rsa_fips186_4_gen_prob_primes()
172 Xp1i = (Xp1 != NULL) ? (BIGNUM *)Xp1 : BN_CTX_get(ctx); in ossl_bn_rsa_fips186_4_gen_prob_primes()
173 Xp2i = (Xp2 != NULL) ? (BIGNUM *)Xp2 : BN_CTX_get(ctx); in ossl_bn_rsa_fips186_4_gen_prob_primes()
257 base = BN_CTX_get(ctx); in ossl_bn_rsa_fips186_4_derive_prime()
258 range = BN_CTX_get(ctx); in ossl_bn_rsa_fips186_4_derive_prime()
259 R = BN_CTX_get(ctx); in ossl_bn_rsa_fips186_4_derive_prime()
260 tmp = BN_CTX_get(ctx); in ossl_bn_rsa_fips186_4_derive_prime()
261 r1r2x2 = BN_CTX_get(ctx); in ossl_bn_rsa_fips186_4_derive_prime()
262 y1 = BN_CTX_get(ctx); in ossl_bn_rsa_fips186_4_derive_prime()
[all …]
A 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 …]
A Dbn_x931p.c68 p1 = BN_CTX_get(ctx); in BN_X931_derive_prime_ex()
71 p2 = BN_CTX_get(ctx); in BN_X931_derive_prime_ex()
73 t = BN_CTX_get(ctx); in BN_X931_derive_prime_ex()
75 p1p2 = BN_CTX_get(ctx); in BN_X931_derive_prime_ex()
77 pm1 = BN_CTX_get(ctx); in BN_X931_derive_prime_ex()
183 t = BN_CTX_get(ctx); in BN_X931_generate_Xpq()
228 Xp1 = BN_CTX_get(ctx); in BN_X931_generate_prime_ex()
230 Xp2 = BN_CTX_get(ctx); in BN_X931_generate_prime_ex()
A 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()
A 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()
A Dbn_sqrt.c62 A = BN_CTX_get(ctx); in BN_mod_sqrt()
63 b = BN_CTX_get(ctx); in BN_mod_sqrt()
64 q = BN_CTX_get(ctx); in BN_mod_sqrt()
65 t = BN_CTX_get(ctx); in BN_mod_sqrt()
66 x = BN_CTX_get(ctx); in BN_mod_sqrt()
67 y = BN_CTX_get(ctx); in BN_mod_sqrt()
A Dbn_prime.c154 t = BN_CTX_get(ctx); in BN_generate_prime_ex2()
349 g = BN_CTX_get(ctx); in ossl_bn_miller_rabin_is_prime()
350 w1 = BN_CTX_get(ctx); in ossl_bn_miller_rabin_is_prime()
351 w3 = BN_CTX_get(ctx); in ossl_bn_miller_rabin_is_prime()
352 x = BN_CTX_get(ctx); in ossl_bn_miller_rabin_is_prime()
353 m = BN_CTX_get(ctx); in ossl_bn_miller_rabin_is_prime()
354 z = BN_CTX_get(ctx); in ossl_bn_miller_rabin_is_prime()
355 b = BN_CTX_get(ctx); in ossl_bn_miller_rabin_is_prime()
546 if ((t1 = BN_CTX_get(ctx)) == NULL) in probable_prime_dh()
A Dbn_gf2m.c572 b = BN_CTX_get(ctx); in BN_GF2m_mod_inv_vartime()
573 c = BN_CTX_get(ctx); in BN_GF2m_mod_inv_vartime()
574 u = BN_CTX_get(ctx); in BN_GF2m_mod_inv_vartime()
575 v = BN_CTX_get(ctx); in BN_GF2m_mod_inv_vartime()
810 xinv = BN_CTX_get(ctx); in BN_GF2m_mod_div()
1017 a = BN_CTX_get(ctx); in BN_GF2m_mod_solve_quad_arr()
1018 z = BN_CTX_get(ctx); in BN_GF2m_mod_solve_quad_arr()
1019 w = BN_CTX_get(ctx); in BN_GF2m_mod_solve_quad_arr()
1047 rho = BN_CTX_get(ctx); in BN_GF2m_mod_solve_quad_arr()
1048 w2 = BN_CTX_get(ctx); in BN_GF2m_mod_solve_quad_arr()
[all …]
A 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()
A Dbn_kron.c36 A = BN_CTX_get(ctx); in BN_kronecker()
37 B = BN_CTX_get(ctx); in BN_kronecker()
/openssl-master/doc/man3/
A 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
/openssl-master/crypto/rsa/
A Drsa_sp800_56b_check.c37 r = BN_CTX_get(ctx); in ossl_rsa_check_crt_components()
38 p1 = BN_CTX_get(ctx); in ossl_rsa_check_crt_components()
39 q1 = BN_CTX_get(ctx); in ossl_rsa_check_crt_components()
102 low = BN_CTX_get(ctx); in ossl_rsa_check_prime_factor_range()
148 p1 = BN_CTX_get(ctx); in ossl_rsa_check_prime_factor()
149 gcd = BN_CTX_get(ctx); in ossl_rsa_check_prime_factor()
185 r = BN_CTX_get(ctx); in ossl_rsa_check_private_exponent()
186 p1 = BN_CTX_get(ctx); in ossl_rsa_check_private_exponent()
187 q1 = BN_CTX_get(ctx); in ossl_rsa_check_private_exponent()
188 lcm = BN_CTX_get(ctx); in ossl_rsa_check_private_exponent()
[all …]
A Drsa_sp800_56b_gen.c107 tmp = BN_CTX_get(ctx); in ossl_rsa_fips186_4_gen_prob_primes()
108 Xpo = (Xpout != NULL) ? Xpout : BN_CTX_get(ctx); in ossl_rsa_fips186_4_gen_prob_primes()
109 Xqo = (Xqout != NULL) ? Xqout : BN_CTX_get(ctx); in ossl_rsa_fips186_4_gen_prob_primes()
239 p1 = BN_CTX_get(ctx); in ossl_rsa_sp800_56b_derive_params_from_pq()
240 q1 = BN_CTX_get(ctx); in ossl_rsa_sp800_56b_derive_params_from_pq()
241 lcm = BN_CTX_get(ctx); in ossl_rsa_sp800_56b_derive_params_from_pq()
242 p1q1 = BN_CTX_get(ctx); in ossl_rsa_sp800_56b_derive_params_from_pq()
243 gcd = BN_CTX_get(ctx); in ossl_rsa_sp800_56b_derive_params_from_pq()
425 tmp = BN_CTX_get(ctx); in ossl_rsa_sp800_56b_pairwise_test()
426 k = BN_CTX_get(ctx); in ossl_rsa_sp800_56b_pairwise_test()
A Drsa_x931g.c42 r0 = BN_CTX_get(ctx); in RSA_X931_derive_ex()
43 r1 = BN_CTX_get(ctx); in RSA_X931_derive_ex()
44 r2 = BN_CTX_get(ctx); in RSA_X931_derive_ex()
45 r3 = BN_CTX_get(ctx); in RSA_X931_derive_ex()
163 Xp = BN_CTX_get(ctx); in RSA_X931_generate_key_ex()
164 Xq = BN_CTX_get(ctx); in RSA_X931_generate_key_ex()
A Drsa_ossl.c103 f = BN_CTX_get(ctx); in rsa_ossl_public_encrypt()
104 ret = BN_CTX_get(ctx); in rsa_ossl_public_encrypt()
258 f = BN_CTX_get(ctx); in rsa_ossl_private_encrypt()
259 ret = BN_CTX_get(ctx); in rsa_ossl_private_encrypt()
390 f = BN_CTX_get(ctx); in rsa_ossl_private_decrypt()
391 ret = BN_CTX_get(ctx); in rsa_ossl_private_decrypt()
539 f = BN_CTX_get(ctx); in rsa_ossl_public_decrypt()
540 ret = BN_CTX_get(ctx); in rsa_ossl_public_decrypt()
618 r1 = BN_CTX_get(ctx); in rsa_ossl_mod_exp()
620 r2 = BN_CTX_get(ctx); in rsa_ossl_mod_exp()
[all …]
A Drsa_crpt.c97 r0 = BN_CTX_get(ctx); in rsa_get_public_exp()
98 r1 = BN_CTX_get(ctx); in rsa_get_public_exp()
99 r2 = BN_CTX_get(ctx); in rsa_get_public_exp()
130 e = BN_CTX_get(ctx); in RSA_setup_blinding()
/openssl-master/crypto/ec/
A Dec2_oct.c59 tmp = BN_CTX_get(ctx); in ossl_ec_GF2m_simple_set_compressed_coordinates()
60 x = BN_CTX_get(ctx); in ossl_ec_GF2m_simple_set_compressed_coordinates()
61 y = BN_CTX_get(ctx); in ossl_ec_GF2m_simple_set_compressed_coordinates()
62 z = BN_CTX_get(ctx); in ossl_ec_GF2m_simple_set_compressed_coordinates()
180 x = BN_CTX_get(ctx); in ossl_ec_GF2m_simple_point2oct()
181 y = BN_CTX_get(ctx); in ossl_ec_GF2m_simple_point2oct()
182 yxi = BN_CTX_get(ctx); in ossl_ec_GF2m_simple_point2oct()
329 x = BN_CTX_get(ctx); in ossl_ec_GF2m_simple_oct2point()
330 y = BN_CTX_get(ctx); in ossl_ec_GF2m_simple_oct2point()
331 yxi = BN_CTX_get(ctx); in ossl_ec_GF2m_simple_oct2point()
A Decp_smpl.c266 a = BN_CTX_get(ctx); in ossl_ec_GFp_simple_group_check_discriminant()
267 b = BN_CTX_get(ctx); in ossl_ec_GFp_simple_group_check_discriminant()
523 Z = BN_CTX_get(ctx); in ossl_ec_GFp_simple_point_get_affine_coordinates()
642 n0 = BN_CTX_get(ctx); in ossl_ec_GFp_simple_add()
643 n1 = BN_CTX_get(ctx); in ossl_ec_GFp_simple_add()
644 n2 = BN_CTX_get(ctx); in ossl_ec_GFp_simple_add()
645 n3 = BN_CTX_get(ctx); in ossl_ec_GFp_simple_add()
646 n4 = BN_CTX_get(ctx); in ossl_ec_GFp_simple_add()
647 n5 = BN_CTX_get(ctx); in ossl_ec_GFp_simple_add()
1184 x = BN_CTX_get(ctx); in ossl_ec_GFp_simple_make_affine()
[all …]
A Decp_oct.c40 tmp1 = BN_CTX_get(ctx); in ossl_ec_GFp_simple_set_compressed_coordinates()
41 tmp2 = BN_CTX_get(ctx); in ossl_ec_GFp_simple_set_compressed_coordinates()
42 x = BN_CTX_get(ctx); in ossl_ec_GFp_simple_set_compressed_coordinates()
43 y = BN_CTX_get(ctx); in ossl_ec_GFp_simple_set_compressed_coordinates()
209 x = BN_CTX_get(ctx); in ossl_ec_GFp_simple_point2oct()
210 y = BN_CTX_get(ctx); in ossl_ec_GFp_simple_point2oct()
329 x = BN_CTX_get(ctx); in ossl_ec_GFp_simple_oct2point()
330 y = BN_CTX_get(ctx); in ossl_ec_GFp_simple_oct2point()
A Dec2_smpl.c197 b = BN_CTX_get(ctx); in ossl_ec_GF2m_simple_group_check_discriminant()
386 x0 = BN_CTX_get(ctx); in ossl_ec_GF2m_simple_add()
387 y0 = BN_CTX_get(ctx); in ossl_ec_GF2m_simple_add()
388 x1 = BN_CTX_get(ctx); in ossl_ec_GF2m_simple_add()
389 y1 = BN_CTX_get(ctx); in ossl_ec_GF2m_simple_add()
390 x2 = BN_CTX_get(ctx); in ossl_ec_GF2m_simple_add()
391 y2 = BN_CTX_get(ctx); in ossl_ec_GF2m_simple_add()
392 s = BN_CTX_get(ctx); in ossl_ec_GF2m_simple_add()
393 t = BN_CTX_get(ctx); in ossl_ec_GF2m_simple_add()
653 x = BN_CTX_get(ctx); in ossl_ec_GF2m_simple_make_affine()
[all …]
/openssl-master/test/
A Dec_internal_test.c34 a = BN_CTX_get(ctx); in group_field_tests()
35 b = BN_CTX_get(ctx); in group_field_tests()
36 if (!TEST_ptr(c = BN_CTX_get(ctx)) in group_field_tests()
87 p = BN_CTX_get(ctx); in field_tests()
88 a = BN_CTX_get(ctx); in field_tests()
216 x1 = BN_CTX_get(ctx); in underflow_test()
217 y1 = BN_CTX_get(ctx); in underflow_test()
218 z1 = BN_CTX_get(ctx); in underflow_test()
219 x2 = BN_CTX_get(ctx); in underflow_test()
220 y2 = BN_CTX_get(ctx); in underflow_test()
[all …]
/openssl-master/crypto/sm2/
A Dsm2_sign.c53 p = BN_CTX_get(ctx); in ossl_sm2_compute_z_digest()
54 a = BN_CTX_get(ctx); in ossl_sm2_compute_z_digest()
55 b = BN_CTX_get(ctx); in ossl_sm2_compute_z_digest()
56 xG = BN_CTX_get(ctx); in ossl_sm2_compute_z_digest()
57 yG = BN_CTX_get(ctx); in ossl_sm2_compute_z_digest()
58 xA = BN_CTX_get(ctx); in ossl_sm2_compute_z_digest()
59 yA = BN_CTX_get(ctx); in ossl_sm2_compute_z_digest()
221 k = BN_CTX_get(ctx); in sm2_sig_gen()
222 rk = BN_CTX_get(ctx); in sm2_sig_gen()
223 x1 = BN_CTX_get(ctx); in sm2_sig_gen()
[all …]
A Dsm2_crypt.c161 k = BN_CTX_get(ctx); in ossl_sm2_encrypt()
162 x1 = BN_CTX_get(ctx); in ossl_sm2_encrypt()
163 x2 = BN_CTX_get(ctx); in ossl_sm2_encrypt()
164 y1 = BN_CTX_get(ctx); in ossl_sm2_encrypt()
165 y2 = BN_CTX_get(ctx); in ossl_sm2_encrypt()
327 x2 = BN_CTX_get(ctx); in ossl_sm2_decrypt()
328 y2 = BN_CTX_get(ctx); in ossl_sm2_decrypt()
/openssl-master/crypto/ffc/
A Dffc_params_generate.c203 W = BN_CTX_get(ctx); in generate_p()
204 X = BN_CTX_get(ctx); in generate_p()
205 c = BN_CTX_get(ctx); in generate_p()
207 tmp = BN_CTX_get(ctx); in generate_p()
576 g = BN_CTX_get(ctx); in ossl_ffc_params_FIPS186_4_gen_verify()
578 e = BN_CTX_get(ctx); in ossl_ffc_params_FIPS186_4_gen_verify()
628 p = BN_CTX_get(ctx); in ossl_ffc_params_FIPS186_4_gen_verify()
629 q = BN_CTX_get(ctx); in ossl_ffc_params_FIPS186_4_gen_verify()
886 g = BN_CTX_get(ctx); in ossl_ffc_params_FIPS186_2_gen_verify()
887 q = BN_CTX_get(ctx); in ossl_ffc_params_FIPS186_2_gen_verify()
[all …]
A Dffc_key_validate.c32 tmp = BN_CTX_get(ctx); in ossl_ffc_validate_public_key_partial()
76 tmp = BN_CTX_get(ctx); in ossl_ffc_validate_public_key()

Completed in 34 milliseconds

123