Home
last modified time | relevance | path

Searched refs:BN_new (Results 1 – 25 of 79) sorted by relevance

1234

/third_party/openssl/test/
Dbntest.c156 if (!TEST_ptr(a = BN_new()) in test_swap()
157 || !TEST_ptr(b = BN_new()) in test_swap()
158 || !TEST_ptr(c = BN_new()) in test_swap()
159 || !TEST_ptr(d = BN_new())) in test_swap()
229 if (!TEST_ptr(a = BN_new()) in test_sub()
230 || !TEST_ptr(b = BN_new()) in test_sub()
231 || !TEST_ptr(c = BN_new())) in test_sub()
267 if (!TEST_ptr(a = BN_new()) in test_div_recip()
268 || !TEST_ptr(b = BN_new()) in test_div_recip()
269 || !TEST_ptr(c = BN_new()) in test_div_recip()
[all …]
Dexptest.c54 if (!TEST_ptr(m = BN_new()) in test_mod_exp_zero()
55 || !TEST_ptr(a = BN_new()) in test_mod_exp_zero()
56 || !TEST_ptr(p = BN_new()) in test_mod_exp_zero()
57 || !TEST_ptr(r = BN_new())) in test_mod_exp_zero()
138 if (!TEST_ptr(r_mont = BN_new()) in test_mod_exp()
139 || !TEST_ptr(r_mont_const = BN_new()) in test_mod_exp()
140 || !TEST_ptr(r_recp = BN_new()) in test_mod_exp()
141 || !TEST_ptr(r_simple = BN_new()) in test_mod_exp()
142 || !TEST_ptr(a = BN_new()) in test_mod_exp()
143 || !TEST_ptr(b = BN_new()) in test_mod_exp()
[all …]
Dectest.c38 if (!TEST_ptr(n1 = BN_new()) in group_order_tests()
39 || !TEST_ptr(n2 = BN_new()) in group_order_tests()
40 || !TEST_ptr(order = BN_new()) in group_order_tests()
161 || !TEST_ptr(p = BN_new()) in prime_field_tests()
162 || !TEST_ptr(a = BN_new()) in prime_field_tests()
163 || !TEST_ptr(b = BN_new()) in prime_field_tests()
198 || !TEST_ptr(x = BN_new()) in prime_field_tests()
199 || !TEST_ptr(y = BN_new()) in prime_field_tests()
200 || !TEST_ptr(z = BN_new()) in prime_field_tests()
201 || !TEST_ptr(yplusone = BN_new()) in prime_field_tests()
[all …]
Ddhtest.c49 || !TEST_ptr(p = BN_new()) in dh_test()
50 || !TEST_ptr(q = BN_new()) in dh_test()
51 || !TEST_ptr(g = BN_new()) in dh_test()
52 || !TEST_ptr(priv_key = BN_new())) in dh_test()
Decdsatest.c66 if (!TEST_ptr(tmp = BN_new()) in fbytes()
130 || !TEST_ptr(r = BN_new()) in x9_62_tests()
131 || !TEST_ptr(s = BN_new()) in x9_62_tests()
/third_party/openssl/crypto/srp/
Dsrp_lib.c67 if ((bn_ctx = BN_CTX_new()) == NULL || (tmp = BN_new()) == NULL) in SRP_Calc_server_key()
77 S = BN_new(); in SRP_Calc_server_key()
99 if ((kv = BN_new()) == NULL || in SRP_Calc_B()
100 (gb = BN_new()) == NULL || (B = BN_new()) == NULL) in SRP_Calc_B()
168 if ((A = BN_new()) != NULL && !BN_mod_exp(A, g, a, N, bn_ctx)) { in SRP_Calc_A()
187 if ((tmp = BN_new()) == NULL || in SRP_Calc_client_key()
188 (tmp2 = BN_new()) == NULL || in SRP_Calc_client_key()
189 (tmp3 = BN_new()) == NULL || in SRP_Calc_client_key()
190 (xtmp = BN_new()) == NULL) in SRP_Calc_client_key()
207 K = BN_new(); in SRP_Calc_client_key()
[all …]
/third_party/openssl/fuzz/
Dbignum.c42 b1 = BN_new(); in FuzzerTestOneInput()
43 b2 = BN_new(); in FuzzerTestOneInput()
44 b3 = BN_new(); in FuzzerTestOneInput()
45 b4 = BN_new(); in FuzzerTestOneInput()
46 b5 = BN_new(); in FuzzerTestOneInput()
Dbndiv.c33 b1 = BN_new(); in FuzzerInitialize()
34 b2 = BN_new(); in FuzzerInitialize()
35 b3 = BN_new(); in FuzzerInitialize()
36 b4 = BN_new(); in FuzzerInitialize()
37 b5 = BN_new(); in FuzzerInitialize()
/third_party/openssl/doc/man3/
DBN_new.pod5 BN_new, BN_secure_new, BN_clear, BN_free, BN_clear_free - allocate and free BIGNUMs
11 BIGNUM *BN_new(void);
23 BN_new() allocates and initializes a B<BIGNUM> structure.
33 by BN_new(), also the structure itself. BN_clear_free() additionally
39 BN_new() and BN_secure_new()
53 BN_init() was removed in OpenSSL 1.1.0; use BN_new() instead.
/third_party/openssl/crypto/rsa/
Drsa_x931g.c57 rsa->p = BN_new(); in RSA_X931_derive_ex()
67 rsa->q = BN_new(); in RSA_X931_derive_ex()
87 rsa->n = BN_new(); in RSA_X931_derive_ex()
116 rsa->dmp1 = BN_new(); in RSA_X931_derive_ex()
123 rsa->dmq1 = BN_new(); in RSA_X931_derive_ex()
163 rsa->p = BN_new(); in RSA_X931_generate_key_ex()
164 rsa->q = BN_new(); in RSA_X931_generate_key_ex()
Drsa_chk.c42 i = BN_new(); in RSA_check_key_ex()
43 j = BN_new(); in RSA_check_key_ex()
44 k = BN_new(); in RSA_check_key_ex()
45 l = BN_new(); in RSA_check_key_ex()
46 m = BN_new(); in RSA_check_key_ex()
Drsa_gen.c106 if (!rsa->n && ((rsa->n = BN_new()) == NULL)) in rsa_builtin_keygen()
110 if (!rsa->e && ((rsa->e = BN_new()) == NULL)) in rsa_builtin_keygen()
314 BIGNUM *pr0 = BN_new(); in rsa_builtin_keygen()
329 BIGNUM *d = BN_new(); in rsa_builtin_keygen()
358 BIGNUM *p = BN_new(); in rsa_builtin_keygen()
Drsa_ossl.c319 BIGNUM *d = BN_new(); in rsa_ossl_private_encrypt()
441 BIGNUM *d = BN_new(); in rsa_ossl_private_decrypt()
627 BIGNUM *factor = BN_new(); in rsa_ossl_mod_exp()
711 BIGNUM *c = BN_new(); in rsa_ossl_mod_exp()
722 BIGNUM *dmq1 = BN_new(); in rsa_ossl_mod_exp()
750 BIGNUM *dmp1 = BN_new(); in rsa_ossl_mod_exp()
776 BIGNUM *di = BN_new(), *cc = BN_new(); in rsa_ossl_mod_exp()
829 BIGNUM *pr1 = BN_new(); in rsa_ossl_mod_exp()
859 BIGNUM *pr2 = BN_new(); in rsa_ossl_mod_exp()
937 BIGNUM *d = BN_new(); in rsa_ossl_mod_exp()
Drsa_depr.c33 BIGNUM *e = BN_new();
/third_party/mindspore/mindspore/ccsrc/fl/armour/secure_protocol/
Dsecret_sharing.cc185 x[i] = BN_new(); in Combine()
186 y[i] = BN_new(); in Combine()
187 denses[i] = BN_new(); in Combine()
188 nums[i] = BN_new(); in Combine()
194 sum = BN_new(); in Combine()
204 BIGNUM *tmp = BN_new(); in Combine()
/third_party/openssl/crypto/dsa/
Ddsa_ossl.c83 ret->r = BN_new(); in dsa_do_sign()
84 ret->s = BN_new(); in dsa_do_sign()
207 k = BN_new(); in dsa_sign_setup()
208 l = BN_new(); in dsa_sign_setup()
323 u1 = BN_new(); in dsa_do_verify()
324 u2 = BN_new(); in dsa_do_verify()
325 t1 = BN_new(); in dsa_do_verify()
429 if ((r = BN_new()) == NULL) in dsa_mod_inverse_fermat()
Ddsa_key.c46 if ((pub_key = BN_new()) == NULL) in dsa_builtin_keygen()
52 BIGNUM *prk = BN_new(); in dsa_builtin_keygen()
/third_party/openssl/apps/
Decparam.c282 if ((ec_p = BN_new()) == NULL in ecparam_main()
283 || (ec_a = BN_new()) == NULL in ecparam_main()
284 || (ec_b = BN_new()) == NULL in ecparam_main()
285 || (ec_gen = BN_new()) == NULL in ecparam_main()
286 || (ec_order = BN_new()) == NULL in ecparam_main()
287 || (ec_cofactor = BN_new()) == NULL) { in ecparam_main()
/third_party/openssl/crypto/ec/
Decdsa_ossl.c67 k = BN_new(); /* this value is later returned in *kinvp */ in ecdsa_sign_setup()
68 r = BN_new(); /* this value is later returned in *rp */ in ecdsa_sign_setup()
69 X = BN_new(); in ecdsa_sign_setup()
188 ret->r = BN_new(); in ossl_ecdsa_sign_sig()
189 ret->s = BN_new(); in ossl_ecdsa_sign_sig()
197 || (m = BN_new()) == NULL) { in ossl_ecdsa_sign_sig()
Deck_prn.c123 if ((p = BN_new()) == NULL || (a = BN_new()) == NULL || in ECPKParameters_print()
124 (b = BN_new()) == NULL) { in ECPKParameters_print()
Dec2_smpl.c24 group->field = BN_new(); in ec_GF2m_simple_group_init()
25 group->a = BN_new(); in ec_GF2m_simple_group_init()
26 group->b = BN_new(); in ec_GF2m_simple_group_init()
215 point->X = BN_new(); in ec_GF2m_simple_point_init()
216 point->Y = BN_new(); in ec_GF2m_simple_point_init()
217 point->Z = BN_new(); in ec_GF2m_simple_point_init()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/crypto/
Dcrypto_openssl.c569 tmp = BN_new(); in crypto_dh_derive_secret()
605 bn_result = BN_new(); in crypto_mod_exp()
764 dh->g = BN_new(); in dh5_init()
815 g = BN_new(); in dh5_init()
868 dh->g = BN_new(); in dh5_init_fixed()
900 g = BN_new(); in dh5_init_fixed()
1270 return (struct crypto_bignum *) BN_new(); in crypto_bignum_init()
1293 bn = BN_new(); in crypto_bignum_init_uint()
1606 exp = BN_new(); in crypto_bignum_legendre()
1607 tmp = BN_new(); in crypto_bignum_legendre()
[all …]
/third_party/openssl/crypto/dh/
Ddh_gen.c78 if (!ret->p && ((ret->p = BN_new()) == NULL)) in dh_builtin_genparams()
80 if (!ret->g && ((ret->g = BN_new()) == NULL)) in dh_builtin_genparams()
/third_party/openssl/crypto/bn/
Dbn_sqrt.c30 ret = BN_new(); in BN_mod_sqrt()
48 ret = BN_new(); in BN_mod_sqrt()
71 ret = BN_new(); in BN_mod_sqrt()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/crypto/
Dcrypto_openssl.c642 tmp = BN_new(); in crypto_dh_derive_secret()
678 bn_result = BN_new(); in crypto_mod_exp()
837 dh->g = BN_new(); in dh5_init()
888 g = BN_new(); in dh5_init()
941 dh->g = BN_new(); in dh5_init_fixed()
973 g = BN_new(); in dh5_init_fixed()
1343 return (struct crypto_bignum *) BN_new(); in crypto_bignum_init()
1366 bn = BN_new(); in crypto_bignum_init_uint()
1679 exp = BN_new(); in crypto_bignum_legendre()
1680 tmp = BN_new(); in crypto_bignum_legendre()
[all …]

1234