Lines Matching refs:tmp
23 static bool biModIterative(uint32_t *num, const uint32_t *denum, uint32_t *tmp, uint32_t *state1, u… in biModIterative() argument
35 memcpy(tmp + 1, denum, RSA_BYTES); in biModIterative()
36 tmp[0] = 0; in biModIterative()
44 while (!(tmp[RSA_LIMBS] & 0x80000000)) { in biModIterative()
46 tmp[i] <<= 1; in biModIterative()
47 if (tmp[i - 1] & 0x80000000) in biModIterative()
48 tmp[i]++; in biModIterative()
60 if (num[limbsh + i] < tmp[i]) in biModIterative()
62 if (num[limbsh + i] > tmp[i]) in biModIterative()
70 t -= (uint64_t)tmp[i]; in biModIterative()
90 memcpy(tmp + 1, denum, RSA_BYTES); in biModIterative()
91 tmp[0] = 0; in biModIterative()
97 tmp[i] >>= 1; in biModIterative()
98 if (tmp[i + 1] & 1) in biModIterative()
99 tmp[i] += 0x80000000; in biModIterative()
101 tmp[i] >>= 1; in biModIterative()
229 static void biMod(uint32_t *num, const uint32_t *denum, uint32_t *tmp) in biMod() argument
233 for (step = 0; !biModIterative(num, denum, tmp, &state1, &state2, step); step++); in biMod()