Lines Matching refs:tmp

863   BIGNUM tmp, am;
932 * powers of am, am itself and tmp.
959 /* lay down tmp and am right after powers table */
960 tmp.d = (BN_ULONG *)(powerbuf + sizeof(m->d[0]) * top * numPowers);
961 am.d = tmp.d + top;
962 tmp.top = am.top = 0;
963 tmp.dmax = am.dmax = top;
964 tmp.neg = am.neg = 0;
965 tmp.flags = am.flags = BN_FLG_STATIC_DATA;
971 tmp.d[0] = (0 - m->d[0]) & BN_MASK2;
973 tmp.d[i] = (~m->d[i]) & BN_MASK2;
975 tmp.top = top;
976 } else if (!BN_to_montgomery(&tmp, BN_value_one(), mont, ctx)) {
1018 for (i = tmp.top; i < top; i++) {
1019 tmp.d[i] = 0;
1030 bn_scatter5(tmp.d, top, powerbuf, 0);
1032 bn_mul_mont(tmp.d, am.d, am.d, np, n0, top);
1033 bn_scatter5(tmp.d, top, powerbuf, 2);
1037 bn_mul_mont(tmp.d, tmp.d, tmp.d, np, n0, top);
1038 bn_scatter5(tmp.d, top, powerbuf, i);
1042 bn_mul_mont_gather5(tmp.d, am.d, powerbuf, np2, n0, top, i - 1);
1043 bn_scatter5(tmp.d, top, powerbuf, i);
1045 bn_mul_mont(tmp.d, tmp.d, tmp.d, np, n0, top);
1046 bn_scatter5(tmp.d, top, powerbuf, j);
1050 bn_mul_mont_gather5(tmp.d, am.d, powerbuf, np2, n0, top, i - 1);
1051 bn_scatter5(tmp.d, top, powerbuf, i);
1052 bn_mul_mont(tmp.d, tmp.d, tmp.d, np, n0, top);
1053 bn_scatter5(tmp.d, top, powerbuf, 2 * i);
1056 bn_mul_mont_gather5(tmp.d, am.d, powerbuf, np2, n0, top, i - 1);
1057 bn_scatter5(tmp.d, top, powerbuf, i);
1064 bn_gather5(tmp.d, top, powerbuf, wvalue);
1079 bn_mul_mont(tmp.d, tmp.d, tmp.d, np, n0, top);
1080 bn_mul_mont(tmp.d, tmp.d, tmp.d, np, n0, top);
1081 bn_mul_mont(tmp.d, tmp.d, tmp.d, np, n0, top);
1082 bn_mul_mont(tmp.d, tmp.d, tmp.d, np, n0, top);
1083 bn_mul_mont(tmp.d, tmp.d, tmp.d, np, n0, top);
1084 bn_mul_mont_gather5(tmp.d, tmp.d, powerbuf, np, n0, top, wvalue);
1104 bn_power5(tmp.d, tmp.d, powerbuf, np2, n0, top, wvalue);
1113 bn_power5(tmp.d, tmp.d, powerbuf, np2, n0, top, wvalue);
1117 ret = bn_from_montgomery(tmp.d, tmp.d, NULL, np2, n0, top);
1118 tmp.top = top;
1119 bn_correct_top(&tmp);
1121 if (!BN_copy(rr, &tmp)) {
1129 if (!copy_to_prebuf(&tmp, top, powerbuf, 0, numPowers) ||
1140 if (!BN_mod_mul_montgomery(&tmp, &am, &am, mont, ctx) ||
1141 !copy_to_prebuf(&tmp, top, powerbuf, 2, numPowers)) {
1146 if (!BN_mod_mul_montgomery(&tmp, &am, &tmp, mont, ctx) ||
1147 !copy_to_prebuf(&tmp, top, powerbuf, i, numPowers)) {
1157 if (!copy_from_prebuf(&tmp, top, powerbuf, wvalue, numPowers)) {
1169 if (!BN_mod_mul_montgomery(&tmp, &tmp, &tmp, mont, ctx)) {
1181 if (!BN_mod_mul_montgomery(&tmp, &tmp, &am, mont, ctx)) {
1188 if (!BN_from_montgomery(rr, &tmp, mont, ctx)) {