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

12

/external/openssl/crypto/bn/
H A Dbn_sqrt.c193 if (!BN_mod_mul(t, t, y, p, ctx)) goto end;
197 if (!BN_mod_mul(x, A, b, p, ctx)) goto end;
198 if (!BN_mod_mul(x, x, t, p, ctx)) goto end;
314 if (!BN_mod_mul(b, b, A, p, ctx)) goto end;
317 if (!BN_mod_mul(x, x, A, p, ctx)) goto end;
349 if (!BN_mod_mul(t, t, t, p, ctx)) goto end;
359 if (!BN_mod_mul(y, t, t, p, ctx)) goto end;
360 if (!BN_mod_mul(x, x, t, p, ctx)) goto end;
361 if (!BN_mod_mul(b, b, y, p, ctx)) goto end;
H A Dbn_blind.c208 if (!BN_mod_mul(b->A,b->A,b->A,b->mod,ctx)) goto err;
209 if (!BN_mod_mul(b->Ai,b->Ai,b->Ai,b->mod,ctx)) goto err;
247 if (!BN_mod_mul(n,n,b->A,b->mod,ctx)) ret=0;
264 ret = BN_mod_mul(n, n, r, b->mod, ctx);
272 ret = BN_mod_mul(n, n, b->Ai, b->mod, ctx);
H A Dbn_mod.c178 int BN_mod_mul(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, const BIGNUM *m, function
H A Dbn_exp.c1030 if (!BN_mod_mul(d,val[0],val[0],m,ctx))
1036 !BN_mod_mul(val[i],val[i-1],d,m,ctx))
1055 if (!BN_mod_mul(r,r,r,m,ctx))
1085 if (!BN_mod_mul(r,r,r,m,ctx))
1090 if (!BN_mod_mul(r,r,val[wvalue>>1],m,ctx))
H A Dexpspeed.c280 if (!BN_mod_mul(r,a,b,c,ctx)) goto err;
H A Dbn_prime.c363 if (!BN_mod_mul(w, w, w, a, ctx)) /* w := w^2 mod a */
H A Dbntest.c238 message(out,"BN_mod_mul");
777 BN_mod_mul(&d,&a,&b,&n,ctx);
861 if (!BN_mod_mul(e,a,b,c,ctx))
884 * BN_mod_mul could generate negative results)
/external/chromium_org/third_party/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.c428 int BN_mod_mul(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, const BIGNUM *m, function
H A Dprime.c430 if (!BN_mod_mul(w, w, w, a, ctx)) { /* w := w^2 mod a */
H A Dbn_test.c239 message(out, "BN_mod_mul");
806 BN_mod_mul(&d, &a, &b, &n, ctx);
882 if (!BN_mod_mul(e, a, b, c, ctx)) {
900 * BN_mod_mul could generate negative results)
/external/chromium_org/third_party/boringssl/src/crypto/rsa/
H A Dblinding.c212 if (!BN_mod_mul(b->A, b->A, b->A, b->mod, ctx)) {
215 if (!BN_mod_mul(b->Ai, b->Ai, b->Ai, b->mod, ctx)) {
254 if (!BN_mod_mul(n, n, b->A, b->mod, ctx)) {
270 ret = BN_mod_mul(n, n, r, b->mod, ctx);
276 ret = BN_mod_mul(n, n, b->Ai, b->mod, ctx);
H A Drsa.c558 !BN_mod_mul(&de, key->d, key->e, &lcm, ctx)) {
/external/openssl/crypto/dsa/
H A Ddsa_ossl.c181 if (!BN_mod_mul(&xr,dsa->priv_key,r,dsa->q,ctx)) goto err;/* s = xr */
185 if (!BN_mod_mul(s,s,kinv,dsa->q,ctx)) goto err;
383 if (!BN_mod_mul(&u1,&u1,&u2,dsa->q,ctx)) goto err;
386 if (!BN_mod_mul(&u2,sig->r,&u2,dsa->q,ctx)) goto err;
/external/openssl/crypto/jpake/
H A Djpake.c205 BN_mod_mul(t, x, h, ctx->p.q, ctx->ctx);
230 BN_mod_mul(t3, t1, t2, ctx->p.p, ctx->ctx);
356 BN_mod_mul(t2, t1, ctx->p.gxc, ctx->p.p, ctx->ctx);
358 BN_mod_mul(t1, t2, ctx->p.gxd, ctx->p.p, ctx->ctx);
360 BN_mod_mul(t2, ctx->xb, ctx->secret, ctx->p.q, ctx->ctx);
402 BN_mod_mul(t1, gx, t3, ctx->p.p, ctx->ctx);
428 BN_mod_mul(t1, ctx->p.gxc, t2, ctx->p.p, ctx->ctx);
/external/chromium_org/third_party/boringssl/src/crypto/ecdsa/
H A Decdsa.c187 if (!BN_mod_mul(u1, m, u2, order, ctx)) {
192 if (!BN_mod_mul(u2, sig->r, u2, order, ctx)) {
417 if (!BN_mod_mul(tmp, priv_key, ret->r, order, ctx)) {
425 if (!BN_mod_mul(s, s, ckinv, order, ctx)) {
/external/openssl/crypto/ecdsa/
H A Decs_ossl.c322 if (!BN_mod_mul(tmp, priv_key, ret->r, order, ctx))
332 if (!BN_mod_mul(s, s, ckinv, order, ctx))
448 if (!BN_mod_mul(u1, m, u2, order, ctx))
454 if (!BN_mod_mul(u2, sig->r, u2, order, ctx))
/external/openssl/crypto/srp/
H A Dsrp_lib.c170 if (!BN_mod_mul(tmp,A,tmp,N,bn_ctx))
199 !BN_mod_mul(kv,v,k,N,bn_ctx) ||
284 if (!BN_mod_mul(tmp2,tmp,k,N,bn_ctx))
289 if (!BN_mod_mul(tmp3,u,x,N,bn_ctx))
/external/chromium_org/third_party/boringssl/src/crypto/dsa/
H A Ddsa_impl.c238 if (!BN_mod_mul(&xr, dsa->priv_key, r, dsa->q, ctx)) {
249 if (!BN_mod_mul(s, s, kinv, dsa->q, ctx)) {
354 if (!BN_mod_mul(&u1, &u1, &u2, dsa->q, ctx)) {
359 if (!BN_mod_mul(&u2, sig->r, &u2, dsa->q, ctx)) {
/external/openssl/crypto/rsa/
H A Drsa_chk.c128 r = BN_mod_mul(i, key->d, key->e, k, ctx);
/external/openssl/crypto/ec/
H A Decp_oct.c112 if (!BN_mod_mul(tmp1, tmp2, x_, &group->field, ctx)) goto err;
127 if (!BN_mod_mul(tmp2, tmp2, x, &group->field, ctx)) goto err;
H A Decp_smpl.c333 if (!BN_mod_mul(tmp_2, tmp_1, a, p, ctx)) goto err;
627 if (!BN_mod_mul(Z_3, Z_2, Z_1, &group->field, ctx)) goto err;
1332 return BN_mod_mul(r, a, b, &group->field, ctx);
/external/chromium_org/third_party/boringssl/src/crypto/ec/
H A Doct.c379 !BN_mod_mul(tmp1, tmp2, x_, &group->field, ctx)) {
394 !BN_mod_mul(tmp2, tmp2, x, &group->field, ctx)) {
H A Dsimple.c316 if (!BN_mod_mul(tmp_2, tmp_1, a, p, ctx))
590 if (!BN_mod_mul(Z_3, Z_2, Z_1, &group->field, ctx))
1353 return BN_mod_mul(r, a, b, &group->field, ctx);
/external/chromium_org/third_party/boringssl/src/include/openssl/
H A Dbn.h500 /* BN_mod_mul sets |r| = |a|*|b| mod |m|. It returns one on success and zero
502 OPENSSL_EXPORT int BN_mod_mul(BIGNUM *r, const BIGNUM *a, const BIGNUM *b,
505 /* BN_mod_mul sets |r| = |a|^2 mod |m|. It returns one on success and zero

Completed in 5580 milliseconds

12