/third_party/openssl/test/ |
H A D | exptest.c | 86 if (!TEST_true(BN_mod_exp_mont(r, a, p, m, ctx, NULL))) in test_mod_exp_zero() 89 if (!TEST_true(a_is_zero_mod_one("BN_mod_exp_mont", r, a))) 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() 122 if (!TEST_true(a_is_zero_mod_one("BN_mod_exp_mont", r, a))) 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 D | bntest.c | 596 && TEST_true(BN_mod_exp_mont(d, a, b, n, ctx, mont)) in test_modexp_mont5() 1656 if (!TEST_true(BN_mod_exp_mont(ret, a, e, m, ctx, NULL)) in file_modexp() 2272 if (!TEST_false(BN_mod_exp_mont(a, BN_value_one(), BN_value_one(), in test_badmod() 2294 if (!TEST_false(BN_mod_exp_mont(a, BN_value_one(), BN_value_one(), in test_badmod() 2326 || !TEST_true(BN_mod_exp_mont(r, a, zero, BN_value_one(), in test_expmodzero() 2368 || !TEST_true(BN_mod_exp_mont(r, a, p, m, NULL, NULL)) in test_expmodone()
|
/third_party/node/deps/openssl/openssl/crypto/rsa/ |
H A D | rsa_ossl.c | 40 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()
|
/third_party/openssl/crypto/rsa/ |
H A D | rsa_ossl.c | 40 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()
|
/third_party/node/deps/openssl/openssl/crypto/ffc/ |
H A D | ffc_params_validate.c | 43 if (!BN_mod_exp_mont(tmp, g, q, p, ctx, mont)) in ossl_ffc_params_validate_unverifiable_g()
|
H A D | ffc_params_generate.c | 108 if (!BN_mod_exp_mont(g, hbn, e, p, ctx, mont)) in generate_unverifiable_g() 129 * mont is used in a BN_mod_exp_mont() with a modulus of p. 174 || !BN_mod_exp_mont(g, tmp, e, p, ctx, mont)) in generate_canonical_g()
|
/third_party/openssl/crypto/ffc/ |
H A D | ffc_params_validate.c | 43 if (!BN_mod_exp_mont(tmp, g, q, p, ctx, mont)) in ossl_ffc_params_validate_unverifiable_g()
|
H A D | ffc_params_generate.c | 108 if (!BN_mod_exp_mont(g, hbn, e, p, ctx, mont)) in generate_unverifiable_g() 129 * mont is used in a BN_mod_exp_mont() with a modulus of p. 174 || !BN_mod_exp_mont(g, tmp, e, p, ctx, mont)) in generate_canonical_g()
|
/third_party/node/deps/openssl/openssl/crypto/dsa/ |
H A D | dsa_ossl.c | 307 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()
|
/third_party/openssl/crypto/dsa/ |
H A D | dsa_ossl.c | 307 if (!BN_mod_exp_mont(r, dsa->params.g, k, dsa->params.p, ctx, in dsa_sign_setup() 475 && BN_mod_exp_mont(r, k, e, q, ctx, NULL)) in dsa_mod_inverse_fermat()
|
/third_party/node/deps/openssl/openssl/crypto/ec/ |
H A D | ecp_mont.c | 250 if (!BN_mod_exp_mont(r, a, e, group->field, ctx, group->field_data1)) in ossl_ec_GFp_mont_field_inv()
|
H A D | ec_lib.c | 1268 if (!BN_mod_exp_mont(r, x, e, group->order, ctx, group->mont_data)) in ec_field_inverse_mod_ord()
|
/third_party/openssl/crypto/ec/ |
H A D | ecp_mont.c | 250 if (!BN_mod_exp_mont(r, a, e, group->field, ctx, group->field_data1)) in ossl_ec_GFp_mont_field_inv()
|
H A D | ec_lib.c | 1268 if (!BN_mod_exp_mont(r, x, e, group->order, ctx, group->mont_data)) in ec_field_inverse_mod_ord()
|
/third_party/node/deps/openssl/openssl/crypto/bn/ |
H A D | bn_prime.c | 406 if (!BN_mod_exp_mont(z, b, m, w, ctx, mont)) in ossl_bn_miller_rabin_is_prime()
|
H A D | bn_exp.c | 56 /* BN_FLG_CONSTTIME only supported by BN_mod_exp_mont() */ in BN_exp() 121 * BN_mod_exp_mont 33 .. 40 % [AMD K6-2, Linux, debug configuration] in BN_mod_exp() 128 * On the Sparc, BN_mod_exp_recp was faster than BN_mod_exp_mont in BN_mod_exp() 152 ret = BN_mod_exp_mont(r, a, p, m, ctx, NULL); in BN_mod_exp() 182 /* BN_FLG_CONSTTIME only supported by BN_mod_exp_mont() */ in BN_mod_exp_recp() 312 int BN_mod_exp_mont(BIGNUM *rr, const BIGNUM *a, const BIGNUM *p, in BN_mod_exp_mont() function 603 * This variant of BN_mod_exp_mont() uses fixed windows and the special 639 return BN_mod_exp_mont(rr, a, p, m, ctx, in_mont); in BN_mod_exp_mont_consttime() 1191 /* BN_FLG_CONSTTIME only supported by BN_mod_exp_mont() */ in BN_mod_exp_mont_word() 1323 /* BN_FLG_CONSTTIME only supported by BN_mod_exp_mont() */ in BN_mod_exp_simple() [all...] |
/third_party/node/deps/openssl/openssl/crypto/dh/ |
H A D | dh_key.c | 193 return BN_mod_exp_mont(r, a, p, m, ctx, m_ctx); in dh_bn_mod_exp()
|
/third_party/openssl/crypto/bn/ |
H A D | bn_prime.c | 406 if (!BN_mod_exp_mont(z, b, m, w, ctx, mont)) in ossl_bn_miller_rabin_is_prime()
|
H A D | bn_exp.c | 56 /* BN_FLG_CONSTTIME only supported by BN_mod_exp_mont() */ in BN_exp() 121 * BN_mod_exp_mont 33 .. 40 % [AMD K6-2, Linux, debug configuration] in BN_mod_exp() 128 * On the Sparc, BN_mod_exp_recp was faster than BN_mod_exp_mont in BN_mod_exp() 152 ret = BN_mod_exp_mont(r, a, p, m, ctx, NULL); in BN_mod_exp() 182 /* BN_FLG_CONSTTIME only supported by BN_mod_exp_mont() */ in BN_mod_exp_recp() 304 int BN_mod_exp_mont(BIGNUM *rr, const BIGNUM *a, const BIGNUM *p, in BN_mod_exp_mont() function 595 * This variant of BN_mod_exp_mont() uses fixed windows and the special 631 return BN_mod_exp_mont(rr, a, p, m, ctx, in_mont); in BN_mod_exp_mont_consttime() 1183 /* BN_FLG_CONSTTIME only supported by BN_mod_exp_mont() */ in BN_mod_exp_mont_word() 1315 /* BN_FLG_CONSTTIME only supported by BN_mod_exp_mont() */ in BN_mod_exp_simple() [all...] |
/third_party/openssl/crypto/dh/ |
H A D | dh_key.c | 193 return BN_mod_exp_mont(r, a, p, m, ctx, m_ctx); in dh_bn_mod_exp()
|
/third_party/openssl/ohos_lite/include/openssl/ |
H A D | bn.h | 57 * BN_mod_exp_mont() will call BN_mod_exp_mont_consttime, 283 int BN_mod_exp_mont(BIGNUM *r, const BIGNUM *a, const BIGNUM *p,
|
/third_party/node/deps/openssl/openssl/include/openssl/ |
H A D | bn.h | 63 * BN_mod_exp_mont() will call BN_mod_exp_mont_consttime, 307 int BN_mod_exp_mont(BIGNUM *r, const BIGNUM *a, const BIGNUM *p,
|
/third_party/openssl/include/openssl/ |
H A D | bn.h | 63 * BN_mod_exp_mont() will call BN_mod_exp_mont_consttime, 307 int BN_mod_exp_mont(BIGNUM *r, const BIGNUM *a, const BIGNUM *p,
|