Lines Matching refs:result
82 uint32_t result[], const uint32_t a, const uint32_t b[]) in montgomery_mul_add_step() argument
88 acc_a = (uint64_t)a * b[0] + result[0]; in montgomery_mul_add_step()
92 acc_a = (acc_a >> 32) + (uint64_t)a * b[i] + result[i]; in montgomery_mul_add_step()
95 result[i - 1] = (uint32_t)acc_b; in montgomery_mul_add_step()
100 result[i - 1] = (uint32_t)acc_a; in montgomery_mul_add_step()
103 subtract_modulus(key, result); in montgomery_mul_add_step()
117 uint32_t result[], uint32_t a[], const uint32_t b[]) in montgomery_mul() argument
122 result[i] = 0; in montgomery_mul()
124 montgomery_mul_add_step(key, result, a[i], b); in montgomery_mul()
177 uint32_t *result, *ptr; in pow_mod() local
190 result = tmp; /* Re-use location. */ in pow_mod()
230 memcpy(result, acc, key->len * sizeof(result[0])); in pow_mod()
233 if (greater_equal_modulus(key, result)) in pow_mod()
234 subtract_modulus(key, result); in pow_mod()
238 put_unaligned_be32(result[i], ptr); in pow_mod()