Home
last modified time | relevance | path

Searched refs:BN_mod_mul (Results 1 – 15 of 15) sorted by relevance

/external/boringssl/src/crypto/bn/
Dsqrt.c207 if (!BN_mod_mul(t, t, y, p, ctx) || in BN_mod_sqrt()
213 if (!BN_mod_mul(x, A, b, p, ctx) || in BN_mod_sqrt()
214 !BN_mod_mul(x, x, t, p, ctx)) { in BN_mod_sqrt()
344 !BN_mod_mul(b, b, A, p, ctx)) { in BN_mod_sqrt()
349 if (!BN_mod_mul(x, x, A, p, ctx)) { in BN_mod_sqrt()
383 if (!BN_mod_mul(t, t, t, p, ctx)) { in BN_mod_sqrt()
398 if (!BN_mod_mul(y, t, t, p, ctx) || in BN_mod_sqrt()
399 !BN_mod_mul(x, x, t, p, ctx) || in BN_mod_sqrt()
400 !BN_mod_mul(b, b, y, p, ctx)) { in BN_mod_sqrt()
Dprime.c616 if (!BN_mod_mul(w, w, w, a, ctx)) { /* w := w^2 mod a */ in witness()
Ddiv.c435 int BN_mod_mul(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, const BIGNUM *m, in BN_mod_mul() function
Dbn_test.cc946 if (!BN_mod_mul(d.get(), a.get(), b.get(), n.get(), ctx) || in test_mont()
1013 if (BN_mod_mul(e.get(), a.get(), b.get(), c.get(), ctx)) { in test_mod_mul()
1030 if (!BN_mod_mul(e.get(), a.get(), b.get(), c.get(), ctx)) { in test_mod_mul()
/external/boringssl/src/crypto/rsa/
Dblinding.c210 if (!BN_mod_mul(b->A, b->A, b->A, b->mod, ctx)) { in BN_BLINDING_update()
213 if (!BN_mod_mul(b->Ai, b->Ai, b->Ai, b->mod, ctx)) { in BN_BLINDING_update()
252 if (!BN_mod_mul(n, n, b->A, b->mod, ctx)) { in BN_BLINDING_convert_ex()
268 ret = BN_mod_mul(n, n, r, b->mod, ctx); in BN_BLINDING_invert_ex()
274 ret = BN_mod_mul(n, n, b->Ai, b->mod, ctx); in BN_BLINDING_invert_ex()
Drsa.c606 !BN_mod_mul(&de, key->d, key->e, &lcm, ctx)) { in RSA_check_key()
/external/boringssl/src/crypto/ecdsa/
Decdsa.c196 if (!BN_mod_mul(u1, m, u2, order, ctx)) { in ECDSA_do_verify()
201 if (!BN_mod_mul(u2, sig->r, u2, order, ctx)) { in ECDSA_do_verify()
422 if (!BN_mod_mul(tmp, priv_key, ret->r, order, ctx)) { in ECDSA_do_sign_ex()
430 if (!BN_mod_mul(s, s, ckinv, order, ctx)) { in ECDSA_do_sign_ex()
/external/tpm2/
DCpriECC.c625 if( !BN_mod_mul(bnA, bnA, bnX, bnP, context) in _cpri__EccIsPointOnCurve()
634 || !BN_mod_mul(bnY, bnY, bnY, bnP, context) in _cpri__EccIsPointOnCurve()
907 if( !BN_mod_mul(bnD, bnR, bnD, bnN, context) in SignEcdsa()
911 || !BN_mod_mul(bnD, bnIk, bnD, bnN, context) in SignEcdsa()
996 OK = OK && BN_mod_mul(bnD, bnT, bnD, bnN, context) == 1; in EcDaa()
1322 if( !BN_mod_mul(bnS, bnD, bnR, bnN, context) // (r * dA) mod n in SignSM2()
1324 || !BN_mod_mul(bnS, bnT, bnS, bnN, context))// t * (k - (r * dA) mod n in SignSM2()
1500 if( !BN_mod_mul(bnU1, bnE, bnW, bnN, context) in ValidateSignatureEcdsa()
1501 || !BN_mod_mul(bnU2, bnR, bnW, bnN, context)) in ValidateSignatureEcdsa()
1883 !BN_mod_mul(bnTa, bnDsA, bnTa, bnN, context) in C_2_2_MQV()
[all …]
DRSAKeySieve.c297 if(BN_mod_mul(bnZ, bnZ, bnZ, bnW, context) != 1) in MillerRabin()
Dpart4.txt30959 230 if(BN_mod_mul(bnZ, bnZ, bnZ, bnW, context) != 1)
33791 538 if( !BN_mod_mul(bnA, bnA, bnX, bnP, context)
33805 546 || !BN_mod_mul(bnY, bnY, bnY, bnP, context)
34130 818 if( !BN_mod_mul(bnD, bnR, bnD, bnN, context)
34136 824 || !BN_mod_mul(bnD, bnIk, bnD, bnN, context)
34245 907 OK = OK && BN_mod_mul(bnD, bnT, bnD, bnN, context) == 1;
34602 1205 if( !BN_mod_mul(bnS, bnD, bnR, bnN, context) // (r * dA) mod n
34604 1207 || !BN_mod_mul(bnS, bnT, bnS, bnN, context))// t * (k - (r * dA) mod n
34817 1383 if( !BN_mod_mul(bnU1, bnE, bnW, bnN, context)
34818 1384 || !BN_mod_mul(bnU2, bnR, bnW, bnN, context))
[all …]
/external/boringssl/src/crypto/dsa/
Ddsa.c524 if (!BN_mod_mul(&xr, dsa->priv_key, r, dsa->q, ctx)) { in DSA_do_sign()
535 if (!BN_mod_mul(s, s, kinv, dsa->q, ctx)) { in DSA_do_sign()
644 if (!BN_mod_mul(&u1, &u1, &u2, dsa->q, ctx)) { in DSA_do_check_signature()
649 if (!BN_mod_mul(&u2, sig->r, &u2, dsa->q, ctx)) { in DSA_do_check_signature()
/external/boringssl/src/crypto/ec/
Doct.c315 !BN_mod_mul(tmp1, tmp2, x_, &group->field, ctx)) { in ec_GFp_simple_set_compressed_coordinates()
330 !BN_mod_mul(tmp2, tmp2, x, &group->field, ctx)) { in ec_GFp_simple_set_compressed_coordinates()
Dsimple.c276 !BN_mod_mul(tmp_2, tmp_1, a, p, ctx) || in ec_GFp_simple_group_check_discriminant()
541 } else if (!BN_mod_mul(Z_3, Z_2, Z_1, &group->field, ctx)) { in ec_GFp_simple_point_get_affine_coordinates()
1307 return BN_mod_mul(r, a, b, &group->field, ctx); in ec_GFp_simple_field_mul()
/external/wpa_supplicant_8/src/crypto/
Dcrypto_openssl.c1171 res = BN_mod_mul((BIGNUM *) d, (const BIGNUM *) a, (const BIGNUM *) b, in crypto_bignum_mulmod()
1506 BN_mod_mul(tmp, tmp, (const BIGNUM *) x, e->prime, e->bnctx) && in crypto_ec_point_compute_y_sqr()
1507 BN_mod_mul(tmp2, e->a, (const BIGNUM *) x, e->prime, e->bnctx) && in crypto_ec_point_compute_y_sqr()
/external/boringssl/src/include/openssl/
Dbn.h535 OPENSSL_EXPORT int BN_mod_mul(BIGNUM *r, const BIGNUM *a, const BIGNUM *b,