Home
last modified time | relevance | path

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

12345

/freebsd/crypto/openssl/test/
H A Dbntest.c152 if (!TEST_ptr(a = BN_new()) in test_swap()
153 || !TEST_ptr(b = BN_new()) in test_swap()
154 || !TEST_ptr(c = BN_new()) in test_swap()
155 || !TEST_ptr(d = BN_new())) in test_swap()
225 if (!TEST_ptr(a = BN_new()) in test_sub()
226 || !TEST_ptr(b = BN_new()) in test_sub()
227 || !TEST_ptr(c = BN_new())) in test_sub()
263 if (!TEST_ptr(a = BN_new()) in test_div_recip()
264 || !TEST_ptr(b = BN_new()) in test_div_recip()
265 || !TEST_ptr(c = BN_new()) in test_div_recip()
[all …]
H A Dexptest.c55 if (!TEST_ptr(m = BN_new()) in test_mod_exp_zero()
56 || !TEST_ptr(a = BN_new()) in test_mod_exp_zero()
57 || !TEST_ptr(p = BN_new()) in test_mod_exp_zero()
58 || !TEST_ptr(r = BN_new())) in test_mod_exp_zero()
167 if (!TEST_ptr(r_mont = BN_new()) in test_mod_exp()
168 || !TEST_ptr(r_mont_const = BN_new()) in test_mod_exp()
169 || !TEST_ptr(r_recp = BN_new()) in test_mod_exp()
170 || !TEST_ptr(r_simple = BN_new()) in test_mod_exp()
171 || !TEST_ptr(a = BN_new()) in test_mod_exp()
172 || !TEST_ptr(b = BN_new()) in test_mod_exp()
[all …]
H A Drsa_sp800_56b_test.c101 BIGNUM *ret = BN_new(); in bn_load_new()
113 ret = TEST_ptr(e = BN_new()) in test_check_public_exponent()
151 ret = TEST_ptr(p = BN_new()) in test_check_prime_factor_range()
193 ret = TEST_ptr(p = BN_new()) in test_check_prime_factor()
197 && TEST_ptr(e = BN_new()) in test_check_prime_factor()
230 && TEST_ptr(p = BN_new()) in test_check_private_exponent()
231 && TEST_ptr(q = BN_new()) in test_check_private_exponent()
242 ret = TEST_ptr(e = BN_new()) in test_check_private_exponent()
243 && TEST_ptr(d = BN_new()) in test_check_private_exponent()
244 && TEST_ptr(n = BN_new()) in test_check_private_exponent()
[all …]
H A Dkeymgmt_internal_test.c180 if (!TEST_ptr(bn1 = BN_new()) in test_pass_rsa()
182 || !TEST_ptr(bn2 = BN_new()) in test_pass_rsa()
184 || !TEST_ptr(bn3 = BN_new()) in test_pass_rsa()
189 if (!TEST_ptr(bn1 = BN_new()) in test_pass_rsa()
191 || !TEST_ptr(bn2 = BN_new()) in test_pass_rsa()
196 if (!TEST_ptr(bn1 = BN_new()) in test_pass_rsa()
198 || !TEST_ptr(bn2 = BN_new()) in test_pass_rsa()
200 || !TEST_ptr(bn3 = BN_new()) in test_pass_rsa()
206 if (!TEST_ptr(bn_primes[0] = BN_new()) in test_pass_rsa()
208 || !TEST_ptr(bn_exps[0] = BN_new()) in test_pass_rsa()
[all...]
H A Dbn_internal_test.c33 ret = TEST_ptr(bn = BN_new()) in test_is_prime_enhanced()
54 ret = TEST_ptr(bn = BN_new()) in test_is_composite_enhanced()
73 if (!(TEST_ptr(b = BN_new()) && TEST_true(BN_set_word(b, 3)))) in test_bn_small_factors()
H A Dectest.c47 if (!TEST_ptr(n1 = BN_new()) in group_order_tests()
48 || !TEST_ptr(n2 = BN_new()) in group_order_tests()
49 || !TEST_ptr(order = BN_new()) in group_order_tests()
175 || !TEST_ptr(p = BN_new()) in prime_field_tests()
176 || !TEST_ptr(a = BN_new()) in prime_field_tests()
177 || !TEST_ptr(b = BN_new()) in prime_field_tests()
200 || !TEST_ptr(x = BN_new()) in prime_field_tests()
201 || !TEST_ptr(y = BN_new()) in prime_field_tests()
202 || !TEST_ptr(z = BN_new()) in prime_field_tests()
203 || !TEST_ptr(yplusone = BN_new()) in prime_field_tests()
[all …]
H A Dasn1_dsa_internal_test.c91 r = BN_new(); in test_decode()
92 s = BN_new(); in test_decode()
H A Dasn1_internal_test.c132 || !TEST_ptr(n = BN_new()) in test_empty_nonoptional_content()
133 || !TEST_ptr(e = BN_new()) in test_empty_nonoptional_content()
H A Ddhtest.c58 || !TEST_ptr(p = BN_new()) in dh_test()
59 || !TEST_ptr(q = BN_new()) in dh_test()
60 || !TEST_ptr(g = BN_new()) in dh_test()
61 || !TEST_ptr(priv_key = BN_new())) in dh_test()
279 || !TEST_ptr(pub = BN_new()) in dh_computekey_range_test()
280 || !TEST_ptr(priv = BN_new())) in dh_computekey_range_test()
/freebsd/crypto/openssl/crypto/srp/
H A Dsrp_lib.c85 if ((bn_ctx = BN_CTX_new()) == NULL || (tmp = BN_new()) == NULL) in SRP_Calc_server_key()
95 S = BN_new(); in SRP_Calc_server_key()
117 if ((kv = BN_new()) == NULL || in SRP_Calc_B_ex()
118 (gb = BN_new()) == NULL || (B = BN_new()) == NULL) in SRP_Calc_B_ex()
204 if ((A = BN_new()) != NULL && !BN_mod_exp(A, g, a, N, bn_ctx)) { in SRP_Calc_A()
224 if ((tmp = BN_new()) == NULL || in SRP_Calc_client_key_ex()
225 (tmp2 = BN_new()) == NULL || in SRP_Calc_client_key_ex()
226 (tmp3 = BN_new()) == NULL || in SRP_Calc_client_key_ex()
227 (xtmp = BN_new()) == NULL) in SRP_Calc_client_key_ex()
244 K = BN_new(); in SRP_Calc_client_key_ex()
[all …]
/freebsd/crypto/openssl/fuzz/
H A 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()
H A 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()
/freebsd/usr.bin/factor/
H A Dfactor.c87 #define BN_new() ((BIGNUM *)calloc(sizeof(BIGNUM), 1)) macro
117 val = BN_new(); in main()
198 bnfact = BN_new(); in pr_fact()
252 base = BN_new(); in pollard_pminus1()
253 rbase = BN_new(); in pollard_pminus1()
254 num = BN_new(); in pollard_pminus1()
255 i = BN_new(); in pollard_pminus1()
256 x = BN_new(); in pollard_pminus1()
/freebsd/crypto/openssl/doc/man3/
H A 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.
/freebsd/crypto/openssl/crypto/rsa/
H A Drsa_x931g.c63 rsa->p = BN_new(); in RSA_X931_derive_ex()
73 rsa->q = BN_new(); in RSA_X931_derive_ex()
93 rsa->n = BN_new(); in RSA_X931_derive_ex()
122 rsa->dmp1 = BN_new(); in RSA_X931_derive_ex()
129 rsa->dmq1 = BN_new(); in RSA_X931_derive_ex()
170 rsa->p = BN_new(); in RSA_X931_generate_key_ex()
171 rsa->q = BN_new(); in RSA_X931_generate_key_ex()
H A Drsa_acvp_test_params.c114 t->p1 = BN_new(); in ossl_rsa_acvp_test_set_params()
115 t->p2 = BN_new(); in ossl_rsa_acvp_test_set_params()
116 t->q1 = BN_new(); in ossl_rsa_acvp_test_set_params()
117 t->q2 = BN_new(); in ossl_rsa_acvp_test_set_params()
H A Drsa_chk.c45 i = BN_new(); in rsa_validate_keypair_multiprime()
46 j = BN_new(); in rsa_validate_keypair_multiprime()
47 k = BN_new(); in rsa_validate_keypair_multiprime()
48 l = BN_new(); in rsa_validate_keypair_multiprime()
49 m = BN_new(); in rsa_validate_keypair_multiprime()
H A Drsa_ossl.c326 BIGNUM *d = BN_new(); in rsa_ossl_private_encrypt()
451 BIGNUM *d = BN_new(); in rsa_ossl_private_decrypt()
636 BIGNUM *factor = BN_new(); in rsa_ossl_mod_exp()
729 BIGNUM *c = BN_new(); in rsa_ossl_mod_exp()
740 BIGNUM *dmq1 = BN_new(); in rsa_ossl_mod_exp()
768 BIGNUM *dmp1 = BN_new(); in rsa_ossl_mod_exp()
785 BIGNUM *di = BN_new(), *cc = BN_new(); in rsa_ossl_mod_exp()
839 BIGNUM *pr1 = BN_new(); in rsa_ossl_mod_exp()
870 BIGNUM *pr2 = BN_new(); in rsa_ossl_mod_exp()
949 BIGNUM *d = BN_new(); in rsa_ossl_mod_exp()
H A Drsa_gen.c126 if (!rsa->n && ((rsa->n = BN_new()) == NULL)) in rsa_multiprime_keygen()
131 if (!rsa->e && ((rsa->e = BN_new()) == NULL)) in rsa_multiprime_keygen()
342 BIGNUM *pr0 = BN_new(); in rsa_multiprime_keygen()
357 BIGNUM *d = BN_new(); in rsa_multiprime_keygen()
386 BIGNUM *p = BN_new(); in rsa_multiprime_keygen()
/freebsd/contrib/ntp/util/
H A Dntp-keygen.c1193 b = BN_new(); r = BN_new(); k = BN_new(); in gen_iffkey()
1194 u = BN_new(); v = BN_new(); w = BN_new(); ctx = BN_CTX_new(); in gen_iffkey()
1367 u = BN_new(); v = BN_new(); g = BN_new(); in gen_gqkey()
1368 k = BN_new(); in gen_gqkey()
[all...]
/freebsd/lib/libmp/
H A Dmpasbn.c132 mp->bn = BN_new(); in _dtom()
151 b = BN_new(); in mp_gcd()
192 b = BN_new(); in _madd()
237 r = BN_new(); in _mdiv()
239 q = BN_new(); in _mdiv()
413 b = BN_new(); in _msub()
494 b = BN_new(); in _mult()
527 b = BN_new(); in mp_pow()
549 b = BN_new(); in mp_rpow()
572 q = BN_new(); in _sdiv()
[all …]
/freebsd/crypto/openssl/crypto/dsa/
H A Ddsa_ossl.c97 ret->r = BN_new(); in ossl_dsa_do_sign_int()
98 ret->s = BN_new(); in ossl_dsa_do_sign_int()
238 k = BN_new(); in dsa_sign_setup()
239 l = BN_new(); in dsa_sign_setup()
361 u1 = BN_new(); in dsa_do_verify()
362 u2 = BN_new(); in dsa_do_verify()
363 t1 = BN_new(); in dsa_do_verify()
468 if ((r = BN_new()) == NULL) in dsa_mod_inverse_fermat()
/freebsd/crypto/openssl/crypto/ec/
H A Decdsa_ossl.c123 r = BN_new(); /* this value is later returned in *rp */ in ecdsa_sign_setup()
124 X = BN_new(); in ecdsa_sign_setup()
248 ret->r = BN_new(); in ossl_ecdsa_simple_sign_sig()
249 ret->s = BN_new(); in ossl_ecdsa_simple_sign_sig()
257 || (m = BN_new()) == NULL) { in ossl_ecdsa_simple_sign_sig()
H A Deck_prn.c128 if ((p = BN_new()) == NULL || (a = BN_new()) == NULL || in ECPKParameters_print()
129 (b = BN_new()) == NULL) { in ECPKParameters_print()
/freebsd/crypto/openssl/crypto/bn/
H A Dbn_sqrt.c31 ret = BN_new(); in BN_mod_sqrt()
49 ret = BN_new(); in BN_mod_sqrt()
73 ret = BN_new(); in BN_mod_sqrt()

12345