Home
last modified time | relevance | path

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

12

/src/contrib/ntp/util/
H A Dntp-keygen.c1198 BN_mod_exp(v, g, v, p, ctx); /* g^(q - b) mod p */ in gen_iffkey()
1199 BN_mod_exp(u, g, b, p, ctx); /* g^b mod p */ in gen_iffkey()
1232 BN_mod_exp(u, g, k, p, ctx); /* x = g^k mod p */ in gen_iffkey()
1240 BN_mod_exp(v, g, v, p, ctx); /* g^y mod p */ in gen_iffkey()
1241 BN_mod_exp(w, pub_key, r, p, ctx); /* v^r */ in gen_iffkey()
1394 BN_mod_exp(v, v, b, n, ctx); in gen_gqkey()
1395 BN_mod_exp(g, u, b, n, ctx); /* u^b */ in gen_gqkey()
1429 BN_mod_exp(y, u, r, n, ctx); /* u^r mod n */ in gen_gqkey()
1431 BN_mod_exp(g, k, b, n, ctx); /* g = k^b mod n */ in gen_gqkey()
1440 BN_mod_exp(v, v, r, n, ctx); /* v^r mod n */ in gen_gqkey()
[all …]
/src/crypto/openssl/crypto/srp/
H A Dsrp_lib.c90 if (!BN_mod_exp(tmp, v, u, N, bn_ctx)) in SRP_Calc_server_key()
96 if (S != NULL && !BN_mod_exp(S, tmp, b, N, bn_ctx)) { in SRP_Calc_server_key()
121 if (!BN_mod_exp(gb, g, b, N, bn_ctx) in SRP_Calc_B_ex()
202 if ((A = BN_new()) != NULL && !BN_mod_exp(A, g, a, N, bn_ctx)) { in SRP_Calc_A()
227 if (!BN_mod_exp(tmp, g, xtmp, N, bn_ctx)) in SRP_Calc_client_key_ex()
240 if (K != NULL && !BN_mod_exp(K, tmp, tmp2, N, bn_ctx)) { in SRP_Calc_client_key_ex()
H A Dsrp_vfy.c749 if (!BN_mod_exp(verif, g, x, N, bn_ctx)) { in SRP_create_verifier_BN_ex()
/src/crypto/openssl/crypto/bn/
H A Dbn_sqrt.c101 if (!BN_mod_exp(ret, A, q, p, ctx)) in BN_mod_sqrt()
144 if (!BN_mod_exp(b, t, q, p, ctx)) in BN_mod_sqrt()
226 if (!BN_mod_exp(y, y, q, p, ctx)) in BN_mod_sqrt()
268 if (!BN_mod_exp(x, A, t, p, ctx)) in BN_mod_sqrt()
H A Dbn_blind.c292 if (!BN_mod_exp(ret->A, ret->A, ret->e, ret->mod, ctx)) in BN_BLINDING_create_param()
H A Dbn_exp.c97 int BN_mod_exp(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, const BIGNUM *m, in BN_mod_exp() function
/src/crypto/openssl/doc/man3/
H A DBN_add.pod6 BN_mod_sub, BN_mod_mul, BN_mod_sqr, BN_mod_sqrt, BN_exp, BN_mod_exp, BN_gcd -
43 int BN_mod_exp(BIGNUM *r, const BIGNUM *a, const BIGNUM *p,
102 BN_mod_exp() computes I<a> to the I<p>-th power modulo I<m> (C<r=a^p %
119 For modular operations such as BN_nnmod() or BN_mod_exp() it is an error
H A DBN_mod_mul_montgomery.pod31 automatically when L<BN_mod_exp(3)> is called with suitable input,
/src/crypto/openssl/fuzz/
H A Dbignum.c77 OPENSSL_assert(BN_mod_exp(b4, b1, b2, b3, ctx)); in FuzzerTestOneInput()
/src/crypto/openssl/crypto/ffc/
H A Dffc_key_validate.c81 || !BN_mod_exp(tmp, pub_key, params->q, params->p, ctx)) in ossl_ffc_validate_public_key()
/src/crypto/openssl/crypto/rsa/
H A Drsa_sp800_56b_gen.c450 && BN_mod_exp(tmp, k, rsa->e, rsa->n, ctx) in ossl_rsa_sp800_56b_pairwise_test()
451 && BN_mod_exp(tmp, tmp, rsa->d, rsa->n, ctx) in ossl_rsa_sp800_56b_pairwise_test()
/src/contrib/ntp/ntpd/
H A Dntp_crypto.c2283 BN_mod_exp(bk, g, bk, p, bctx); /* g^k mod p */ in crypto_bob()
2408 BN_mod_exp(bn, pub_key, peer->iffval, p, bctx); in crypto_iff()
2409 BN_mod_exp(bk, g, r, p, bctx); in crypto_iff()
2613 BN_mod_exp(y, p, r, n, bctx); /* u^r mod n */ in crypto_bob2()
2615 BN_mod_exp(g, k, e, n, bctx); /* k^b mod n */ in crypto_bob2()
2734 BN_mod_exp(v, peer->grpkey, peer->iffval, n, bctx); in crypto_gq()
2736 BN_mod_exp(y, r, e, n, bctx); /* y^b mod n */ in crypto_gq()
2963 BN_mod_exp(u, g, k, p, bctx); /* A^k r */ in crypto_bob3()
2965 BN_mod_exp(sq, priv_key, k, p, bctx); /* gbar */ in crypto_bob3()
2966 BN_mod_exp(sg, pub_key, k, p, bctx); /* ghat */ in crypto_bob3()
[all …]
/src/crypto/openssl/crypto/dsa/
H A Ddsa_backend.c170 if (!BN_mod_exp(dsa_pubkey, dsa_g, dsa_privkey, dsa_p, ctx)) { in ossl_dsa_key_from_pkcs8()
H A Ddsa_key.c53 if (!BN_mod_exp(pub_key, dsa->params.g, prk, dsa->params.p, ctx)) in ossl_dsa_generate_public_key()
/src/crypto/openssl/apps/lib/
H A Dtlssrp_depr.c36 BN_mod_exp(r, g, p, N, bn_ctx) && BN_add_word(r, 1) && BN_cmp(r, N) == 0; in srp_Verify_N_and_g()
/src/usr.bin/factor/
H A Dfactor.c266 BN_mod_exp(base, base, i, val, ctx); in pollard_pminus1()
/src/crypto/openssl/test/
H A Dbntest.c1681 if (!TEST_true(BN_mod_exp(ret, a, e, m, ctx)) in file_modexp()
1704 if (!TEST_true(BN_mod_exp(d, a, b, c, ctx)) in file_modexp()
2497 if (!TEST_false(BN_mod_exp(a, BN_value_one(), BN_value_one(), zero, ctx))) in test_badmod()
2553 if (!TEST_true(BN_mod_exp(r, a, zero, BN_value_one(), NULL)) in test_expmodzero()
2595 if (!TEST_true(BN_mod_exp(r, a, p, m, NULL)) in test_expmodone()
3059 if (!TEST_int_eq(BN_mod_exp(result, base, exponent, modulo, ctx), 1)) in test_mod_exp()
3097 if (!TEST_int_eq(BN_mod_exp(result, base, exponent, modulo, ctx), 1)) in test_mod_exp_consttime()
H A Dexptest.c68 if (!TEST_true(BN_mod_exp(r, a, p, m, ctx))) in test_mod_exp_zero()
/src/crypto/openssl/crypto/dh/
H A Ddh_check.c189 if (!BN_mod_exp(t1, dh->params.g, dh->params.q, dh->params.p, ctx)) in DH_check()
/src/lib/libmp/
H A Dmpasbn.c530 BN_ERRCHECK("pow", BN_mod_exp(b, bmp->bn, emp->bn, mmp->bn, c)); in mp_pow()
/src/crypto/openssl/include/openssl/
H A Dbn.h310 int BN_mod_exp(BIGNUM *r, const BIGNUM *a, const BIGNUM *p,
/src/crypto/openssl/crypto/pem/
H A Dpvkfmt.c414 if (!BN_mod_exp(pub_key, gbn, priv_key, pbn, ctx)) in ossl_b2i_DSA_after_header()
/src/crypto/openssl/
H A DNEWS.md632 * Fixed carry bug in BN_mod_exp which may produce incorrect results on MIPS
898 * BN_mod_exp may produce incorrect results on x86_64 ([CVE-2017-3732])
1021 * BN_mod_exp may produce incorrect results on x86_64 ([CVE-2017-3732])
1075 * BN_mod_exp may produce incorrect results on x86_64 ([CVE-2015-3193])
/src/secure/lib/libcrypto/
H A DVersion.map525 BN_mod_exp;
/src/contrib/wpa/src/crypto/
H A Dcrypto_openssl.c791 !BN_mod_exp(tmp, pub, q, p, ctx) || in crypto_dh_derive_secret()

12