HomeSort by relevance Sort by last modified time
    Searched defs:mont (Results 1 - 9 of 9) sorted by null

  /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/bn/
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...]
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...]
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...]
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/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_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);
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);

Completed in 73 milliseconds