Searched refs:BN_mod_mul (Results 1 - 17 of 17) sorted by relevance

/external/boringssl/src/crypto/bn/
H A Dsqrt.c207 if (!BN_mod_mul(t, t, y, p, ctx) ||
213 if (!BN_mod_mul(x, A, b, p, ctx) ||
214 !BN_mod_mul(x, x, t, p, ctx)) {
344 !BN_mod_mul(b, b, A, p, ctx)) {
349 if (!BN_mod_mul(x, x, A, p, ctx)) {
383 if (!BN_mod_mul(t, t, t, p, ctx)) {
398 if (!BN_mod_mul(y, t, t, p, ctx) ||
399 !BN_mod_mul(x, x, t, p, ctx) ||
400 !BN_mod_mul(b, b, y, p, ctx)) {
H A Ddiv.c435 int BN_mod_mul(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, const BIGNUM *m, function
H A Dprime.c616 if (!BN_mod_mul(w, w, w, a, ctx)) { /* w := w^2 mod a */
H A Dbn_test.cc269 message(bc_file.get(), "BN_mod_mul");
946 if (!BN_mod_mul(d.get(), a.get(), b.get(), n.get(), ctx) ||
1013 if (BN_mod_mul(e.get(), a.get(), b.get(), c.get(), ctx)) {
1014 fprintf(stderr, "BN_mod_mul with zero modulus succeeded!\n");
1030 if (!BN_mod_mul(e.get(), a.get(), b.get(), c.get(), ctx)) {
1044 // BN_mod_mul could generate negative results)
/external/boringssl/src/crypto/rsa/
H A Dblinding.c210 if (!BN_mod_mul(b->A, b->A, b->A, b->mod, ctx)) {
213 if (!BN_mod_mul(b->Ai, b->Ai, b->Ai, b->mod, ctx)) {
252 if (!BN_mod_mul(n, n, b->A, b->mod, ctx)) {
268 ret = BN_mod_mul(n, n, r, b->mod, ctx);
274 ret = BN_mod_mul(n, n, b->Ai, b->mod, ctx);
H A Drsa.c606 !BN_mod_mul(&de, key->d, key->e, &lcm, ctx)) {
/external/boringssl/src/crypto/ecdsa/
H A Decdsa.c196 if (!BN_mod_mul(u1, m, u2, order, ctx)) {
201 if (!BN_mod_mul(u2, sig->r, u2, order, ctx)) {
422 if (!BN_mod_mul(tmp, priv_key, ret->r, order, ctx)) {
430 if (!BN_mod_mul(s, s, ckinv, order, ctx)) {
/external/boringssl/src/crypto/ec/
H A Doct.c315 !BN_mod_mul(tmp1, tmp2, x_, &group->field, ctx)) {
330 !BN_mod_mul(tmp2, tmp2, x, &group->field, ctx)) {
H A Dsimple.c276 !BN_mod_mul(tmp_2, tmp_1, a, p, ctx) ||
541 } else if (!BN_mod_mul(Z_3, Z_2, Z_1, &group->field, ctx)) {
1307 return BN_mod_mul(r, a, b, &group->field, ctx);
/external/tpm2/
H A DCpriECC.c625 if( !BN_mod_mul(bnA, bnA, bnX, bnP, context)
634 || !BN_mod_mul(bnY, bnY, bnY, bnP, context)
907 if( !BN_mod_mul(bnD, bnR, bnD, bnN, context)
911 || !BN_mod_mul(bnD, bnIk, bnD, bnN, context)
996 OK = OK && BN_mod_mul(bnD, bnT, bnD, bnN, context) == 1;
1322 if( !BN_mod_mul(bnS, bnD, bnR, bnN, context) // (r * dA) mod n
1324 || !BN_mod_mul(bnS, bnT, bnS, bnN, context))// t * (k - (r * dA) mod n
1500 if( !BN_mod_mul(bnU1, bnE, bnW, bnN, context)
1501 || !BN_mod_mul(bnU2, bnR, bnW, bnN, context))
1883 !BN_mod_mul(bnT
[all...]
H A DRSAKeySieve.c297 if(BN_mod_mul(bnZ, bnZ, bnZ, bnW, context) != 1)
/external/boringssl/src/crypto/dsa/
H A Ddsa.c524 if (!BN_mod_mul(&xr, dsa->priv_key, r, dsa->q, ctx)) {
535 if (!BN_mod_mul(s, s, kinv, dsa->q, ctx)) {
644 if (!BN_mod_mul(&u1, &u1, &u2, dsa->q, ctx)) {
649 if (!BN_mod_mul(&u2, sig->r, &u2, dsa->q, ctx)) {
/external/wpa_supplicant_8/hostapd/src/crypto/
H A Dcrypto_openssl.c1171 res = BN_mod_mul((BIGNUM *) d, (const BIGNUM *) a, (const BIGNUM *) b,
1506 BN_mod_mul(tmp, tmp, (const BIGNUM *) x, e->prime, e->bnctx) &&
1507 BN_mod_mul(tmp2, e->a, (const BIGNUM *) x, e->prime, e->bnctx) &&
/external/wpa_supplicant_8/src/crypto/
H A Dcrypto_openssl.c1171 res = BN_mod_mul((BIGNUM *) d, (const BIGNUM *) a, (const BIGNUM *) b,
1506 BN_mod_mul(tmp, tmp, (const BIGNUM *) x, e->prime, e->bnctx) &&
1507 BN_mod_mul(tmp2, e->a, (const BIGNUM *) x, e->prime, e->bnctx) &&
/external/wpa_supplicant_8/wpa_supplicant/src/crypto/
H A Dcrypto_openssl.c1171 res = BN_mod_mul((BIGNUM *) d, (const BIGNUM *) a, (const BIGNUM *) b,
1506 BN_mod_mul(tmp, tmp, (const BIGNUM *) x, e->prime, e->bnctx) &&
1507 BN_mod_mul(tmp2, e->a, (const BIGNUM *) x, e->prime, e->bnctx) &&
/external/boringssl/include/openssl/
H A Dbn.h533 /* BN_mod_mul sets |r| = |a|*|b| mod |m|. It returns one on success and zero
535 OPENSSL_EXPORT int BN_mod_mul(BIGNUM *r, const BIGNUM *a, const BIGNUM *b,
/external/boringssl/src/include/openssl/
H A Dbn.h533 /* BN_mod_mul sets |r| = |a|*|b| mod |m|. It returns one on success and zero
535 OPENSSL_EXPORT int BN_mod_mul(BIGNUM *r, const BIGNUM *a, const BIGNUM *b,

Completed in 194 milliseconds