Home | History | Annotate | Download | only in bn

Lines Matching refs:am

875   BIGNUM tmp, am;
945 * powers of am, am itself and tmp.
972 /* lay down tmp and am right after powers table */
974 am.d = tmp.d + top;
975 tmp.top = am.top = 0;
976 tmp.dmax = am.dmax = top;
977 tmp.neg = am.neg = 0;
978 tmp.flags = am.flags = BN_FLG_STATIC_DATA;
995 if (!BN_mod(&am, a, m, ctx) ||
996 !BN_to_montgomery(&am, &am, mont, ctx)) {
999 } else if (!BN_to_montgomery(&am, a, mont, ctx)) {
1015 for (i = am.top; i < top; i++) {
1016 am.d[i] = 0;
1025 BN_ULONG *np_double = am.d + top;
1033 bn_scatter5(am.d, am.top, powerbuf, 1);
1034 bn_mul_mont(tmp.d, am.d, am.d, np, n0, top);
1044 bn_mul_mont_gather5(tmp.d, am.d, powerbuf, np2, n0, top, i - 1);
1052 bn_mul_mont_gather5(tmp.d, am.d, powerbuf, np2, n0, top, i - 1);
1058 bn_mul_mont_gather5(tmp.d, am.d, powerbuf, np2, n0, top, i - 1);
1132 !copy_to_prebuf(&am, top, powerbuf, 1, numPowers)) {
1142 if (!BN_mod_mul_montgomery(&tmp, &am, &am, mont, ctx) ||
1148 if (!BN_mod_mul_montgomery(&tmp, &am, &tmp, mont, ctx) ||
1178 if (!copy_from_prebuf(&am, top, powerbuf, wvalue, numPowers)) {
1183 if (!BN_mod_mul_montgomery(&tmp, &tmp, &am, mont, ctx)) {