| /freebsd-14.2/contrib/ntp/util/ |
| H A D | ntp-keygen.c | 1394 BN_mod_exp(v, v, b, n, ctx); in gen_gqkey() 1672 BN_mod_exp(u, g, q, p, ctx); in gen_mvkey() 1726 BN_mod_exp(gs[i], g, a[i], p, ctx); in gen_mvkey() 1740 BN_mod_exp(v, x[j], v, q, ctx); in gen_mvkey() 1742 BN_mod_exp(v, g, v, p, ctx); in gen_mvkey() 1765 BN_mod_exp(v, x[j], v, q, ctx); in gen_mvkey() 1766 BN_mod_exp(v, gs[i], v, p, ctx); in gen_mvkey() 1805 BN_mod_exp(u, x[i], v, q, ctx); in gen_mvkey() 1833 BN_mod_exp(bige, biga, s, p, ctx); in gen_mvkey() 1834 BN_mod_exp(gbar, g, s, p, ctx); in gen_mvkey() [all …]
|
| /freebsd-14.2/crypto/openssl/crypto/srp/ |
| H A D | srp_lib.c | 90 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() 123 if (!BN_mod_exp(gb, g, b, N, bn_ctx) in SRP_Calc_B_ex() 204 if ((A = BN_new()) != NULL && !BN_mod_exp(A, g, a, N, bn_ctx)) { in SRP_Calc_A() 232 if (!BN_mod_exp(tmp, g, xtmp, N, bn_ctx)) in SRP_Calc_client_key_ex() 245 if (K != NULL && !BN_mod_exp(K, tmp, tmp2, N, bn_ctx)) { in SRP_Calc_client_key_ex()
|
| H A D | srp_vfy.c | 752 if (!BN_mod_exp(verif, g, x, N, bn_ctx)) { in SRP_create_verifier_BN_ex()
|
| /freebsd-14.2/crypto/openssl/crypto/bn/ |
| H A D | bn_sqrt.c | 101 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() 227 if (!BN_mod_exp(y, y, q, p, ctx)) in BN_mod_sqrt() 269 if (!BN_mod_exp(x, A, t, p, ctx)) in BN_mod_sqrt()
|
| H A D | bn_blind.c | 295 if (!BN_mod_exp(ret->A, ret->A, ret->e, ret->mod, ctx)) in BN_BLINDING_create_param()
|
| H A D | bn_exp.c | 97 int BN_mod_exp(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, const BIGNUM *m, in BN_mod_exp() function
|
| /freebsd-14.2/crypto/openssl/doc/man3/ |
| H A D | BN_add.pod | 6 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 D | BN_mod_mul_montgomery.pod | 31 automatically when L<BN_mod_exp(3)> is called with suitable input,
|
| /freebsd-14.2/crypto/openssl/fuzz/ |
| H A D | bignum.c | 78 OPENSSL_assert(BN_mod_exp(b4, b1, b2, b3, ctx)); in FuzzerTestOneInput()
|
| /freebsd-14.2/crypto/openssl/crypto/ffc/ |
| H A D | ffc_key_validate.c | 81 || !BN_mod_exp(tmp, pub_key, params->q, params->p, ctx)) in ossl_ffc_validate_public_key()
|
| /freebsd-14.2/crypto/openssl/crypto/rsa/ |
| H A D | rsa_sp800_56b_gen.c | 441 && BN_mod_exp(tmp, k, rsa->e, rsa->n, ctx) in ossl_rsa_sp800_56b_pairwise_test() 442 && BN_mod_exp(tmp, tmp, rsa->d, rsa->n, ctx) in ossl_rsa_sp800_56b_pairwise_test()
|
| /freebsd-14.2/contrib/ntp/ntpd/ |
| H A D | ntp_crypto.c | 2283 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() 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() 3078 BN_mod_exp(u, sq, pub_key, p, bctx); in crypto_mv() [all …]
|
| /freebsd-14.2/crypto/openssl/crypto/dsa/ |
| H A D | dsa_key.c | 54 if (!BN_mod_exp(pub_key, dsa->params.g, prk, dsa->params.p, ctx)) in ossl_dsa_generate_public_key()
|
| H A D | dsa_backend.c | 172 if (!BN_mod_exp(dsa_pubkey, dsa_g, dsa_privkey, dsa_p, ctx)) { in ossl_dsa_key_from_pkcs8()
|
| /freebsd-14.2/crypto/openssl/apps/lib/ |
| H A D | tlssrp_depr.c | 40 BN_mod_exp(r, g, p, N, bn_ctx) && in srp_Verify_N_and_g()
|
| /freebsd-14.2/usr.bin/factor/ |
| H A D | factor.c | 280 BN_mod_exp(base, base, i, val, ctx); in pollard_pminus1()
|
| /freebsd-14.2/crypto/openssl/test/ |
| H A D | bntest.c | 1659 if (!TEST_true(BN_mod_exp(ret, a, e, m, ctx)) in file_modexp() 1682 if (!TEST_true(BN_mod_exp(d, a, b, c, ctx)) in file_modexp() 2276 if (!TEST_false(BN_mod_exp(a, BN_value_one(), BN_value_one(), zero, ctx))) in test_badmod() 2332 if (!TEST_true(BN_mod_exp(r, a, zero, BN_value_one(), NULL)) in test_expmodzero() 2374 if (!TEST_true(BN_mod_exp(r, a, p, m, NULL)) in test_expmodone() 2836 if (!TEST_int_eq(BN_mod_exp(result, base, exponent, modulo, ctx), 1)) in test_mod_exp() 2874 if (!TEST_int_eq(BN_mod_exp(result, base, exponent, modulo, ctx), 1)) in test_mod_exp_consttime()
|
| H A D | exptest.c | 68 if (!TEST_true(BN_mod_exp(r, a, p, m, ctx))) in test_mod_exp_zero()
|
| /freebsd-14.2/crypto/openssl/crypto/dh/ |
| H A D | dh_check.c | 188 if (!BN_mod_exp(t1, dh->params.g, dh->params.q, dh->params.p, ctx)) in DH_check()
|
| /freebsd-14.2/lib/libmp/ |
| H A D | mpasbn.c | 530 BN_ERRCHECK("pow", BN_mod_exp(b, bmp->bn, emp->bn, mmp->bn, c)); in mp_pow()
|
| /freebsd-14.2/crypto/openssl/include/openssl/ |
| H A D | bn.h | 305 int BN_mod_exp(BIGNUM *r, const BIGNUM *a, const BIGNUM *p,
|
| /freebsd-14.2/crypto/openssl/crypto/pem/ |
| H A D | pvkfmt.c | 412 if (!BN_mod_exp(pub_key, gbn, priv_key, pbn, ctx)) in ossl_b2i_DSA_after_header()
|
| /freebsd-14.2/crypto/openssl/ |
| H A D | NEWS.md | 418 * BN_mod_exp may produce incorrect results on x86_64 ([CVE-2017-3732]) 541 * BN_mod_exp may produce incorrect results on x86_64 ([CVE-2017-3732]) 595 * BN_mod_exp may produce incorrect results on x86_64 ([CVE-2015-3193])
|
| /freebsd-14.2/secure/lib/libcrypto/ |
| H A D | Version.map | 525 BN_mod_exp;
|
| /freebsd-14.2/contrib/wpa/src/crypto/ |
| H A D | crypto_openssl.c | 791 !BN_mod_exp(tmp, pub, q, p, ctx) || in crypto_dh_derive_secret()
|