Searched refs:BN_mod_exp (Results 1 - 25 of 26) sorted by path

12

/freebsd-11-stable/contrib/ntp/util/
H A Dntp-keygen.c1179 BN_mod_exp(v, g, v, p, ctx); /* g^(q - b) mod p */
1180 BN_mod_exp(u, g, b, p, ctx); /* g^b mod p */
1213 BN_mod_exp(u, g, k, p, ctx); /* x = g^k mod p */
1221 BN_mod_exp(v, g, v, p, ctx); /* g^y mod p */
1222 BN_mod_exp(w, pub_key, r, p, ctx); /* v^r */
1375 BN_mod_exp(v, v, b, n, ctx);
1376 BN_mod_exp(g, u, b, n, ctx); /* u^b */
1410 BN_mod_exp(y, u, r, n, ctx); /* u^r mod n */
1412 BN_mod_exp(g, k, b, n, ctx); /* g = k^b mod n */
1421 BN_mod_exp(
[all...]
/freebsd-11-stable/crypto/openssl/apps/
H A Ds_client.c496 BN_mod_exp(r, g, p, N, bn_ctx) &&
/freebsd-11-stable/crypto/openssl/crypto/bn/
H A Dbn.h550 int BN_mod_exp(BIGNUM *r, const BIGNUM *a, const BIGNUM *p,
H A Dbn_blind.c392 if (!BN_mod_exp(ret->A, ret->A, ret->e, ret->mod, ctx))
H A Dbn_exp.c194 int BN_mod_exp(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, const BIGNUM *m, function
H A Dbn_sqrt.c148 if (!BN_mod_exp(ret, A, q, p, ctx))
190 if (!BN_mod_exp(b, t, q, p, ctx))
273 if (!BN_mod_exp(y, y, q, p, ctx))
315 if (!BN_mod_exp(x, A, t, p, ctx))
H A Dexpspeed.c285 if (!BN_mod_exp(r, a, b, c, ctx))
H A Dexptest.c119 if (!BN_mod_exp(&r, &a, &p, &m, ctx))
122 if (!a_is_zero_mod_one("BN_mod_exp", &r, &a))
H A Dbntest.c266 message(out, "BN_mod_exp");
1006 if (BN_mod_exp(d, a, b, c, ctx)) {
1007 fprintf(stderr, "BN_mod_exp with zero modulus succeeded!\n");
1016 if (!BN_mod_exp(d, a, b, c, ctx))
1050 BN_mod_exp(d, a, b, c, ctx);
1053 fprintf(stderr, "BN_mod_exp and BN_mul produce different results!\n");
/freebsd-11-stable/crypto/openssl/crypto/dh/
H A Ddh_check.c100 if (!BN_mod_exp(t1, dh->g, dh->q, dh->p, ctx))
174 if (!BN_mod_exp(tmp, pub_key, dh->q, dh->p, ctx))
/freebsd-11-stable/crypto/openssl/crypto/dsa/
H A Ddsa_ameth.c266 if (!BN_mod_exp(dsa->pub_key, dsa->g, dsa->priv_key, dsa->p, ctx)) {
H A Ddsa_key.c128 if (!BN_mod_exp(pub_key, dsa->g, prk, dsa->p, ctx))
/freebsd-11-stable/crypto/openssl/crypto/engine/
H A Deng_cryptodev.c1132 ret = BN_mod_exp(r, a, p, m, ctx);
/freebsd-11-stable/crypto/openssl/crypto/jpake/
H A Djpake.c202 BN_mod_exp(p->zkpx.gr, zkpg, r, ctx->p.p, ctx->ctx);
232 BN_mod_exp(t1, zkpg, p->zkpx.b, ctx->p.p, ctx->ctx);
234 BN_mod_exp(t2, p->gx, h, ctx->p.p, ctx->ctx);
257 BN_mod_exp(p->gx, g, x, ctx->p.p, ctx->ctx);
302 BN_mod_exp(t, gx, ctx->p.q, ctx->p.p, ctx->ctx);
357 BN_mod_exp(t1, ctx->p.g, ctx->xa, ctx->p.p, ctx->ctx);
399 BN_mod_exp(t1, ctx->p.gxd, ctx->xb, ctx->p.p, ctx->ctx);
403 BN_mod_exp(t3, t1, t2, ctx->p.p, ctx->ctx);
407 BN_mod_exp(ctx->key, t1, ctx->xb, ctx->p.p, ctx->ctx);
429 BN_mod_exp(t
[all...]
/freebsd-11-stable/crypto/openssl/crypto/srp/
H A Dsrp_lib.c167 if (!BN_mod_exp(tmp, v, u, N, bn_ctx))
173 if (S != NULL && !BN_mod_exp(S, tmp, b, N, bn_ctx)) {
199 if (!BN_mod_exp(gb, g, b, N, bn_ctx) ||
253 if ((A = BN_new()) != NULL && !BN_mod_exp(A, g, a, N, bn_ctx)) {
276 if (!BN_mod_exp(tmp, g, x, N, bn_ctx))
290 if (K != NULL && !BN_mod_exp(K, tmp, tmp2, N, bn_ctx)) {
H A Dsrp_vfy.c709 if (!BN_mod_exp(*verifier, g, x, N, bn_ctx)) {
/freebsd-11-stable/crypto/openssl/engines/ccgost/
H A Dgost_sign.c88 BN_mod_exp(tmp, dsa->g, k, dsa->p, ctx);
202 BN_mod_exp(v, md, q2, dsa->q, ctx);
206 BN_mod_exp(tmp, dsa->g, z1, dsa->p, ctx);
207 BN_mod_exp(tmp2, dsa->pub_key, z2, dsa->p, ctx);
249 BN_mod_exp(dsa->pub_key, dsa->g, dsa->priv_key, dsa->p, ctx);
/freebsd-11-stable/crypto/openssl/engines/
H A De_aep.c614 return BN_mod_exp(r, a, p, m, ctx);
623 return BN_mod_exp(r, a, p, m, ctx);
635 return BN_mod_exp(r, a, p, m, ctx);
H A De_ubsec.c581 return BN_mod_exp(r, a, p, m, ctx);
592 return BN_mod_exp(r, a, p, m, ctx);
602 return BN_mod_exp(r, a, p, m, ctx);
/freebsd-11-stable/lib/libmp/
H A Dmpasbn.c516 BN_ERRCHECK("pow", BN_mod_exp(&b, bmp->bn, emp->bn, mmp->bn, c));
/freebsd-11-stable/secure/lib/libcrypto/
H A DMakefile.man365 MLINKS+= BN_add.3 BN_mod_exp.3
/freebsd-11-stable/tools/tools/crypto/
H A Dcryptokeytest.c238 BN_mod_exp(r1, a, b, c, ctx);
/freebsd-11-stable/usr.bin/factor/
H A Dfactor.c282 BN_mod_exp(base, base, i, val, ctx);
/freebsd-11-stable/contrib/ntp/ntpd/
H A Dntp_crypto.c2291 BN_mod_exp(bk, g, bk, p, bctx); /* g^k mod p */
2412 BN_mod_exp(bn, pub_key, peer->iffval, p, bctx);
2413 BN_mod_exp(bk, g, r, p, bctx);
2618 BN_mod_exp(y, p, r, n, bctx); /* u^r mod n */
2620 BN_mod_exp(g, k, e, n, bctx); /* k^b mod n */
2740 BN_mod_exp(v, peer->grpkey, peer->iffval, n, bctx);
2742 BN_mod_exp(y, r, e, n, bctx); /* y^b mod n */
2970 BN_mod_exp(u, g, k, p, bctx); /* A^k r */
2972 BN_mod_exp(sq, priv_key, k, p, bctx); /* gbar */
2973 BN_mod_exp(s
[all...]
/freebsd-11-stable/contrib/wpa/src/crypto/
H A Dcrypto_openssl.c571 !BN_mod_exp(tmp, pub, q, p, ctx) ||

Completed in 205 milliseconds

12