Home
last modified time | relevance | path

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

/external/openssl/crypto/bn/
Dbn_sqrt.c193 if (!BN_mod_mul(t, t, y, p, ctx)) goto end; in BN_mod_sqrt()
197 if (!BN_mod_mul(x, A, b, p, ctx)) goto end; in BN_mod_sqrt()
198 if (!BN_mod_mul(x, x, t, p, ctx)) goto end; in BN_mod_sqrt()
314 if (!BN_mod_mul(b, b, A, p, ctx)) goto end; in BN_mod_sqrt()
317 if (!BN_mod_mul(x, x, A, p, ctx)) goto end; in BN_mod_sqrt()
349 if (!BN_mod_mul(t, t, t, p, ctx)) goto end; in BN_mod_sqrt()
359 if (!BN_mod_mul(y, t, t, p, ctx)) goto end; in BN_mod_sqrt()
360 if (!BN_mod_mul(x, x, t, p, ctx)) goto end; in BN_mod_sqrt()
361 if (!BN_mod_mul(b, b, y, p, ctx)) goto end; in BN_mod_sqrt()
Dbn_blind.c208 if (!BN_mod_mul(b->A,b->A,b->A,b->mod,ctx)) goto err; in BN_BLINDING_update()
209 if (!BN_mod_mul(b->Ai,b->Ai,b->Ai,b->mod,ctx)) goto err; in BN_BLINDING_update()
247 if (!BN_mod_mul(n,n,b->A,b->mod,ctx)) ret=0; in BN_BLINDING_convert_ex()
264 ret = BN_mod_mul(n, n, r, b->mod, ctx); in BN_BLINDING_invert_ex()
272 ret = BN_mod_mul(n, n, b->Ai, b->mod, ctx); in BN_BLINDING_invert_ex()
Dbn_exp.c1023 if (!BN_mod_mul(d,val[0],val[0],m,ctx)) in BN_mod_exp_simple()
1029 !BN_mod_mul(val[i],val[i-1],d,m,ctx)) in BN_mod_exp_simple()
1048 if (!BN_mod_mul(r,r,r,m,ctx)) in BN_mod_exp_simple()
1078 if (!BN_mod_mul(r,r,r,m,ctx)) in BN_mod_exp_simple()
1083 if (!BN_mod_mul(r,r,val[wvalue>>1],m,ctx)) in BN_mod_exp_simple()
Dbn_mod.c178 int BN_mod_mul(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, const BIGNUM *m, in BN_mod_mul() function
Dexpspeed.c280 if (!BN_mod_mul(r,a,b,c,ctx)) goto err; in do_mul_exp()
Dbn_prime.c363 if (!BN_mod_mul(w, w, w, a, ctx)) /* w := w^2 mod a */ in witness()
Dbn.h475 int BN_mod_mul(BIGNUM *r, const BIGNUM *a, const BIGNUM *b,
Dbntest.c777 BN_mod_mul(&d,&a,&b,&n,ctx); in test_mont()
861 if (!BN_mod_mul(e,a,b,c,ctx)) in test_mod_mul()
/external/openssl/crypto/jpake/
Djpake.c205 BN_mod_mul(t, x, h, ctx->p.q, ctx->ctx); in generate_zkp()
230 BN_mod_mul(t3, t1, t2, ctx->p.p, ctx->ctx); in verify_zkp()
356 BN_mod_mul(t2, t1, ctx->p.gxc, ctx->p.p, ctx->ctx); in JPAKE_STEP2_generate()
358 BN_mod_mul(t1, t2, ctx->p.gxd, ctx->p.p, ctx->ctx); in JPAKE_STEP2_generate()
360 BN_mod_mul(t2, ctx->xb, ctx->secret, ctx->p.q, ctx->ctx); in JPAKE_STEP2_generate()
402 BN_mod_mul(t1, gx, t3, ctx->p.p, ctx->ctx); in compute_key()
428 BN_mod_mul(t1, ctx->p.gxc, t2, ctx->p.p, ctx->ctx); in JPAKE_STEP2_process()
/external/openssh/
Djpake.c287 if (BN_mod_mul(exponent, mypriv2, s, grp->q, bn_ctx) != 1) in jpake_step2()
295 if (BN_mod_mul(tmp, mypub1, theirpub1, grp->p, bn_ctx) != 1) in jpake_step2()
298 if (BN_mod_mul(tmp, tmp, theirpub2, grp->p, bn_ctx) != 1) in jpake_step2()
379 if (BN_mod_mul(tmp, mypub1, mypub2, grp->p, bn_ctx) != 1) in jpake_key_confirm()
381 if (BN_mod_mul(tmp, tmp, theirpub1, grp->p, bn_ctx) != 1) in jpake_key_confirm()
406 if (BN_mod_mul(tmp, tmp, step2_val, grp->p, bn_ctx) != 1) in jpake_key_confirm()
Dschnorr.c183 if (BN_mod_mul(tmp, x, h, grp_q, bn_ctx) == -1) { in schnorr_sign()
326 if (BN_mod_mul(expected, g_r, g_xh, grp_p, bn_ctx) == -1) { in schnorr_verify()
/external/openssl/crypto/dsa/
Ddsa_ossl.c178 if (!BN_mod_mul(&xr,dsa->priv_key,r,dsa->q,ctx)) goto err;/* s = xr */ in dsa_do_sign()
182 if (!BN_mod_mul(s,s,kinv,dsa->q,ctx)) goto err; in dsa_do_sign()
365 if (!BN_mod_mul(&u1,&u1,&u2,dsa->q,ctx)) goto err; in dsa_do_verify()
368 if (!BN_mod_mul(&u2,sig->r,&u2,dsa->q,ctx)) goto err; in dsa_do_verify()
/external/openssl/crypto/srp/
Dsrp_lib.c160 if (!BN_mod_mul(tmp,A,tmp,N,bn_ctx)) in SRP_Calc_server_key()
189 !BN_mod_mul(kv,v,k,N,bn_ctx) || in SRP_Calc_B()
274 if (!BN_mod_mul(tmp2,tmp,k,N,bn_ctx)) in SRP_Calc_client_key()
279 if (!BN_mod_mul(tmp3,u,x,N,bn_ctx)) in SRP_Calc_client_key()
/external/openssl/crypto/ecdsa/
Decs_ossl.c302 if (!BN_mod_mul(tmp, priv_key, ret->r, order, ctx)) in ecdsa_do_sign()
312 if (!BN_mod_mul(s, s, ckinv, order, ctx)) in ecdsa_do_sign()
428 if (!BN_mod_mul(u1, m, u2, order, ctx)) in ecdsa_do_verify()
434 if (!BN_mod_mul(u2, sig->r, u2, order, ctx)) in ecdsa_do_verify()
/external/openssl/crypto/ec/
Decp_oct.c112 if (!BN_mod_mul(tmp1, tmp2, x_, &group->field, ctx)) goto err; in ec_GFp_simple_set_compressed_coordinates()
127 if (!BN_mod_mul(tmp2, tmp2, x, &group->field, ctx)) goto err; in ec_GFp_simple_set_compressed_coordinates()
Decp_smpl.c332 if (!BN_mod_mul(tmp_2, tmp_1, a, p, ctx)) goto err; in ec_GFp_simple_group_check_discriminant()
626 if (!BN_mod_mul(Z_3, Z_2, Z_1, &group->field, ctx)) goto err; in ec_GFp_simple_point_get_affine_coordinates()
1353 return BN_mod_mul(r, a, b, &group->field, ctx); in ec_GFp_simple_field_mul()
/external/openssl/crypto/rsa/
Drsa_chk.c122 r = BN_mod_mul(i, key->d, key->e, k, ctx); in RSA_check_key()
/external/openssl/include/openssl/
Dbn.h475 int BN_mod_mul(BIGNUM *r, const BIGNUM *a, const BIGNUM *b,
/external/openssl/crypto/engine/
Deng_cryptodev.c1167 if (!BN_mod_mul(u1,t1,&t2,dsa->p,ctx)) in cryptodev_dsa_dsa_mod_exp()