/external/openssl/crypto/bn/ |
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) 135 int num = mont->N.top; 140 if (bn_mul_mont(r->d,a->d,b->d,mont->N.d,mont->n0,num)) 165 if (!BN_from_montgomery_word(r,tmp,mont)) goto err; 167 if (!BN_from_montgomery(r,tmp,mont,ctx)) goto err; 177 static int BN_from_montgomery_word(BIGNUM *ret, BIGNUM *r, BN_MONT_CTX *mont) 183 n= &(mont->N); 184 /* mont->ri is the size of mont->N in bits (rounded u [all...] |
bn_exp2.c | 128 BN_MONT_CTX *mont=NULL; local 159 mont=in_mont; 162 if ((mont=BN_MONT_CTX_new()) == NULL) goto err; 163 if (!BN_MONT_CTX_set(mont,m,ctx)) goto err; 187 if (!BN_to_montgomery(val1[0],a_mod_m,mont,ctx)) goto err; 190 if (!BN_mod_mul_montgomery(d,val1[0],val1[0],mont,ctx)) goto err; 197 d,mont,ctx)) 220 if (!BN_to_montgomery(val2[0],a_mod_m,mont,ctx)) goto err; 223 if (!BN_mod_mul_montgomery(d,val2[0],val2[0],mont,ctx)) goto err; 230 d,mont,ctx) [all...] |
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);
|
bn_exp.c | 381 BN_MONT_CTX *mont=NULL; local 414 mont=in_mont; 417 if ((mont=BN_MONT_CTX_new()) == NULL) goto err; 418 if (!BN_MONT_CTX_set(mont,m,ctx)) goto err; 435 if (!BN_to_montgomery(val[0],aa,mont,ctx)) goto err; /* 1 */ 440 if (!BN_mod_mul_montgomery(d,val[0],val[0],mont,ctx)) goto err; /* 2 */ 446 d,mont,ctx)) 458 if (!BN_to_montgomery(r,BN_value_one(),mont,ctx)) goto err; 465 if (!BN_mod_mul_montgomery(r,r,r,mont,ctx)) 496 if (!BN_mod_mul_montgomery(r,r,r,mont,ctx) 579 BN_MONT_CTX *mont=NULL; local 728 BN_MONT_CTX *mont = NULL; local [all...] |
bn_prime.c | 130 const BIGNUM *a1_odd, int k, BN_CTX *ctx, BN_MONT_CTX *mont); 250 BN_MONT_CTX *mont = NULL; local 314 mont = BN_MONT_CTX_new(); 315 if (mont == NULL) 317 if (!BN_MONT_CTX_set(mont, A, ctx)) 328 j = witness(check, A, A1, A1_odd, k, ctx, mont); 346 if (mont != NULL) 347 BN_MONT_CTX_free(mont); 353 const BIGNUM *a1_odd, int k, BN_CTX *ctx, BN_MONT_CTX *mont) 355 if (!BN_mod_exp_mont(w, w, a1_odd, a, ctx, mont)) /* w := w^a1_odd mod a * [all...] |
bn_lib.c | 92 void BN_set_params(int mult, int high, int low, int mont) 115 if (mont >= 0) 117 if (mont > (int)(sizeof(int)*8)-1) 118 mont=sizeof(int)*8-1; 119 bn_limit_bits_mont=mont; 120 bn_limit_num_mont=1<<mont;
|
bn.h | 564 BN_MONT_CTX *mont, BN_CTX *ctx); 565 #define BN_to_montgomery(r,a,mont,ctx) BN_mod_mul_montgomery(\ 566 (r),(a),&((mont)->RR),(mont),(ctx)) 568 BN_MONT_CTX *mont, BN_CTX *ctx); 569 void BN_MONT_CTX_free(BN_MONT_CTX *mont); 570 int BN_MONT_CTX_set(BN_MONT_CTX *mont,const BIGNUM *mod,BN_CTX *ctx); 600 void BN_set_params(int mul,int high,int low,int mont); 601 int BN_get_params(int which); /* 0, mul, 1 high, 2 low, 3 mont */ [all...] |
bntest.c | 724 BN_MONT_CTX *mont; local 734 mont=BN_MONT_CTX_new(); 735 if (mont == NULL) 747 BN_MONT_CTX_set(mont,&n,ctx); 752 BN_to_montgomery(&A,&a,mont,ctx); 753 BN_to_montgomery(&B,&b,mont,ctx); 755 BN_mod_mul_montgomery(&c,&A,&B,mont,ctx);/**/ 756 BN_from_montgomery(&A,&c,mont,ctx);/**/ 765 BN_num_bits(mont->N)); 771 BN_print(bp,&(mont->N)) [all...] |
/external/dropbear/libtommath/etc/ |
makefile | 44 mont: mont.o 45 $(CC) mont.o $(LIBNAME) -o mont 49 rm -f *.log *.o *.obj *.exe pprime tune mersenne drprime tune86 tune86l mont 2kprime pprime.dat \
|
/external/openssl/crypto/ec/ |
ecp_mont.c | 200 BN_MONT_CTX *mont = NULL; local 222 mont = BN_MONT_CTX_new(); 223 if (mont == NULL) goto err; 224 if (!BN_MONT_CTX_set(mont, p, ctx)) 231 if (!BN_to_montgomery(one, BN_value_one(), mont, ctx)) goto err; 233 group->field_data1 = mont; 234 mont = NULL; 251 if (mont != NULL) 252 BN_MONT_CTX_free(mont);
|
/external/openssl/crypto/dh/ |
dh_key.c | 107 BN_MONT_CTX *mont=NULL; local 133 mont = BN_MONT_CTX_set_locked(&dh->method_mont_p, 135 if (!mont) 158 if (!dh->meth->bn_mod_exp(dh, pub_key, dh->g, prk, dh->p, ctx, mont)) goto err; 177 BN_MONT_CTX *mont=NULL; local 201 mont = BN_MONT_CTX_set_locked(&dh->method_mont_p, 208 if (!mont) 218 if (!dh->meth->bn_mod_exp(dh, tmp, pub_key, dh->priv_key,dh->p,ctx,mont))
|
/external/openssl/crypto/dsa/ |
dsa_gen.c | 122 BN_MONT_CTX *mont=NULL; local 157 if ((mont=BN_MONT_CTX_new()) == NULL) 304 if (!BN_MONT_CTX_set(mont,p,ctx)) goto err; 309 if (!BN_mod_exp_mont(g,test,r0,p,ctx,mont)) goto err; 341 if (mont != NULL) BN_MONT_CTX_free(mont);
|
dsa_ossl.c | 298 BN_MONT_CTX *mont=NULL; local 359 mont = BN_MONT_CTX_set_locked(&dsa->method_mont_p, 361 if (!mont) 366 DSA_MOD_EXP(goto err, dsa, &t1, dsa->g, &u1, dsa->pub_key, &u2, dsa->p, ctx, mont);
|
/external/openssl/ |
import_openssl.sh | 139 perl crypto/bn/asm/armv4-mont.pl > crypto/bn/asm/armv4-mont.s
|
/external/openssl/include/openssl/ |
bn.h | 564 BN_MONT_CTX *mont, BN_CTX *ctx); 565 #define BN_to_montgomery(r,a,mont,ctx) BN_mod_mul_montgomery(\ 566 (r),(a),&((mont)->RR),(mont),(ctx)) 568 BN_MONT_CTX *mont, BN_CTX *ctx); 569 void BN_MONT_CTX_free(BN_MONT_CTX *mont); 570 int BN_MONT_CTX_set(BN_MONT_CTX *mont,const BIGNUM *mod,BN_CTX *ctx); 600 void BN_set_params(int mul,int high,int low,int mont); 601 int BN_get_params(int which); /* 0, mul, 1 high, 2 low, 3 mont */ [all...] |
/prebuilt/linux-x86/toolchain/i686-unknown-linux-gnu-4.2.1/lib/gcc/i686-unknown-linux-gnu/4.2.1/include/openssl/ |
bn.h | 525 BN_MONT_CTX *mont, BN_CTX *ctx); 526 #define BN_to_montgomery(r,a,mont,ctx) BN_mod_mul_montgomery(\ 527 (r),(a),&((mont)->RR),(mont),(ctx)) 529 BN_MONT_CTX *mont, BN_CTX *ctx); 530 void BN_MONT_CTX_free(BN_MONT_CTX *mont); 531 int BN_MONT_CTX_set(BN_MONT_CTX *mont,const BIGNUM *mod,BN_CTX *ctx); 558 void BN_set_params(int mul,int high,int low,int mont); 559 int BN_get_params(int which); /* 0, mul, 1 high, 2 low, 3 mont */
|
/external/openssl/crypto/engine/ |
eng_cryptodev.c | 122 BN_CTX *ctx, BN_MONT_CTX *mont); 1118 BN_CTX *ctx, BN_MONT_CTX *mont) 1129 if (!dsa->meth->bn_mod_exp(dsa,t1,dsa->g,u1,dsa->p,ctx,mont)) 1133 if (!dsa->meth->bn_mod_exp(dsa,&t2,dsa->pub_key,u2,dsa->p,ctx,mont)) [all...] |
/external/openssl/crypto/ |
Android.mk | 6 bn/asm/armv4-mont.s \
|
/external/openssl/patches/ |
crypto_Android.mk | 6 bn/asm/armv4-mont.s \
|