/external/openssl/crypto/bn/ |
D | bn_mont.c | 126 static int BN_from_montgomery_word(BIGNUM *ret, BIGNUM *r, BN_MONT_CTX *mont); 130 BN_MONT_CTX *mont, BN_CTX *ctx) in BN_mod_mul_montgomery() argument 135 int num = mont->N.top; in BN_mod_mul_montgomery() 140 if (bn_mul_mont(r->d,a->d,b->d,mont->N.d,mont->n0,num)) in BN_mod_mul_montgomery() 165 if (!BN_from_montgomery_word(r,tmp,mont)) goto err; in BN_mod_mul_montgomery() 167 if (!BN_from_montgomery(r,tmp,mont,ctx)) goto err; in BN_mod_mul_montgomery() 177 static int BN_from_montgomery_word(BIGNUM *ret, BIGNUM *r, BN_MONT_CTX *mont) in BN_from_montgomery_word() argument 183 n= &(mont->N); in BN_from_montgomery_word() 186 al=ri=mont->ri/BN_BITS2; in BN_from_montgomery_word() 208 n0=mont->n0[0]; in BN_from_montgomery_word() [all …]
|
D | bn_exp2.c | 128 BN_MONT_CTX *mont=NULL; in BN_mod_exp2_mont() local 159 mont=in_mont; in BN_mod_exp2_mont() 162 if ((mont=BN_MONT_CTX_new()) == NULL) goto err; in BN_mod_exp2_mont() 163 if (!BN_MONT_CTX_set(mont,m,ctx)) goto err; in BN_mod_exp2_mont() 187 if (!BN_to_montgomery(val1[0],a_mod_m,mont,ctx)) goto err; in BN_mod_exp2_mont() 190 if (!BN_mod_mul_montgomery(d,val1[0],val1[0],mont,ctx)) goto err; in BN_mod_exp2_mont() 197 d,mont,ctx)) in BN_mod_exp2_mont() 220 if (!BN_to_montgomery(val2[0],a_mod_m,mont,ctx)) goto err; in BN_mod_exp2_mont() 223 if (!BN_mod_mul_montgomery(d,val2[0],val2[0],mont,ctx)) goto err; in BN_mod_exp2_mont() 230 d,mont,ctx)) in BN_mod_exp2_mont() [all …]
|
D | bn_exp.c | 381 BN_MONT_CTX *mont=NULL; in BN_mod_exp_mont() local 414 mont=in_mont; in BN_mod_exp_mont() 417 if ((mont=BN_MONT_CTX_new()) == NULL) goto err; in BN_mod_exp_mont() 418 if (!BN_MONT_CTX_set(mont,m,ctx)) goto err; in BN_mod_exp_mont() 435 if (!BN_to_montgomery(val[0],aa,mont,ctx)) goto err; /* 1 */ in BN_mod_exp_mont() 440 if (!BN_mod_mul_montgomery(d,val[0],val[0],mont,ctx)) goto err; /* 2 */ in BN_mod_exp_mont() 446 d,mont,ctx)) in BN_mod_exp_mont() 458 if (!BN_to_montgomery(r,BN_value_one(),mont,ctx)) goto err; in BN_mod_exp_mont() 465 if (!BN_mod_mul_montgomery(r,r,r,mont,ctx)) in BN_mod_exp_mont() 496 if (!BN_mod_mul_montgomery(r,r,r,mont,ctx)) in BN_mod_exp_mont() [all …]
|
D | bn_prime.c | 130 const BIGNUM *a1_odd, int k, BN_CTX *ctx, BN_MONT_CTX *mont); 250 BN_MONT_CTX *mont = NULL; in BN_is_prime_fasttest_ex() local 314 mont = BN_MONT_CTX_new(); in BN_is_prime_fasttest_ex() 315 if (mont == NULL) in BN_is_prime_fasttest_ex() 317 if (!BN_MONT_CTX_set(mont, A, ctx)) in BN_is_prime_fasttest_ex() 328 j = witness(check, A, A1, A1_odd, k, ctx, mont); in BN_is_prime_fasttest_ex() 346 if (mont != NULL) in BN_is_prime_fasttest_ex() 347 BN_MONT_CTX_free(mont); in BN_is_prime_fasttest_ex() 353 const BIGNUM *a1_odd, int k, BN_CTX *ctx, BN_MONT_CTX *mont) in witness() argument 355 if (!BN_mod_exp_mont(w, w, a1_odd, a, ctx, mont)) /* w := w^a1_odd mod a */ in witness()
|
D | exp.c | 19 BN_MONT_CTX mont; local 22 BN_MONT_CTX_init(&mont); 41 BN_MONT_CTX_set(&mont,&c,&ctx); 50 BN_mod_exp_mont(&r,&a,&b,&c,&ctx,&mont);
|
D | bn_lib.c | 92 void BN_set_params(int mult, int high, int low, int mont) in BN_set_params() argument 115 if (mont >= 0) in BN_set_params() 117 if (mont > (int)(sizeof(int)*8)-1) in BN_set_params() 118 mont=sizeof(int)*8-1; in BN_set_params() 119 bn_limit_bits_mont=mont; in BN_set_params() 120 bn_limit_num_mont=1<<mont; in BN_set_params()
|
D | bn.h | 546 BN_MONT_CTX *mont, BN_CTX *ctx); 547 #define BN_to_montgomery(r,a,mont,ctx) BN_mod_mul_montgomery(\ argument 548 (r),(a),&((mont)->RR),(mont),(ctx)) 550 BN_MONT_CTX *mont, BN_CTX *ctx); 551 void BN_MONT_CTX_free(BN_MONT_CTX *mont); 552 int BN_MONT_CTX_set(BN_MONT_CTX *mont,const BIGNUM *mod,BN_CTX *ctx); 582 void BN_set_params(int mul,int high,int low,int mont);
|
D | bntest.c | 724 BN_MONT_CTX *mont; in test_mont() local 734 mont=BN_MONT_CTX_new(); in test_mont() 735 if (mont == NULL) in test_mont() 747 BN_MONT_CTX_set(mont,&n,ctx); in test_mont() 752 BN_to_montgomery(&A,&a,mont,ctx); in test_mont() 753 BN_to_montgomery(&B,&b,mont,ctx); in test_mont() 755 BN_mod_mul_montgomery(&c,&A,&B,mont,ctx);/**/ in test_mont() 756 BN_from_montgomery(&A,&c,mont,ctx);/**/ in test_mont() 765 BN_num_bits(mont->N)); in test_mont() 771 BN_print(bp,&(mont->N)); in test_mont() [all …]
|
/external/openssl/crypto/ec/ |
D | ecp_mont.c | 200 BN_MONT_CTX *mont = NULL; in ec_GFp_mont_group_set_curve() local 222 mont = BN_MONT_CTX_new(); in ec_GFp_mont_group_set_curve() 223 if (mont == NULL) goto err; in ec_GFp_mont_group_set_curve() 224 if (!BN_MONT_CTX_set(mont, p, ctx)) in ec_GFp_mont_group_set_curve() 231 if (!BN_to_montgomery(one, BN_value_one(), mont, ctx)) goto err; in ec_GFp_mont_group_set_curve() 233 group->field_data1 = mont; in ec_GFp_mont_group_set_curve() 234 mont = NULL; in ec_GFp_mont_group_set_curve() 251 if (mont != NULL) in ec_GFp_mont_group_set_curve() 252 BN_MONT_CTX_free(mont); in ec_GFp_mont_group_set_curve()
|
/external/openssl/crypto/dh/ |
D | dh_key.c | 107 BN_MONT_CTX *mont=NULL; in generate_key() local 133 mont = BN_MONT_CTX_set_locked(&dh->method_mont_p, in generate_key() 135 if (!mont) in generate_key() 158 if (!dh->meth->bn_mod_exp(dh, pub_key, dh->g, prk, dh->p, ctx, mont)) goto err; in generate_key() 177 BN_MONT_CTX *mont=NULL; in compute_key() local 201 mont = BN_MONT_CTX_set_locked(&dh->method_mont_p, in compute_key() 208 if (!mont) in compute_key() 218 if (!dh->meth->bn_mod_exp(dh, tmp, pub_key, dh->priv_key,dh->p,ctx,mont)) in compute_key()
|
/external/dropbear/libtommath/etc/ |
D | makefile.icc | 62 mont: mont.o 63 $(CC) mont.o $(LIBNAME) -o mont 67 …rm -f *.log *.o *.obj *.exe pprime tune mersenne drprime tune86 tune86l mont 2kprime pprime.dat *.…
|
D | makefile | 44 mont: mont.o target 45 $(CC) mont.o $(LIBNAME) -o mont 49 rm -f *.log *.o *.obj *.exe pprime tune mersenne drprime tune86 tune86l mont 2kprime pprime.dat \
|
D | makefile.msvc | 16 mont: mont.obj 17 cl mont.obj ../tommath.lib
|
/external/openssl/crypto/dsa/ |
D | dsa_gen.c | 122 BN_MONT_CTX *mont=NULL; in dsa_builtin_paramgen() local 157 if ((mont=BN_MONT_CTX_new()) == NULL) in dsa_builtin_paramgen() 305 if (!BN_MONT_CTX_set(mont,p,ctx)) goto err; in dsa_builtin_paramgen() 310 if (!BN_mod_exp_mont(g,test,r0,p,ctx,mont)) goto err; in dsa_builtin_paramgen() 342 if (mont != NULL) BN_MONT_CTX_free(mont); in dsa_builtin_paramgen()
|
D | dsa_ossl.c | 307 BN_MONT_CTX *mont=NULL; in dsa_do_verify() local 377 mont = BN_MONT_CTX_set_locked(&dsa->method_mont_p, in dsa_do_verify() 379 if (!mont) in dsa_do_verify() 384 DSA_MOD_EXP(goto err, dsa, &t1, dsa->g, &u1, dsa->pub_key, &u2, dsa->p, ctx, mont); in dsa_do_verify()
|
/external/openssl/include/openssl/ |
D | bn.h | 546 BN_MONT_CTX *mont, BN_CTX *ctx); 547 #define BN_to_montgomery(r,a,mont,ctx) BN_mod_mul_montgomery(\ argument 548 (r),(a),&((mont)->RR),(mont),(ctx)) 550 BN_MONT_CTX *mont, BN_CTX *ctx); 551 void BN_MONT_CTX_free(BN_MONT_CTX *mont); 552 int BN_MONT_CTX_set(BN_MONT_CTX *mont,const BIGNUM *mod,BN_CTX *ctx); 582 void BN_set_params(int mul,int high,int low,int mont);
|
/external/openssl/ |
D | import_openssl.sh | 139 perl crypto/bn/asm/armv4-mont.pl > crypto/bn/asm/armv4-mont.s
|
/external/openssl/crypto/engine/ |
D | eng_cryptodev.c | 122 BN_CTX *ctx, BN_MONT_CTX *mont); 1118 BN_CTX *ctx, BN_MONT_CTX *mont) in cryptodev_dsa_dsa_mod_exp() argument 1129 if (!dsa->meth->bn_mod_exp(dsa,t1,dsa->g,u1,dsa->p,ctx,mont)) in cryptodev_dsa_dsa_mod_exp() 1133 if (!dsa->meth->bn_mod_exp(dsa,&t2,dsa->pub_key,u2,dsa->p,ctx,mont)) in cryptodev_dsa_dsa_mod_exp()
|
/external/svox/pico/tests/data/ |
D | xsampa_pico_man_fr-FR.txt | 45 # TEST m mont "mO~
|
/external/icu4c/data/curr/ |
D | fr.txt | 256 "dinar serbo-monténégrin", 1345 one{"dinar serbo-monténégrin"} 1346 other{"dinars serbo-monténégrins"}
|
/external/openssl/crypto/ |
D | Android.mk | 6 bn/asm/armv4-mont.s \
|
/external/openssl/patches/ |
D | crypto_Android.mk | 6 bn/asm/armv4-mont.s \
|
/external/dropbear/libtommath/ |
D | changes.txt | 157 -- Added "mont" demo to the makefile.msvc in etc/ 257 -- Added etc/mont.c a test of the Montgomery reduction [assuming all else works :-| ]
|
/external/chromium/third_party/icu/source/data/locales/ |
D | fr.txt | 542 "dinar serbo-monténégrin", 1623 one{"dinar serbo-monténégrin"} 1624 other{"dinars serbo-monténégrins"}
|
/external/srec/config/en.us/dictionary/ |
D | large.ok | 767 altamont alt@mont 768 altamonte {lt@mont 4262 callimont kal/mont 16266 lamont l@mont 19290 monte mont/ 19299 monterey mont@rA 19300 monteria mont@rE@ 19302 monterrey mont@rA 19304 montevallo mont@val] 19324 monty mont/
|