Home
last modified time | relevance | path

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

/external/boringssl/src/crypto/ec/
Dec_montgomery.c81 group->mont = NULL; in ec_GFp_mont_group_init()
87 BN_MONT_CTX_free(group->mont); in ec_GFp_mont_group_finish()
88 group->mont = NULL; in ec_GFp_mont_group_finish()
95 BN_MONT_CTX_free(group->mont); in ec_GFp_mont_group_clear_finish()
96 group->mont = NULL; in ec_GFp_mont_group_clear_finish()
103 BN_MONT_CTX_free(dest->mont); in ec_GFp_mont_group_copy()
104 dest->mont = NULL; in ec_GFp_mont_group_copy()
112 if (src->mont != NULL) { in ec_GFp_mont_group_copy()
113 dest->mont = BN_MONT_CTX_new(); in ec_GFp_mont_group_copy()
114 if (dest->mont == NULL) { in ec_GFp_mont_group_copy()
[all …]
Dinternal.h152 BN_MONT_CTX *mont; /* Montgomery structure. */ member
/external/boringssl/src/crypto/bn/
Dmontgomery.c141 void BN_MONT_CTX_free(BN_MONT_CTX *mont) { in BN_MONT_CTX_free() argument
142 if (mont == NULL) { in BN_MONT_CTX_free()
146 BN_free(&mont->RR); in BN_MONT_CTX_free()
147 BN_free(&mont->N); in BN_MONT_CTX_free()
148 OPENSSL_free(mont); in BN_MONT_CTX_free()
165 int BN_MONT_CTX_set(BN_MONT_CTX *mont, const BIGNUM *mod, BN_CTX *ctx) { in BN_MONT_CTX_set() argument
181 R = &mont->RR; /* grab RR as a temp */ in BN_MONT_CTX_set()
182 if (!BN_copy(&mont->N, mod)) { in BN_MONT_CTX_set()
185 mont->N.neg = 0; in BN_MONT_CTX_set()
238 mont->n0[0] = (Ri->top > 0) ? Ri->d[0] : 0; in BN_MONT_CTX_set()
[all …]
DCMakeLists.txt7 x86_64-mont.${ASM_EXT}
22 x86-mont.${ASM_EXT}
30 armv4-mont.${ASM_EXT}
38 armv8-mont.${ASM_EXT}
69 perlasm(x86_64-mont.${ASM_EXT} asm/x86_64-mont.pl)
75 perlasm(x86-mont.${ASM_EXT} asm/x86-mont.pl)
76 perlasm(armv4-mont.${ASM_EXT} asm/armv4-mont.pl)
77 perlasm(armv8-mont.${ASM_EXT} asm/armv8-mont.pl)
Dexponentiation.c620 const BIGNUM *m, BN_CTX *ctx, const BN_MONT_CTX *mont) { in BN_mod_exp_mont() argument
630 return BN_mod_exp_mont_consttime(rr, a, p, m, ctx, mont); in BN_mod_exp_mont()
656 if (mont == NULL) { in BN_mod_exp_mont()
661 mont = new_mont; in BN_mod_exp_mont()
678 if (!BN_to_montgomery(val[0], aa, mont, ctx)) { in BN_mod_exp_mont()
684 if (!BN_mod_mul_montgomery(d, val[0], val[0], mont, ctx)) { in BN_mod_exp_mont()
690 !BN_mod_mul_montgomery(val[i], val[i - 1], d, mont, ctx)) { in BN_mod_exp_mont()
715 } else if (!BN_to_montgomery(r, BN_value_one(), mont, ctx)) { in BN_mod_exp_mont()
724 if (!start && !BN_mod_mul_montgomery(r, r, r, mont, ctx)) { in BN_mod_exp_mont()
755 if (!BN_mod_mul_montgomery(r, r, r, mont, ctx)) { in BN_mod_exp_mont()
[all …]
Dprime.c333 const BIGNUM *a1_odd, int k, BN_CTX *ctx, BN_MONT_CTX *mont);
480 BN_MONT_CTX *mont = NULL; in BN_is_prime_fasttest_ex() local
557 mont = BN_MONT_CTX_new(); in BN_is_prime_fasttest_ex()
558 if (mont == NULL) { in BN_is_prime_fasttest_ex()
561 if (!BN_MONT_CTX_set(mont, A, ctx)) { in BN_is_prime_fasttest_ex()
574 j = witness(check, A, A1, A1_odd, k, ctx, mont); in BN_is_prime_fasttest_ex()
595 if (mont != NULL) { in BN_is_prime_fasttest_ex()
596 BN_MONT_CTX_free(mont); in BN_is_prime_fasttest_ex()
604 BN_MONT_CTX *mont) { in witness() argument
605 if (!BN_mod_exp_mont(w, w, a1_odd, a, ctx, mont)) { /* w := w^a1_odd mod a */ in witness()
Dbn_test.cc894 ScopedBN_MONT_CTX mont(BN_MONT_CTX_new()); in test_mont() local
895 if (!a || !b || !c || !d || !A || !B || !n || !mont) { in test_mont()
900 if (BN_MONT_CTX_set(mont.get(), n.get(), ctx)) { in test_mont()
909 if (BN_MONT_CTX_set(mont.get(), n.get(), ctx)) { in test_mont()
927 !BN_MONT_CTX_set(mont.get(), n.get(), ctx) || in test_mont()
930 !BN_to_montgomery(A.get(), a.get(), mont.get(), ctx) || in test_mont()
931 !BN_to_montgomery(B.get(), b.get(), mont.get(), ctx) || in test_mont()
932 !BN_mod_mul_montgomery(c.get(), A.get(), B.get(), mont.get(), ctx) || in test_mont()
933 !BN_from_montgomery(A.get(), c.get(), mont.get(), ctx)) { in test_mont()
941 BN_print_fp(fp, &mont->N); in test_mont()
[all …]
/external/boringssl/src/crypto/rsa/
Dblinding.c132 const BN_MONT_CTX *mont; member
134 const BIGNUM *m, BN_CTX *ctx, const BN_MONT_CTX *mont);
289 const BIGNUM *m, BN_CTX *ctx, const BN_MONT_CTX *mont), in BN_BLINDING_create_param() argument
290 const BN_MONT_CTX *mont) { in BN_BLINDING_create_param()
322 if (mont != NULL) { in BN_BLINDING_create_param()
323 ret->mont = mont; in BN_BLINDING_create_param()
348 if (ret->bn_mod_exp != NULL && ret->mont != NULL) { in BN_BLINDING_create_param()
349 if (!ret->bn_mod_exp(ret->A, ret->A, ret->e, ret->mod, ctx, ret->mont)) { in BN_BLINDING_create_param()
Dinternal.h109 const BIGNUM *m, BN_CTX *ctx, const BN_MONT_CTX *mont),
110 const BN_MONT_CTX *mont);
154 BN_MONT_CTX *mont; member
Drsa_impl.c749 !BN_MONT_CTX_set_locked(&ap->mont, &rsa->lock, prime, ctx)) { in mod_exp()
753 if (!rsa->meth->bn_mod_exp(m1, r1, exp, prime, ctx, ap->mont)) { in mod_exp()
Drsa.c121 BN_MONT_CTX_free(ap->mont); in RSA_additional_prime_free()
/external/boringssl/src/crypto/dh/
Ddh.c239 BN_MONT_CTX *mont = NULL; in DH_generate_key() local
272 mont = BN_MONT_CTX_set_locked(&dh->method_mont_p, &dh->method_mont_p_lock, in DH_generate_key()
274 if (!mont) { in DH_generate_key()
296 if (!BN_mod_exp_mont(pub_key, dh->g, &local_priv, dh->p, ctx, mont)) { in DH_generate_key()
321 BN_MONT_CTX *mont = NULL; in DH_compute_key() local
347 mont = BN_MONT_CTX_set_locked(&dh->method_mont_p, &dh->method_mont_p_lock, in DH_compute_key()
349 if (!mont) { in DH_compute_key()
360 mont)) { in DH_compute_key()
/external/boringssl/src/include/openssl/
Dbn.h738 OPENSSL_EXPORT void BN_MONT_CTX_free(BN_MONT_CTX *mont);
747 OPENSSL_EXPORT int BN_MONT_CTX_set(BN_MONT_CTX *mont, const BIGNUM *mod,
761 const BN_MONT_CTX *mont, BN_CTX *ctx);
766 const BN_MONT_CTX *mont, BN_CTX *ctx);
773 const BN_MONT_CTX *mont, BN_CTX *ctx);
793 const BN_MONT_CTX *mont);
798 const BN_MONT_CTX *mont);
802 const BN_MONT_CTX *mont);
806 BN_CTX *ctx, const BN_MONT_CTX *mont);
Drsa.h528 const BN_MONT_CTX *mont);
/external/boringssl/src/crypto/dsa/
Ddsa.c143 BN_MONT_CTX *mont = NULL; in DSA_generate_parameters_ex() local
179 mont = BN_MONT_CTX_new(); in DSA_generate_parameters_ex()
180 if (mont == NULL) { in DSA_generate_parameters_ex()
342 !BN_MONT_CTX_set(mont, p, ctx)) { in DSA_generate_parameters_ex()
348 if (!BN_mod_exp_mont(g, test, r0, p, ctx, mont)) { in DSA_generate_parameters_ex()
391 BN_MONT_CTX_free(mont); in DSA_generate_parameters_ex()
582 BN_MONT_CTX *mont = NULL; in DSA_do_check_signature() local
653 mont = BN_MONT_CTX_set_locked((BN_MONT_CTX **)&dsa->method_mont_p, in DSA_do_check_signature()
656 if (!mont) { in DSA_do_check_signature()
661 mont)) { in DSA_do_check_signature()
/external/boringssl/
Dsources.mk334 linux-aarch64/crypto/bn/armv8-mont.S\
344 linux-arm/crypto/bn/armv4-mont.S\
361 linux-x86/crypto/bn/x86-mont.S\
376 linux-x86_64/crypto/bn/x86_64-mont.S\
394 mac-x86/crypto/bn/x86-mont.S\
409 mac-x86_64/crypto/bn/x86_64-mont.S\
427 win-x86/crypto/bn/x86-mont.asm\
442 win-x86_64/crypto/bn/x86_64-mont.asm\
/external/svox/pico/tests/data/
Dxsampa_pico_man_fr-FR.txt45 # TEST m mont "mO~
/external/icu/icu4c/source/data/curr/
Dfr.txt253 "dinar serbo-monténégrin",
1456 one{"dinar serbo-monténégrin"}
1457 other{"dinars serbo-monténégrins"}
/external/svox/pico_resources/tools/LingwareBuilding/PicoLingware_source_files/textana/fr-FR/
Dfr-FR_lexpos.utf1188 ADJ_SG^V_PART "monté" :G2P
1189 ADJ_SG^V_PART "montée" :G2P
/external/e2fsprogs/po/
Des.po1146 msgstr "La última vez que se montó el superbloque es en el futuro. "
Dpl.po4037 "\t[-g bloków-w-grupie] [-L etykieta-wolumenu] [-M ost.-mont.-katalog]\n"
/external/hyphenation-patterns/hu/
Dhyph-hu.pat.txt1741 2adémont
41020mont