Lines Matching defs:tmp
613 BIGNUM tmp, am;
724 * of am, am itself and tmp.
749 /* lay down tmp and am right after powers table */
750 tmp.d = (BN_ULONG *)(powerbuf + sizeof(m->d[0]) * top * numPowers);
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;
761 tmp.d[0] = (0 - m->d[0]) & BN_MASK2;
763 tmp.d[i] = (~m->d[i]) & BN_MASK2;
764 tmp.top = top;
767 if (!bn_to_mont_fixed_top(&tmp, BN_value_one(), mont, ctx))
845 for (i = tmp.top; i < top; i++)
846 tmp.d[i] = 0;
848 bn_flip_n_scatter5_t4(tmp.d, top, powerbuf, 0);
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);
853 bn_flip_n_scatter5_t4(tmp.d, top, powerbuf, 2);
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);
860 bn_flip_n_scatter5_t4(tmp.d, top, powerbuf, i);
878 bn_gather5_t4(tmp.d, top, powerbuf, wvalue);
890 if ((*pwr5_worker) (tmp.d, np, n0, powerbuf, wvalue, stride))
893 if ((*pwr5_worker) (tmp.d, np, n0, powerbuf, wvalue, stride))
899 bn_mul_mont_t4(tmp.d, tmp.d, tmp.d, np, n0, top);
900 bn_mul_mont_t4(tmp.d, tmp.d, tmp.d, np, n0, top);
901 bn_mul_mont_t4(tmp.d, tmp.d, tmp.d, np, n0, top);
902 bn_mul_mont_t4(tmp.d, tmp.d, tmp.d, np, n0, top);
903 bn_mul_mont_t4(tmp.d, tmp.d, tmp.d, np, n0, top);
904 bn_mul_mont_gather5_t4(tmp.d, tmp.d, powerbuf, np, n0, top,
908 bn_flip_t4(tmp.d, tmp.d, top);
911 tmp.top = top;
912 bn_correct_top(&tmp);
954 for (i = tmp.top; i < top; i++)
955 tmp.d[i] = 0;
963 bn_scatter5(tmp.d, top, powerbuf, 0);
965 bn_mul_mont(tmp.d, am.d, am.d, np, n0, top);
966 bn_scatter5(tmp.d, top, powerbuf, 2);
971 bn_mul_mont_gather5(tmp.d, am.d, powerbuf, np, n0, top, i - 1);
972 bn_scatter5(tmp.d, top, powerbuf, i);
977 bn_mul_mont(tmp.d, tmp.d, tmp.d, np, n0, top);
978 bn_scatter5(tmp.d, top, powerbuf, i);
982 bn_mul_mont_gather5(tmp.d, am.d, powerbuf, np, n0, top, i - 1);
983 bn_scatter5(tmp.d, top, powerbuf, i);
985 bn_mul_mont(tmp.d, tmp.d, tmp.d, np, n0, top);
986 bn_scatter5(tmp.d, top, powerbuf, j);
990 bn_mul_mont_gather5(tmp.d, am.d, powerbuf, np, n0, top, i - 1);
991 bn_scatter5(tmp.d, top, powerbuf, i);
992 bn_mul_mont(tmp.d, tmp.d, tmp.d, np, n0, top);
993 bn_scatter5(tmp.d, top, powerbuf, 2 * i);
996 bn_mul_mont_gather5(tmp.d, am.d, powerbuf, np, n0, top, i - 1);
997 bn_scatter5(tmp.d, top, powerbuf, i);
1010 bn_gather5(tmp.d, top, powerbuf, wvalue);
1018 bn_mul_mont(tmp.d, tmp.d, tmp.d, np, n0, top);
1019 bn_mul_mont(tmp.d, tmp.d, tmp.d, np, n0, top);
1020 bn_mul_mont(tmp.d, tmp.d, tmp.d, np, n0, top);
1021 bn_mul_mont(tmp.d, tmp.d, tmp.d, np, n0, top);
1022 bn_mul_mont(tmp.d, tmp.d, tmp.d, np, n0, top);
1023 bn_mul_mont_gather5(tmp.d, tmp.d, powerbuf, np, n0, top,
1028 bn_power5(tmp.d, tmp.d, powerbuf, np, n0, top,
1033 tmp.top = top;
1035 * The result is now in |tmp| in Montgomery form, but it may not be
1037 * (tmp < R <= m*R) so it will, when converting from Montgomery form,
1049 if (!MOD_EXP_CTIME_COPY_TO_PREBUF(&tmp, top, powerbuf, 0, window))
1061 if (!bn_mul_mont_fixed_top(&tmp, &am, &am, mont, ctx))
1063 if (!MOD_EXP_CTIME_COPY_TO_PREBUF(&tmp, top, powerbuf, 2,
1068 if (!bn_mul_mont_fixed_top(&tmp, &am, &tmp, mont, ctx))
1070 if (!MOD_EXP_CTIME_COPY_TO_PREBUF(&tmp, top, powerbuf, i,
1086 if (!MOD_EXP_CTIME_COPY_FROM_PREBUF(&tmp, top, powerbuf, wvalue,
1099 if (!bn_mul_mont_fixed_top(&tmp, &tmp, &tmp, mont, ctx))
1122 if (!bn_mul_mont_fixed_top(&tmp, &tmp, &am, mont, ctx))
1137 if (!BN_mod_mul_montgomery(rr, &tmp, &am, mont, ctx))
1141 if (!BN_from_montgomery(rr, &tmp, mont, ctx))