Lines Matching defs:am

613     BIGNUM tmp, am;
724 * of am, am itself and tmp.
749 /* lay down tmp and am right after powers table */
751 am.d = tmp.d + top;
752 tmp.top = am.top = 0;
753 tmp.dmax = am.dmax = top;
754 tmp.neg = am.neg = 0;
755 tmp.flags = am.flags = BN_FLG_STATIC_DATA;
771 if (!bn_to_mont_fixed_top(&am, a, mont, ctx))
843 for (i = am.top; i < top; i++)
844 am.d[i] = 0;
849 bn_flip_n_scatter5_t4(am.d, top, powerbuf, 1);
850 if (!(*mul_worker) (tmp.d, am.d, am.d, np, n0) &&
851 !(*mul_worker) (tmp.d, am.d, am.d, np, n0))
852 bn_mul_mont_vis3(tmp.d, am.d, am.d, np, n0, top);
857 if (!(*mul_worker) (tmp.d, tmp.d, am.d, np, n0) &&
858 !(*mul_worker) (tmp.d, tmp.d, am.d, np, n0))
859 bn_mul_mont_vis3(tmp.d, tmp.d, am.d, np, n0, top);
952 for (i = am.top; i < top; i++)
953 am.d[i] = 0;
960 for (np = am.d + top, i = 0; i < top; i++)
964 bn_scatter5(am.d, am.top, powerbuf, 1);
965 bn_mul_mont(tmp.d, am.d, am.d, np, n0, top);
971 bn_mul_mont_gather5(tmp.d, am.d, powerbuf, np, n0, top, i - 1);
982 bn_mul_mont_gather5(tmp.d, am.d, powerbuf, np, n0, top, i - 1);
990 bn_mul_mont_gather5(tmp.d, am.d, powerbuf, np, n0, top, i - 1);
996 bn_mul_mont_gather5(tmp.d, am.d, powerbuf, np, n0, top, i - 1);
1051 if (!MOD_EXP_CTIME_COPY_TO_PREBUF(&am, top, powerbuf, 1, window))
1061 if (!bn_mul_mont_fixed_top(&tmp, &am, &am, mont, ctx))
1068 if (!bn_mul_mont_fixed_top(&tmp, &am, &tmp, mont, ctx))
1117 if (!MOD_EXP_CTIME_COPY_FROM_PREBUF(&am, top, powerbuf, wvalue,
1122 if (!bn_mul_mont_fixed_top(&tmp, &tmp, &am, mont, ctx))
1134 am.d[0] = 1; /* borrow am */
1136 am.d[i] = 0;
1137 if (!BN_mod_mul_montgomery(rr, &tmp, &am, mont, ctx))