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

  /external/chromium_org/third_party/openssl/openssl/crypto/ec/
ecp_mont.c 207 BN_MONT_CTX *mont = NULL; local
229 mont = BN_MONT_CTX_new();
230 if (mont == NULL) goto err;
231 if (!BN_MONT_CTX_set(mont, p, ctx))
238 if (!BN_to_montgomery(one, BN_value_one(), mont, ctx)) goto err;
240 group->field_data1 = mont;
241 mont = NULL;
258 if (mont != NULL)
259 BN_MONT_CTX_free(mont);
  /external/openssl/crypto/ec/
ecp_mont.c 207 BN_MONT_CTX *mont = NULL; local
229 mont = BN_MONT_CTX_new();
230 if (mont == NULL) goto err;
231 if (!BN_MONT_CTX_set(mont, p, ctx))
238 if (!BN_to_montgomery(one, BN_value_one(), mont, ctx)) goto err;
240 group->field_data1 = mont;
241 mont = NULL;
258 if (mont != NULL)
259 BN_MONT_CTX_free(mont);
  /external/chromium_org/third_party/openssl/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 393 BN_MONT_CTX *mont=NULL; local
426 mont=in_mont;
429 if ((mont=BN_MONT_CTX_new()) == NULL) goto err;
430 if (!BN_MONT_CTX_set(mont,m,ctx)) goto err;
447 if (!BN_to_montgomery(val[0],aa,mont,ctx)) goto err; /* 1 */
452 if (!BN_mod_mul_montgomery(d,val[0],val[0],mont,ctx)) goto err; /* 2 */
458 d,mont,ctx))
470 if (!BN_to_montgomery(r,BN_value_one(),mont,ctx)) goto err;
477 if (!BN_mod_mul_montgomery(r,r,r,mont,ctx))
508 if (!BN_mod_mul_montgomery(r,r,r,mont,ctx)
583 BN_MONT_CTX *mont=NULL; local
835 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/chromium_org/third_party/openssl/openssl/crypto/dh/
dh_key.c 123 BN_MONT_CTX *mont=NULL; local
149 mont = BN_MONT_CTX_set_locked(&dh->method_mont_p,
151 if (!mont)
187 if (!dh->meth->bn_mod_exp(dh, pub_key, dh->g, prk, dh->p, ctx, mont)) goto err;
206 BN_MONT_CTX *mont=NULL; local
230 mont = BN_MONT_CTX_set_locked(&dh->method_mont_p,
237 if (!mont)
247 if (!dh->meth->bn_mod_exp(dh, tmp, pub_key, dh->priv_key,dh->p,ctx,mont))
  /external/chromium_org/third_party/openssl/openssl/crypto/dsa/
dsa_ossl.c 312 BN_MONT_CTX *mont=NULL; local
373 mont = BN_MONT_CTX_set_locked(&dsa->method_mont_p,
375 if (!mont)
380 DSA_MOD_EXP(goto err, dsa, &t1, dsa->g, &u1, dsa->pub_key, &u2, dsa->p, ctx, mont);
dsa_gen.c 143 BN_MONT_CTX *mont=NULL; local
178 if ((mont=BN_MONT_CTX_new()) == NULL)
329 if (!BN_MONT_CTX_set(mont,p,ctx)) goto err;
334 if (!BN_mod_exp_mont(g,test,r0,p,ctx,mont)) goto err;
368 if (mont != NULL) 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 393 BN_MONT_CTX *mont=NULL; local
426 mont=in_mont;
429 if ((mont=BN_MONT_CTX_new()) == NULL) goto err;
430 if (!BN_MONT_CTX_set(mont,m,ctx)) goto err;
447 if (!BN_to_montgomery(val[0],aa,mont,ctx)) goto err; /* 1 */
452 if (!BN_mod_mul_montgomery(d,val[0],val[0],mont,ctx)) goto err; /* 2 */
458 d,mont,ctx))
470 if (!BN_to_montgomery(r,BN_value_one(),mont,ctx)) goto err;
477 if (!BN_mod_mul_montgomery(r,r,r,mont,ctx))
508 if (!BN_mod_mul_montgomery(r,r,r,mont,ctx)
583 BN_MONT_CTX *mont=NULL; local
835 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 123 BN_MONT_CTX *mont=NULL; local
149 mont = BN_MONT_CTX_set_locked(&dh->method_mont_p,
151 if (!mont)
187 if (!dh->meth->bn_mod_exp(dh, pub_key, dh->g, prk, dh->p, ctx, mont)) goto err;
206 BN_MONT_CTX *mont=NULL; local
230 mont = BN_MONT_CTX_set_locked(&dh->method_mont_p,
237 if (!mont)
247 if (!dh->meth->bn_mod_exp(dh, tmp, pub_key, dh->priv_key,dh->p,ctx,mont))
  /external/openssl/crypto/dsa/
dsa_ossl.c 312 BN_MONT_CTX *mont=NULL; local
373 mont = BN_MONT_CTX_set_locked(&dsa->method_mont_p,
375 if (!mont)
380 DSA_MOD_EXP(goto err, dsa, &t1, dsa->g, &u1, dsa->pub_key, &u2, dsa->p, ctx, mont);
dsa_gen.c 143 BN_MONT_CTX *mont=NULL; local
178 if ((mont=BN_MONT_CTX_new()) == NULL)
329 if (!BN_MONT_CTX_set(mont,p,ctx)) goto err;
334 if (!BN_mod_exp_mont(g,test,r0,p,ctx,mont)) goto err;
368 if (mont != NULL) BN_MONT_CTX_free(mont);

Completed in 827 milliseconds