Lines Matching defs:am
405 BIGNUM tmp, am;
449 * powers of am, am itself and tmp.
459 /* lay down tmp and am right after powers table */
461 am.d = tmp.d + top;
462 tmp.top = am.top = 0;
463 tmp.dmax = am.dmax = top;
464 tmp.neg = am.neg = 0;
465 tmp.flags = am.flags = BN_FLG_STATIC_DATA;
479 if (!BN_nnmod(&am, a, m, ctx))
481 if (!BN_to_montgomery(&am, &am, mont, ctx))
504 for (i = am.top; i < top; i++)
505 am.d[i] = 0;
510 bn_scatter5(am.d, am.top, powerbuf, 1);
511 bn_mul_mont(tmp.d, am.d, am.d, np, n0, top);
517 bn_mul_mont_gather5(tmp.d, am.d, powerbuf, np,
529 bn_mul_mont_gather5(tmp.d, am.d, powerbuf, np,
538 bn_mul_mont_gather5(tmp.d, am.d, powerbuf, np,
545 bn_mul_mont_gather5(tmp.d, am.d, powerbuf, np,
578 if (!MOD_EXP_CTIME_COPY_TO_PREBUF(&am, top, powerbuf, 1,
588 if (!BN_mod_mul_montgomery(&tmp, &am, &am, mont, ctx))
595 if (!BN_mod_mul_montgomery(&tmp, &am, &tmp,
626 if (!MOD_EXP_CTIME_COPY_FROM_PREBUF(&am, top, powerbuf,
631 if (!BN_mod_mul_montgomery(&tmp, &tmp, &am, mont, ctx))