Home
last modified time | relevance | path

Searched refs:BN_add (Results 1 – 25 of 38) sorted by relevance

12

/freebsd/crypto/openssl/crypto/bn/
H A Dbn_rsa_fips186_4.c303 if (BN_is_negative(R) && !BN_add(R, R, r1r2x2)) in ossl_bn_rsa_fips186_4_derive_prime()
320 if (!BN_priv_rand_range_ex(X, range, 0, ctx) || !BN_add(X, X, base)) in ossl_bn_rsa_fips186_4_derive_prime()
324 if (!BN_mod_sub(Y, R, X, r1r2x2, ctx) || !BN_add(Y, Y, X)) in ossl_bn_rsa_fips186_4_derive_prime()
356 if (!BN_add(Y, Y, r1r2x2)) in ossl_bn_rsa_fips186_4_derive_prime()
H A Dbn_x931p.c108 if (p->neg && !BN_add(p, p, p1p2)) in BN_X931_derive_prime_ex()
116 if (!BN_add(p, p, Xp)) in BN_X931_derive_prime_ex()
142 if (!BN_add(p, p, p1p2)) in BN_X931_derive_prime_ex()
H A Dbn_gcd.c143 if (!BN_add(tmp, tmp, Y)) in bn_mod_inverse_no_branch()
386 if (!BN_add(D, T, B)) in int_bn_mod_inverse()
449 if (!BN_add(tmp, X, Y)) in int_bn_mod_inverse()
467 if (!BN_add(tmp, tmp, Y)) in int_bn_mod_inverse()
624 if (!BN_add(temp, g, r)) in BN_gcd()
H A Dbn_mod.c30 return (d->neg ? BN_sub : BN_add) (r, r, d); in BN_nnmod()
36 if (!BN_add(r, a, b)) in BN_mod_add()
202 return BN_add(r, r, m); in BN_mod_sub_quick()
H A Dbn_add.c14 int BN_add(BIGNUM *r, const BIGNUM *a, const BIGNUM *b) in BN_add() function
H A Dbn_prime.c567 if (!BN_add(rnd, rnd, rem)) in probable_prime_dh()
573 if (!BN_add(rnd, rnd, add)) in probable_prime_dh()
H A Dbn_sqrt.c189 if (!(p->neg ? BN_add : BN_sub) (y, y, p)) in BN_mod_sqrt()
/freebsd/crypto/openssl/doc/man3/
H A DBN_add.pod5 BN_add, BN_sub, BN_mul, BN_sqr, BN_div, BN_mod, BN_nnmod, BN_mod_add,
13 int BN_add(BIGNUM *r, const BIGNUM *a, const BIGNUM *b);
50 BN_add() adds I<a> and I<b> and places the result in I<r> (C<r=a+b>).
128 value should always be checked (e.g., C<if (!BN_add(r,a,b)) goto err;>).
H A DBN_mod_inverse.pod34 L<ERR_get_error(3)>, L<BN_add(3)>
H A DBN_add_word.pod50 L<ERR_get_error(3)>, L<BN_add(3)>
H A DBN_mod_mul_reciprocal.pod60 L<ERR_get_error(3)>, L<BN_add(3)>,
H A DBN_mod_mul_montgomery.pod74 L<ERR_get_error(3)>, L<BN_add(3)>,
H A DBN_set_bit.pod61 L<BN_num_bytes(3)>, L<BN_add(3)>
H A DBN_CTX_new.pod73 L<ERR_get_error(3)>, L<BN_add(3)>,
/freebsd/crypto/openssl/crypto/rsa/
H A Drsa_ossl.c832 if (!BN_add(r0, r0, rsa->p)) in rsa_ossl_mod_exp()
860 if (!BN_add(r0, r0, rsa->p)) in rsa_ossl_mod_exp()
864 if (!BN_add(r0, r1, m1)) in rsa_ossl_mod_exp()
895 if (!BN_add(r1, r1, pinfo->r)) { in rsa_ossl_mod_exp()
903 if (!BN_add(r0, r0, r1)) { in rsa_ossl_mod_exp()
940 if (!BN_add(vrfy, vrfy, rsa->n)) in rsa_ossl_mod_exp()
/freebsd/crypto/openssl/test/
H A Dectest.c96 || !TEST_true(BN_add(n2, order, BN_value_one())) in group_order_tests()
292 || !TEST_true(BN_add(yplusone, y, BN_value_one())) in prime_field_tests()
343 || !TEST_true(BN_add(yplusone, y, BN_value_one())) in prime_field_tests()
380 || !TEST_true(BN_add(yplusone, y, BN_value_one())) in prime_field_tests()
418 || !TEST_true(BN_add(yplusone, y, BN_value_one())) in prime_field_tests()
462 || !TEST_true(BN_add(yplusone, y, BN_value_one())) in prime_field_tests()
516 || !TEST_true(BN_add(yplusone, y, BN_value_one())) in prime_field_tests()
549 || !TEST_true(BN_add(y, z, BN_value_one())) in prime_field_tests()
563 || !TEST_true(BN_add(z, z, y))) in prime_field_tests()
572 || !TEST_true(BN_add(z, x, y))) in prime_field_tests()
[all …]
H A Dbntest.c244 && TEST_true(BN_add(c, c, b)) in test_sub()
287 && TEST_true(BN_add(d, e, c)) in test_div_recip()
395 && TEST_true(BN_add(d, c, e)) in test_mod()
999 && TEST_true(BN_add(f, c, d)) in test_gf2m_modexp()
1208 if (!TEST_true(BN_add(ret, a, b)) in file_sum()
1222 || !TEST_true(BN_add(ret, ret, b)) in file_sum()
1225 || !TEST_true(BN_add(ret, a, ret)) in file_sum()
1322 || !TEST_true(BN_add(ret, a, a)) in file_lshift1()
1453 if (BN_add(tmp, tmp, BN_value_one())) in file_square()
1529 || !TEST_true(BN_add(ret, ret, remainder)) in file_quotient()
[all …]
/freebsd/crypto/openssl/fuzz/
H A Dbndiv.c93 OPENSSL_assert(BN_add(b5, b5, b4)); in FuzzerTestOneInput()
/freebsd/crypto/openssl/crypto/dsa/
H A Ddsa_ossl.c297 if (!BN_add(l, k, dsa->params.q) in dsa_sign_setup()
298 || !BN_add(k, l, dsa->params.q)) in dsa_sign_setup()
/freebsd/crypto/openssl/crypto/sm2/
H A Dsm2_sign.c276 if (!BN_add(rk, r, k)) { in sm2_sig_gen()
284 if (!BN_add(s, dA, BN_value_one()) in sm2_sig_gen()
/freebsd/contrib/ntp/util/
H A Dntp-keygen.c1230 BN_add(v, v, k); in gen_iffkey()
1637 BN_add(p, p, p); in gen_mvkey()
1715 BN_add(u, u, w); in gen_mvkey()
1797 BN_add(w, q, s1[j]); in gen_mvkey()
1806 BN_add(xbar[j], xbar[j], u); in gen_mvkey()
/freebsd/crypto/openssl/crypto/ec/
H A Dec_mult.c239 if (!BN_add(lambda, k, cardinality)) { in ossl_ec_scalar_mul_ladder()
244 if (!BN_add(k, lambda, cardinality)) { in ossl_ec_scalar_mul_ladder()
/freebsd/crypto/openssl/crypto/ffc/
H A Dffc_params_generate.c252 || !BN_add(W, W, tmp)) in generate_p()
263 || !BN_add(X, X, test) in generate_p()
/freebsd/crypto/openssl/crypto/srp/
H A Dsrp_lib.c242 if (!BN_add(tmp2, a, tmp3)) in SRP_Calc_client_key_ex()
/freebsd/secure/lib/libcrypto/man/man3/
H A DMakefile59 MAN+= BN_add.3
996 MLINKS+= BN_add.3 BN_div.3
1000 MLINKS+= BN_add.3 BN_exp.3
1003 MLINKS+= BN_add.3 BN_gcd.3
1034 MLINKS+= BN_add.3 BN_mod.3
1035 MLINKS+= BN_add.3 BN_mod_add.3
1036 MLINKS+= BN_add.3 BN_mod_exp.3
1039 MLINKS+= BN_add.3 BN_mod_mul.3
1040 MLINKS+= BN_add.3 BN_mod_sqr.3
1041 MLINKS+= BN_add.3 BN_mod_sqrt.3
[all …]

12