Home
last modified time | relevance | path

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

/external/openssl/crypto/jpake/
Djpake.c199 BN_mod_exp(p->zkpx.gr, zkpg, r, ctx->p.p, ctx->ctx); in generate_zkp()
226 BN_mod_exp(t1, zkpg, p->zkpx.b, ctx->p.p, ctx->ctx); in verify_zkp()
228 BN_mod_exp(t2, p->gx, h, ctx->p.p, ctx->ctx); in verify_zkp()
250 BN_mod_exp(p->gx, g, x, ctx->p.p, ctx->ctx); in generate_step_part()
295 BN_mod_exp(t, gx, ctx->p.q, ctx->p.p, ctx->ctx); in is_legal()
354 BN_mod_exp(t1, ctx->p.g, ctx->xa, ctx->p.p, ctx->ctx); in JPAKE_STEP2_generate()
396 BN_mod_exp(t1, ctx->p.gxd, ctx->xb, ctx->p.p, ctx->ctx); in compute_key()
400 BN_mod_exp(t3, t1, t2, ctx->p.p, ctx->ctx); in compute_key()
404 BN_mod_exp(ctx->key, t1, ctx->xb, ctx->p.p, ctx->ctx); in compute_key()
426 BN_mod_exp(t2, ctx->p.g, t1, ctx->p.p, ctx->ctx); in JPAKE_STEP2_process()
/external/openssl/crypto/srp/
Dsrp_lib.c158 if (!BN_mod_exp(tmp,v,u,N,bn_ctx)) in SRP_Calc_server_key()
162 if (!BN_mod_exp(S,tmp,b,N,bn_ctx)) in SRP_Calc_server_key()
187 if (!BN_mod_exp(gb,g,b,N,bn_ctx) || in SRP_Calc_B()
245 !BN_mod_exp(A,g,a,N,bn_ctx)) in SRP_Calc_A()
270 if (!BN_mod_exp(tmp,g,x,N,bn_ctx)) in SRP_Calc_client_key()
283 if (!BN_mod_exp(K,tmp,tmp2,N,bn_ctx)) in SRP_Calc_client_key()
Dsrp_vfy.c638 if (!BN_mod_exp(*verifier,g,x,N,bn_ctx)) in SRP_create_verifier_BN()
/external/openssl/crypto/bn/
Dbn_sqrt.c148 if (!BN_mod_exp(ret, A, q, p, ctx)) goto end; in BN_mod_sqrt()
187 if (!BN_mod_exp(b, t, q, p, ctx)) goto end; in BN_mod_sqrt()
258 if (!BN_mod_exp(y, y, q, p, ctx)) goto end; in BN_mod_sqrt()
302 if (!BN_mod_exp(x, A, t, p, ctx)) goto end; in BN_mod_sqrt()
Dexpspeed.c275 if (!BN_mod_exp(r,a,b,c,ctx)) goto err; in do_mul_exp()
Dbn_blind.c372 if (!BN_mod_exp(ret->A, ret->A, ret->e, ret->mod, ctx)) in BN_BLINDING_create_param()
Dbn_exp.c176 int BN_mod_exp(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, const BIGNUM *m, in BN_mod_exp() function
Dbn.h498 int BN_mod_exp(BIGNUM *r, const BIGNUM *a, const BIGNUM *p,
Dbntest.c930 if (!BN_mod_exp(d,a,b,c,ctx)) in test_mod_exp()
/external/openssh/
Djpake.c226 if (BN_mod_exp(*g_priv1, grp->g, *priv1, grp->p, bn_ctx) == -1) in jpake_step1()
228 if (BN_mod_exp(*g_priv2, grp->g, *priv2, grp->p, bn_ctx) == -1) in jpake_step1()
305 if (BN_mod_exp(*newpub, tmp, exponent, grp->p, bn_ctx) != 1) in jpake_step2()
404 if (BN_mod_exp(tmp, theirpub2, tmp, grp->p, bn_ctx) != 1) in jpake_key_confirm()
408 if (BN_mod_exp(*k, tmp, mypriv2, grp->p, bn_ctx) != 1) in jpake_key_confirm()
Dschnorr.c169 if (BN_mod_exp(g_v, grp_g, v, grp_p, bn_ctx) == -1) { in schnorr_sign()
294 if (BN_mod_exp(gx_q, g_x, grp_q, grp_p, bn_ctx) == -1) { in schnorr_verify()
312 if (BN_mod_exp(g_xh, g_x, h, grp_p, bn_ctx) == -1) { in schnorr_verify()
319 if (BN_mod_exp(g_r, grp_g, r, grp_p, bn_ctx) == -1) { in schnorr_verify()
594 if (BN_mod_exp(g_x, grp_g, x, grp_p, bn_ctx) == -1) in schnorr_selftest_one()
/external/openssl/crypto/dsa/
Ddsa_key.c131 if (!BN_mod_exp(pub_key,dsa->g,prk,dsa->p,ctx)) goto err; in dsa_builtin_keygen()
Ddsa_ameth.c277 if (!BN_mod_exp(dsa->pub_key, dsa->g, dsa->priv_key, dsa->p, ctx)) in dsa_priv_decode()
/external/wpa_supplicant_6/wpa_supplicant/src/crypto/
Dcrypto_openssl.c234 if (BN_mod_exp(bn_result, bn_base, bn_exp, bn_modulus, ctx) != 1) in crypto_mod_exp()
/external/wpa_supplicant_8/src/crypto/
Dcrypto_openssl.c331 if (BN_mod_exp(bn_result, bn_base, bn_exp, bn_modulus, ctx) != 1) in crypto_mod_exp()
/external/openssl/crypto/pem/
Dpvkfmt.c346 if (!BN_mod_exp(dsa->pub_key, dsa->g, in b2i_dss()
/external/openssl/include/openssl/
Dbn.h498 int BN_mod_exp(BIGNUM *r, const BIGNUM *a, const BIGNUM *p,
/external/openssl/crypto/engine/
Deng_cryptodev.c1035 ret = BN_mod_exp(r, a, p, m, ctx); in cryptodev_bn_mod_exp()
/external/openssl/apps/
Ds_client.c422 BN_mod_exp(r, g, p, N, bn_ctx) && in srp_Verify_N_and_g()