Lines Matching defs:am
861 BIGNUM tmp, am;
928 * powers of am, am itself and tmp.
951 /* lay down tmp and am right after powers table */
953 am.d = tmp.d + top;
954 tmp.top = am.top = 0;
955 tmp.dmax = am.dmax = top;
956 tmp.neg = am.neg = 0;
957 tmp.flags = am.flags = BN_FLG_STATIC_DATA;
972 if (!BN_mod(&am, a, m, ctx))
974 if (!BN_to_montgomery(&am, &am, mont, ctx))
976 } else if (!BN_to_montgomery(&am, a, mont, ctx))
1004 for (i = am.top; i < top; i++)
1005 am.d[i] = 0;
1012 for (np2 = am.d + top, i = 0; i < top; i++)
1016 bn_scatter5(am.d, am.top, powerbuf, 1);
1017 bn_mul_mont(tmp.d, am.d, am.d, np, n0, top);
1027 bn_mul_mont_gather5(tmp.d, am.d, powerbuf, np2, n0, top, i - 1);
1035 bn_mul_mont_gather5(tmp.d, am.d, powerbuf, np2, n0, top, i - 1);
1041 bn_mul_mont_gather5(tmp.d, am.d, powerbuf, np2, n0, top, i - 1);
1113 if (!copy_to_prebuf(&am, top, powerbuf, 1, numPowers))
1122 if (!BN_mod_mul_montgomery(&tmp, &am, &am, mont, ctx))
1128 if (!BN_mod_mul_montgomery(&tmp, &am, &tmp, mont, ctx))
1155 if (!copy_from_prebuf(&am, top, powerbuf, wvalue, numPowers))
1159 if (!BN_mod_mul_montgomery(&tmp, &tmp, &am, mont, ctx))