Home
last modified time | relevance | path

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

/external/boringssl/src/crypto/bn/
Dprime.c748 if (!BN_add(rnd, rnd, rem)) { in probable_prime_dh()
758 if (!BN_add(rnd, rnd, add)) { in probable_prime_dh()
811 if (!BN_add(q, q, t1)) { in probable_prime_dh_safe()
831 if (!BN_add(p, p, padd)) { in probable_prime_dh_safe()
834 if (!BN_add(q, q, qadd)) { in probable_prime_dh_safe()
Dgcd.c406 if (!BN_add(D, T, B)) { in BN_mod_inverse()
464 if (!BN_add(tmp, X, Y)) { in BN_mod_inverse()
488 if (!BN_add(tmp, tmp, Y)) { in BN_mod_inverse()
648 if (!BN_add(tmp, tmp, Y)) { in BN_mod_inverse_no_branch()
Ddiv.c392 return (d->neg ? BN_sub : BN_add)(r, r, d); in BN_nnmod()
397 if (!BN_add(r, a, b)) { in BN_mod_add()
430 return BN_add(r, r, m); in BN_mod_sub_quick()
Dbn_test.cc362 if (!BN_add(c.get(), a.get(), b.get())) { in test_add()
375 if (!BN_add(c.get(), c.get(), b.get()) || in test_add()
376 !BN_add(c.get(), c.get(), a.get())) { in test_add()
421 if (!BN_add(c.get(), c.get(), b.get()) || in test_sub()
475 !BN_add(d.get(), e.get(), c.get()) || in test_div()
533 if (!BN_add(c.get(), a.get(), a.get()) || in test_lshift1()
562 !BN_add(c.get(), c.get(), c.get())) { in test_rshift()
638 !BN_add(c.get(), c.get(), c.get())) { in test_lshift()
1359 !BN_add(nn.get(), nn.get(), BN_value_one())) { in test_sqrt()
Dsqrt.c245 if (!(p->neg ? BN_add : BN_sub)(y, y, p)) { in BN_mod_sqrt()
467 !BN_add(tmp, tmp, estimate) || in BN_sqrt()
Dadd.c65 int BN_add(BIGNUM *r, const BIGNUM *a, const BIGNUM *b) { in BN_add() function
/external/boringssl/src/crypto/dsa/
Ddsa_impl.c143 if (!BN_add(&kq, &kq, dsa->q)) { in sign_setup()
146 if (BN_num_bits(&kq) <= BN_num_bits(dsa->q) && !BN_add(&kq, &kq, dsa->q)) { in sign_setup()
242 if (!BN_add(s, &xr, &m)) { in sign()
619 !BN_add(W, W, r0)) { in paramgen()
627 !BN_add(X, X, test)) { in paramgen()
686 if (!BN_add(test, test, BN_value_one())) { in paramgen()
/external/boringssl/src/crypto/rsa/
Drsa_impl.c692 if (!BN_add(r0, r0, rsa->p)) { in mod_exp()
716 if (!BN_add(r0, r0, rsa->p)) { in mod_exp()
723 if (!BN_add(r0, r1, m1)) { in mod_exp()
743 if (!BN_add(vrfy, vrfy, rsa->n)) { in mod_exp()
Drsa_test.c256 if (!BN_add(key->p, key->p, BN_value_one())) { in test_bad_key()
/external/boringssl/src/crypto/ecdsa/
Decdsa.c299 if (!BN_add(k, k, order)) { in ecdsa_sign_setup()
303 if (!BN_add(k, k, order)) { in ecdsa_sign_setup()
/external/boringssl/src/include/openssl/
Dbn.h357 OPENSSL_EXPORT int BN_add(BIGNUM *r, const BIGNUM *a, const BIGNUM *b);
/external/openssh/
Dmoduli.c426 if (BN_add(q, q, largebase) == 0) in gen_candidates()
/external/boringssl/src/crypto/pkcs8/
Dpkcs8.c179 !BN_add(Ij, Ij, Bpl1) || in pkcs12_key_gen_raw()
/external/wpa_supplicant_8/src/eap_peer/
Deap_pwd.c393 BN_add(data->my_scalar, data->private_value, mask) != 1 || in eap_pwd_perform_commit_exchange()
/external/wpa_supplicant_8/src/eap_server/
Deap_server_pwd.c219 BN_add(data->my_scalar, data->private_value, mask) != 1 || in eap_pwd_build_commit_req()
/external/wpa_supplicant_8/src/crypto/
Dcrypto_openssl.c977 return BN_add((BIGNUM *) c, (const BIGNUM *) a, (const BIGNUM *) b) ? in crypto_bignum_add()
/external/boringssl/src/crypto/ec/
Dsimple.c780 if (BN_is_odd(n0) && !BN_add(n0, n0, p)) { in ec_GFp_simple_add()