Home
last modified time | relevance | path

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

/freebsd/crypto/openssl/doc/man3/
H A DBN_mod_exp_mont.pod5 BN_mod_exp_mont, BN_mod_exp_mont_consttime, BN_mod_exp_mont_consttime_x2 -
12 int BN_mod_exp_mont(BIGNUM *rr, const BIGNUM *a, const BIGNUM *p,
28 BN_mod_exp_mont() computes I<a> to the I<p>-th power modulo I<m> (C<rr=a^p % m>)
35 L<BN_mod_exp_mont(3)> that uses fixed windows and the special precomputation
37 It is called automatically when L<BN_mod_exp_mont(3)> is called with parameters
54 L<ERR_get_error(3)>, L<BN_mod_exp_mont(3)>
H A DBN_BLINDING_new.pod87 (normally BN_mod_exp_mont() and B<BN_MONT_CTX>).
/freebsd/crypto/openssl/test/
H A Dexptest.c86 if (!TEST_true(BN_mod_exp_mont(r, a, p, m, ctx, NULL))) in test_mod_exp_zero()
105 if (!TEST_false(BN_mod_exp_mont(r, p, a, m, ctx, mont))) in test_mod_exp_zero()
119 if (!TEST_true(BN_mod_exp_mont(r, p, a, m, ctx, mont))) in test_mod_exp_zero()
199 || !TEST_true(BN_mod_exp_mont(r_mont, a, b, m, ctx, NULL)) in test_mod_exp()
H A Dbntest.c596 && TEST_true(BN_mod_exp_mont(d, a, b, n, ctx, mont)) in test_modexp_mont5()
1664 if (!TEST_true(BN_mod_exp_mont(ret, a, e, m, ctx, NULL)) in file_modexp()
2280 if (!TEST_false(BN_mod_exp_mont(a, BN_value_one(), BN_value_one(), in test_badmod()
2302 if (!TEST_false(BN_mod_exp_mont(a, BN_value_one(), BN_value_one(), in test_badmod()
2334 || !TEST_true(BN_mod_exp_mont(r, a, zero, BN_value_one(), in test_expmodzero()
2376 || !TEST_true(BN_mod_exp_mont(r, a, p, m, NULL, NULL)) in test_expmodone()
/freebsd/crypto/openssl/crypto/rsa/
H A Drsa_ossl.c40 BN_mod_exp_mont, /* XXX probably we should not use Montgomery
669 smooth = (rsa->meth->bn_mod_exp == BN_mod_exp_mont) in rsa_ossl_mod_exp()
914 if (rsa->meth->bn_mod_exp == BN_mod_exp_mont) { in rsa_ossl_mod_exp()
915 if (!BN_mod_exp_mont(vrfy, r0, rsa->e, rsa->n, ctx, in rsa_ossl_mod_exp()
/freebsd/crypto/openssl/crypto/ffc/
H A Dffc_params_validate.c43 if (!BN_mod_exp_mont(tmp, g, q, p, ctx, mont)) in ossl_ffc_params_validate_unverifiable_g()
H A Dffc_params_generate.c108 if (!BN_mod_exp_mont(g, hbn, e, p, ctx, mont)) in generate_unverifiable_g()
174 || !BN_mod_exp_mont(g, tmp, e, p, ctx, mont)) in generate_canonical_g()
/freebsd/crypto/openssl/crypto/dsa/
H A Ddsa_ossl.c307 if (!BN_mod_exp_mont(r, dsa->params.g, k, dsa->params.p, ctx, in dsa_sign_setup()
474 && BN_mod_exp_mont(r, k, e, q, ctx, NULL)) in dsa_mod_inverse_fermat()
/freebsd/crypto/openssl/crypto/ec/
H A Decp_mont.c250 if (!BN_mod_exp_mont(r, a, e, group->field, ctx, group->field_data1)) in ossl_ec_GFp_mont_field_inv()
H A Dec_lib.c1268 if (!BN_mod_exp_mont(r, x, e, group->order, ctx, group->mont_data)) in ec_field_inverse_mod_ord()
/freebsd/crypto/openssl/crypto/dh/
H A Ddh_key.c193 return BN_mod_exp_mont(r, a, p, m, ctx, m_ctx); in dh_bn_mod_exp()
/freebsd/crypto/openssl/crypto/bn/
H A Dbn_exp.c152 ret = BN_mod_exp_mont(r, a, p, m, ctx, NULL); in BN_mod_exp()
312 int BN_mod_exp_mont(BIGNUM *rr, const BIGNUM *a, const BIGNUM *p, in BN_mod_exp_mont() function
639 return BN_mod_exp_mont(rr, a, p, m, ctx, in_mont); in BN_mod_exp_mont_consttime()
H A Dbn_prime.c406 if (!BN_mod_exp_mont(z, b, m, w, ctx, mont)) in ossl_bn_miller_rabin_is_prime()
/freebsd/crypto/openssl/include/openssl/
H A Dbn.h307 int BN_mod_exp_mont(BIGNUM *r, const BIGNUM *a, const BIGNUM *p,
/freebsd/crypto/openssl/util/
H A Dmissingcrypto111.txt282 BN_mod_exp_mont(3)
H A Dlibcrypto.num718 BN_mod_exp_mont 738 3_0_0 EXIST::FUNCTION:
/freebsd/crypto/openssl/doc/
H A Dbuild.info726 DEPEND[html/man3/BN_mod_exp_mont.html]=man3/BN_mod_exp_mont.pod
727 GENERATE[html/man3/BN_mod_exp_mont.html]=man3/BN_mod_exp_mont.pod
728 DEPEND[man/man3/BN_mod_exp_mont.3]=man3/BN_mod_exp_mont.pod
729 GENERATE[man/man3/BN_mod_exp_mont.3]=man3/BN_mod_exp_mont.pod
2967 html/man3/BN_mod_exp_mont.html \
3575 man/man3/BN_mod_exp_mont.3 \
/freebsd/secure/lib/libcrypto/man/man3/
H A DMakefile65 MAN+= BN_mod_exp_mont.3
1037 MLINKS+= BN_mod_exp_mont.3 BN_mod_exp_mont_consttime.3
1038 MLINKS+= BN_mod_exp_mont.3 BN_mod_exp_mont_consttime_x2.3
/freebsd/secure/lib/libcrypto/
H A DVersion.map526 BN_mod_exp_mont;