Home
last modified time | relevance | path

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

12

/third_party/openssl/crypto/bn/
Dbn_x931p.c106 if (p->neg && !BN_add(p, p, p1p2)) in BN_X931_derive_prime_ex()
114 if (!BN_add(p, p, Xp)) in BN_X931_derive_prime_ex()
140 if (!BN_add(p, p, p1p2)) in BN_X931_derive_prime_ex()
Dbn_gcd.c142 if (!BN_add(tmp, tmp, Y)) in bn_mod_inverse_no_branch()
384 if (!BN_add(D, T, B)) in int_bn_mod_inverse()
447 if (!BN_add(tmp, X, Y)) in int_bn_mod_inverse()
465 if (!BN_add(tmp, tmp, Y)) in int_bn_mod_inverse()
622 if (!BN_add(temp, g, r)) in BN_gcd()
Dbn_mod.c25 return (d->neg ? BN_sub : BN_add) (r, r, d); in BN_nnmod()
31 if (!BN_add(r, a, b)) in BN_mod_add()
188 return BN_add(r, r, m); in BN_mod_sub_quick()
Dbn_prime.c350 if (!BN_add(rnd, rnd, rem)) in probable_prime_dh()
356 if (!BN_add(rnd, rnd, add)) in probable_prime_dh()
Dbn_add.c14 int BN_add(BIGNUM *r, const BIGNUM *a, const BIGNUM *b) in BN_add() function
Dbn_sqrt.c187 if (!(p->neg ? BN_add : BN_sub) (y, y, p)) in BN_mod_sqrt()
Dbn_mont.c205 if (!BN_add(t2, a, t1)) in bn_from_mont_fixed_top()
/third_party/openssl/crypto/dsa/
Ddsa_gen.c204 if (!BN_add(W, W, r0)) in dsa_builtin_paramgen()
213 if (!BN_add(X, X, test)) in dsa_builtin_paramgen()
267 if (!BN_add(test, test, BN_value_one())) in dsa_builtin_paramgen()
483 if (!BN_add(W, W, r0)) in dsa_builtin_paramgen2()
492 if (!BN_add(X, X, test)) in dsa_builtin_paramgen2()
574 if (idx < 0 && !BN_add(test, test, BN_value_one())) in dsa_builtin_paramgen2()
Ddsa_ossl.c263 if (!BN_add(l, k, dsa->q) in dsa_sign_setup()
264 || !BN_add(k, l, dsa->q)) in dsa_sign_setup()
/third_party/openssl/doc/man3/
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>).
123 value should always be checked (e.g., C<if (!BN_add(r,a,b)) goto err;>).
DBN_mod_inverse.pod30 L<ERR_get_error(3)>, L<BN_add(3)>
DBN_add_word.pod50 L<ERR_get_error(3)>, L<BN_add(3)>
DBN_mod_mul_reciprocal.pod60 L<ERR_get_error(3)>, L<BN_add(3)>,
DBN_CTX_new.pod63 L<ERR_get_error(3)>, L<BN_add(3)>,
DBN_mod_mul_montgomery.pod74 L<ERR_get_error(3)>, L<BN_add(3)>,
DBN_set_bit.pod58 L<BN_num_bytes(3)>, L<BN_add(3)>
/third_party/openssl/test/
Dectest.c83 || !TEST_true(BN_add(n2, order, BN_value_one())) in group_order_tests()
299 || !TEST_true(BN_add(yplusone, y, BN_value_one())) in prime_field_tests()
352 || !TEST_true(BN_add(yplusone, y, BN_value_one())) in prime_field_tests()
391 || !TEST_true(BN_add(yplusone, y, BN_value_one())) in prime_field_tests()
431 || !TEST_true(BN_add(yplusone, y, BN_value_one())) in prime_field_tests()
477 || !TEST_true(BN_add(yplusone, y, BN_value_one())) in prime_field_tests()
533 || !TEST_true(BN_add(yplusone, y, BN_value_one())) in prime_field_tests()
565 || !TEST_true(BN_add(y, z, BN_value_one())) in prime_field_tests()
580 || !TEST_true(BN_add(z, z, y))) in prime_field_tests()
589 || !TEST_true(BN_add(z, x, y))) in prime_field_tests()
[all …]
Dbntest.c248 && TEST_true(BN_add(c, c, b)) in test_sub()
291 && TEST_true(BN_add(d, e, c)) in test_div_recip()
399 && TEST_true(BN_add(d, c, e)) in test_mod()
995 && TEST_true(BN_add(f, c, d)) in test_gf2m_modexp()
1204 if (!TEST_true(BN_add(ret, a, b)) in file_sum()
1218 || !TEST_true(BN_add(ret, ret, b)) in file_sum()
1221 || !TEST_true(BN_add(ret, a, ret)) in file_sum()
1318 || !TEST_true(BN_add(ret, a, a)) in file_lshift1()
1449 if (BN_add(tmp, tmp, BN_value_one())) in file_square()
1525 || !TEST_true(BN_add(ret, ret, remainder)) in file_quotient()
[all …]
/third_party/openssl/crypto/rsa/
Drsa_ossl.c822 if (!BN_add(r0, r0, rsa->p)) in rsa_ossl_mod_exp()
850 if (!BN_add(r0, r0, rsa->p)) in rsa_ossl_mod_exp()
854 if (!BN_add(r0, r1, m1)) in rsa_ossl_mod_exp()
884 if (!BN_add(r1, r1, pinfo->r)) { in rsa_ossl_mod_exp()
892 if (!BN_add(r0, r0, r1)) { in rsa_ossl_mod_exp()
928 if (!BN_add(vrfy, vrfy, rsa->n)) in rsa_ossl_mod_exp()
/third_party/openssl/fuzz/
Dbndiv.c93 OPENSSL_assert(BN_add(b5, b5, b4)); in FuzzerTestOneInput()
/third_party/openssl/crypto/sm2/
Dsm2_sign.c247 if (!BN_add(rk, r, k)) { in sm2_sig_gen()
255 if (!BN_add(s, dA, BN_value_one()) in sm2_sig_gen()
/third_party/mindspore/mindspore/ccsrc/fl/armour/secure_protocol/
Dsecret_sharing.cc79 if (BN_add(z, x, y) != 1) { in field_add()
/third_party/openssl/crypto/ec/
Dec_mult.c233 if (!BN_add(lambda, k, cardinality)) { in ec_scalar_mul_ladder()
238 if (!BN_add(k, lambda, cardinality)) { in ec_scalar_mul_ladder()
Dec_lib.c317 || !BN_add(group->cofactor, group->cofactor, q) /* q + n/2 */ in ec_guess_cofactor()
319 || !BN_add(group->cofactor, group->cofactor, BN_value_one()) in ec_guess_cofactor()
/third_party/openssl/crypto/srp/
Dsrp_lib.c205 if (!BN_add(tmp2, a, tmp3)) in SRP_Calc_client_key()

12