Home
last modified time | relevance | path

Searched refs:mont (Results 1 – 25 of 29) sorted by relevance

12

/third_party/openssl/crypto/bn/
Dbn_mont.c23 static int bn_from_montgomery_word(BIGNUM *ret, BIGNUM *r, BN_MONT_CTX *mont);
27 BN_MONT_CTX *mont, BN_CTX *ctx) in BN_mod_mul_montgomery() argument
29 int ret = bn_mul_mont_fixed_top(r, a, b, mont, ctx); in BN_mod_mul_montgomery()
38 BN_MONT_CTX *mont, BN_CTX *ctx) in bn_mul_mont_fixed_top() argument
42 int num = mont->N.top; in bn_mul_mont_fixed_top()
48 if (bn_mul_mont(r->d, a->d, b->d, mont->N.d, mont->n0, num)) { in bn_mul_mont_fixed_top()
75 if (!bn_from_montgomery_word(r, tmp, mont)) in bn_mul_mont_fixed_top()
78 if (!BN_from_montgomery(r, tmp, mont, ctx)) in bn_mul_mont_fixed_top()
88 static int bn_from_montgomery_word(BIGNUM *ret, BIGNUM *r, BN_MONT_CTX *mont) in bn_from_montgomery_word() argument
95 n = &(mont->N); in bn_from_montgomery_word()
[all …]
Dbuild.info9 # OPENSSL_BN_ASM_MONT For any collection with /-mont/ file names
19 $BNASM_x86=bn-586.S co-586.S x86-mont.S x86-gf2m.S
26 x86_64-mont.s x86_64-mont5.s x86_64-gf2m.s rsaz_exp.c rsaz-x86_64.s \
37 $BNASM_ia64=bn-ia64.s ia64-mont.s
39 $BNASM_ia64=bn_asm.c ia64-mont.s
42 $BNASM_sparcv9=asm/sparcv8plus.S sparcv9-mont.S sparcv9a-mont.S vis3-mont.S \
43 sparct4-mont.S bn_sparc.c
50 $BNASM_alpha=bn_asm.c alpha-mont.S
53 $BNASM_mips32=bn-mips.S mips-mont.S
59 $BNASM_s390x=bn_asm.c s390x-mont.S
[all …]
Dbn_exp2.c27 BN_MONT_CTX *mont = NULL; in BN_mod_exp2_mont() local
57 mont = in_mont; in BN_mod_exp2_mont()
59 if ((mont = BN_MONT_CTX_new()) == NULL) in BN_mod_exp2_mont()
61 if (!BN_MONT_CTX_set(mont, m, ctx)) in BN_mod_exp2_mont()
83 if (!BN_to_montgomery(val1[0], a_mod_m, mont, ctx)) in BN_mod_exp2_mont()
86 if (!BN_mod_mul_montgomery(d, val1[0], val1[0], mont, ctx)) in BN_mod_exp2_mont()
92 !BN_mod_mul_montgomery(val1[i], val1[i - 1], d, mont, ctx)) in BN_mod_exp2_mont()
111 if (!BN_to_montgomery(val2[0], a_mod_m, mont, ctx)) in BN_mod_exp2_mont()
114 if (!BN_mod_mul_montgomery(d, val2[0], val2[0], mont, ctx)) in BN_mod_exp2_mont()
120 !BN_mod_mul_montgomery(val2[i], val2[i - 1], d, mont, ctx)) in BN_mod_exp2_mont()
[all …]
Dbn_exp.c304 BN_MONT_CTX *mont = NULL; in BN_mod_exp_mont() local
344 mont = in_mont; in BN_mod_exp_mont()
346 if ((mont = BN_MONT_CTX_new()) == NULL) in BN_mod_exp_mont()
348 if (!BN_MONT_CTX_set(mont, m, ctx)) in BN_mod_exp_mont()
358 if (!bn_to_mont_fixed_top(val[0], aa, mont, ctx)) in BN_mod_exp_mont()
363 if (!bn_mul_mont_fixed_top(d, val[0], val[0], mont, ctx)) in BN_mod_exp_mont()
368 !bn_mul_mont_fixed_top(val[i], val[i - 1], d, mont, ctx)) in BN_mod_exp_mont()
393 if (!bn_to_mont_fixed_top(r, BN_value_one(), mont, ctx)) in BN_mod_exp_mont()
398 if (!bn_mul_mont_fixed_top(r, r, r, mont, ctx)) in BN_mod_exp_mont()
428 if (!bn_mul_mont_fixed_top(r, r, r, mont, ctx)) in BN_mod_exp_mont()
[all …]
Dbn_lib.c39 void BN_set_params(int mult, int high, int low, int mont) in BN_set_params() argument
59 if (mont >= 0) { in BN_set_params()
60 if (mont > (int)(sizeof(int) * 8) - 1) in BN_set_params()
61 mont = sizeof(int) * 8 - 1; in BN_set_params()
62 bn_limit_bits_mont = mont; in BN_set_params()
63 bn_limit_num_mont = 1 << mont; in BN_set_params()
948 int BN_to_montgomery(BIGNUM *r, const BIGNUM *a, BN_MONT_CTX *mont, in BN_to_montgomery() argument
951 return BN_mod_mul_montgomery(r, a, &(mont->RR), mont, ctx); in BN_to_montgomery()
Dbn_prime.c343 BN_MONT_CTX *mont = NULL; in ossl_bn_miller_rabin_is_prime() local
380 mont = BN_MONT_CTX_new(); in ossl_bn_miller_rabin_is_prime()
381 if (mont == NULL || !BN_MONT_CTX_set(mont, w, ctx)) in ossl_bn_miller_rabin_is_prime()
406 if (!BN_mod_exp_mont(z, b, m, w, ctx, mont)) in ossl_bn_miller_rabin_is_prime()
465 BN_MONT_CTX_free(mont); in ossl_bn_miller_rabin_is_prime()
/third_party/openssl/crypto/ec/
Decp_mont.c147 BN_MONT_CTX *mont = NULL; in ossl_ec_GFp_mont_group_set_curve() local
162 mont = BN_MONT_CTX_new(); in ossl_ec_GFp_mont_group_set_curve()
163 if (mont == NULL) in ossl_ec_GFp_mont_group_set_curve()
165 if (!BN_MONT_CTX_set(mont, p, ctx)) { in ossl_ec_GFp_mont_group_set_curve()
172 if (!BN_to_montgomery(one, BN_value_one(), mont, ctx)) in ossl_ec_GFp_mont_group_set_curve()
175 group->field_data1 = mont; in ossl_ec_GFp_mont_group_set_curve()
176 mont = NULL; in ossl_ec_GFp_mont_group_set_curve()
192 BN_MONT_CTX_free(mont); in ossl_ec_GFp_mont_group_set_curve()
/third_party/openssl/doc/man3/
DBN_mod_mul_montgomery.pod14 void BN_MONT_CTX_free(BN_MONT_CTX *mont);
16 int BN_MONT_CTX_set(BN_MONT_CTX *mont, const BIGNUM *m, BN_CTX *ctx);
20 BN_MONT_CTX *mont, BN_CTX *ctx);
22 int BN_from_montgomery(BIGNUM *r, BIGNUM *a, BN_MONT_CTX *mont,
25 int BN_to_montgomery(BIGNUM *r, BIGNUM *a, BN_MONT_CTX *mont,
37 BN_MONT_CTX_set() sets up the I<mont> structure from the modulus I<m>
44 If B<mont> is NULL, nothing is done.
DDSA_meth_new.pod61 BN_MONT_CTX *mont));
65 BN_CTX *ctx, BN_MONT_CTX *mont);
72 BN_MONT_CTX *mont));
/third_party/openssl/crypto/ffc/
Dffc_params_generate.c95 static int generate_unverifiable_g(BN_CTX *ctx, BN_MONT_CTX *mont, BIGNUM *g, in generate_unverifiable_g() argument
108 if (!BN_mod_exp_mont(g, hbn, e, p, ctx, mont)) in generate_unverifiable_g()
132 static int generate_canonical_g(BN_CTX *ctx, BN_MONT_CTX *mont, in generate_canonical_g() argument
174 || !BN_mod_exp_mont(g, tmp, e, p, ctx, mont)) in generate_canonical_g()
524 BN_MONT_CTX *mont = NULL; in ossl_ffc_params_FIPS186_4_gen_verify() local
726 if ((mont = BN_MONT_CTX_new()) == NULL) in ossl_ffc_params_FIPS186_4_gen_verify()
728 if (!BN_MONT_CTX_set(mont, p, ctx)) in ossl_ffc_params_FIPS186_4_gen_verify()
732 && !ossl_ffc_params_validate_unverifiable_g(ctx, mont, p, q, params->g, in ossl_ffc_params_FIPS186_4_gen_verify()
748 if (!generate_canonical_g(ctx, mont, md, g, tmp, p, e, in ossl_ffc_params_FIPS186_4_gen_verify()
759 if (!generate_unverifiable_g(ctx, mont, g, tmp, p, e, pm1, &hret)) in ossl_ffc_params_FIPS186_4_gen_verify()
[all …]
Dffc_params_validate.c23 int ossl_ffc_params_validate_unverifiable_g(BN_CTX *ctx, BN_MONT_CTX *mont, in ossl_ffc_params_validate_unverifiable_g() argument
43 if (!BN_mod_exp_mont(tmp, g, q, p, ctx, mont)) in ossl_ffc_params_validate_unverifiable_g()
/third_party/openssl/crypto/dh/
Ddh_key.c43 BN_MONT_CTX *mont = NULL; in ossl_dh_compute_key() local
78 mont = BN_MONT_CTX_set_locked(&dh->method_mont_p, in ossl_dh_compute_key()
81 if (!mont) in ossl_dh_compute_key()
87 mont)) { in ossl_dh_compute_key()
231 BN_MONT_CTX *mont = NULL; in ossl_dh_generate_public_key() local
246 mont = BN_MONT_CTX_set_locked(pmont, dh->lock, dh->params.p, ctx); in ossl_dh_generate_public_key()
247 if (mont == NULL) in ossl_dh_generate_public_key()
254 ctx, mont)) in ossl_dh_generate_public_key()
/third_party/openssl/ohos_lite/include/crypto/
Dbn.h74 BN_MONT_CTX *mont, BN_CTX *ctx);
75 int bn_to_mont_fixed_top(BIGNUM *r, const BIGNUM *a, BN_MONT_CTX *mont,
77 int bn_from_mont_fixed_top(BIGNUM *r, const BIGNUM *a, BN_MONT_CTX *mont,
/third_party/openssl/test/
Dbntest.c457 BN_MONT_CTX *mont = NULL; in test_modexp_mont5() local
468 || !TEST_ptr(mont = BN_MONT_CTX_new())) in test_modexp_mont5()
501 if (!(TEST_true(BN_MONT_CTX_set(mont, n, ctx)) in test_modexp_mont5()
502 && TEST_true(BN_mod_mul_montgomery(c, a, b, mont, ctx)) in test_modexp_mont5()
503 && TEST_true(BN_mod_mul_montgomery(d, b, a, mont, ctx)) in test_modexp_mont5()
513 && TEST_true(BN_MONT_CTX_set(mont, n, ctx)) in test_modexp_mont5()
514 && TEST_true(BN_mod_mul_montgomery(c, a, a, mont, ctx)) in test_modexp_mont5()
515 && TEST_true(BN_mod_mul_montgomery(d, a, b, mont, ctx)) in test_modexp_mont5()
558 && TEST_true(BN_MONT_CTX_set(mont, n, ctx)))) in test_modexp_mont5()
561 if (!TEST_true(BN_mod_mul_montgomery(c, a, a, mont, ctx)) in test_modexp_mont5()
[all …]
/third_party/openssl/providers/
Dfips.module.sources32 crypto/bn/asm/alpha-mont.pl
34 crypto/bn/asm/armv4-mont.pl
35 crypto/bn/asm/armv8-mont.pl
39 crypto/bn/asm/ia64-mont.pl
41 crypto/bn/asm/mips-mont.pl
43 crypto/bn/asm/parisc-mont.pl
44 crypto/bn/asm/ppc-mont.pl
46 crypto/bn/asm/ppc64-mont-fixed.pl
47 crypto/bn/asm/ppc64-mont.pl
52 crypto/bn/asm/s390x-mont.pl
[all …]
Dfips-sources.checksums32 819c9fd2b0cae9aab81c3cbd1815c2e22949d75f132f649b5883812d0bbaa39a crypto/bn/asm/alpha-mont.pl
34 8c1c53a725b8a4f92b8a353bfeeb393be94198df41c912e3270f9e654417b250 crypto/bn/asm/armv4-mont.pl
35 8d6192337fedb0012764229d600634f8357c3b74fd38bcbfe8b86ddc6ca96ea2 crypto/bn/asm/armv8-mont.pl
39 199b9b100f194a2a128c14f2a71be5a04d50d069666d90ca5b69baee1318ccb7 crypto/bn/asm/ia64-mont.pl
41 687c5d6606fdfd0e242005972d15db74a9cbac2b8a9a54a56fcb1e99d3880ff3 crypto/bn/asm/mips-mont.pl
43 b27ec5181e387e812925bb26823b830f49d7a6e4971b6d11ea583f5632a1504b crypto/bn/asm/parisc-mont.pl
44 9973523b361db963eea4938a7a8a3adc692e1a4e1aec4fa1f1e57dc93da37921 crypto/bn/asm/ppc-mont.pl
46 e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 crypto/bn/asm/ppc64-mont-fixed.pl
47 a25be64867ab837d93855af232e2bfa71b85b2c6f00e35e620fdc5618187fb6f crypto/bn/asm/ppc64-mont.pl
52 590388d69d7ac3a0e9af4014792f4f0fdb9552719e8fb48ebc7e5dfca2a491d4 crypto/bn/asm/s390x-mont.pl
[all …]
/third_party/openssl/include/crypto/
Dbn.h75 BN_MONT_CTX *mont, BN_CTX *ctx);
76 int bn_to_mont_fixed_top(BIGNUM *r, const BIGNUM *a, BN_MONT_CTX *mont,
78 int bn_from_mont_fixed_top(BIGNUM *r, const BIGNUM *a, BN_MONT_CTX *mont,
/third_party/openssl/crypto/dsa/
Ddsa_ossl.c323 BN_MONT_CTX *mont = NULL; in dsa_do_verify() local
391 mont = BN_MONT_CTX_set_locked(&dsa->method_mont_p, in dsa_do_verify()
393 if (!mont) in dsa_do_verify()
399 dsa->params.p, ctx, mont)) in dsa_do_verify()
403 dsa->params.p, ctx, mont)) in dsa_do_verify()
/third_party/openssl/ohos_lite/include/openssl/
Dbn.h361 BN_MONT_CTX *mont, BN_CTX *ctx);
362 int BN_to_montgomery(BIGNUM *r, const BIGNUM *a, BN_MONT_CTX *mont,
364 int BN_from_montgomery(BIGNUM *r, const BIGNUM *a, BN_MONT_CTX *mont,
366 void BN_MONT_CTX_free(BN_MONT_CTX *mont);
367 int BN_MONT_CTX_set(BN_MONT_CTX *mont, const BIGNUM *mod, BN_CTX *ctx);
402 DEPRECATEDIN_0_9_8(void BN_set_params(int mul, int high, int low, int mont))
/third_party/openssl/include/openssl/
Dbn.h403 BN_MONT_CTX *mont, BN_CTX *ctx);
404 int BN_to_montgomery(BIGNUM *r, const BIGNUM *a, BN_MONT_CTX *mont,
406 int BN_from_montgomery(BIGNUM *r, const BIGNUM *a, BN_MONT_CTX *mont,
408 void BN_MONT_CTX_free(BN_MONT_CTX *mont);
409 int BN_MONT_CTX_set(BN_MONT_CTX *mont, const BIGNUM *mod, BN_CTX *ctx);
445 void BN_set_params(int mul, int high, int low, int mont);
/third_party/elfutils/tests/
Drun-readelf-A.sh83 …2,v8plus,vis,asi_blk_init,vis3,random,fjfmau,asi_cache_sparing,des,camellia,sha1,sha512,mont,cbcond
/third_party/openssl/include/internal/
Dffc.h184 int ossl_ffc_params_validate_unverifiable_g(BN_CTX *ctx, BN_MONT_CTX *mont,
/third_party/openssl/
DBUILD.gn67 "${openssl_selected_platform_full_path}/crypto/bn/armv4-mont.S",
82 "${openssl_selected_platform_full_path}/crypto/bn/armv8-mont.S",
105 "${openssl_selected_platform_full_path}/crypto/bn/x86_64-mont.s",
131 "${openssl_selected_platform_full_path}/crypto/bn/armv8-mont.S",
154 "${openssl_selected_platform_full_path}/crypto/bn/x86_64-mont.s",
188 "${openssl_selected_platform_full_path}/crypto/bn/x86_64-mont.s",
/third_party/icu/icu4c/source/data/curr/
Dfr.txt256 "dinar serbo-monténégrin",
1481 one{"dinar serbo-monténégrin"}
1482 other{"dinars serbo-monténégrins"}
/third_party/flutter/skia/third_party/externals/icu/source/data/curr/
Dfr.txt255 "dinar serbo-monténégrin",
1480 one{"dinar serbo-monténégrin"}
1481 other{"dinars serbo-monténégrins"}

12