Lines Matching refs:i
54 unsigned int i; in sc_subx() local
57 for (i = 0; i < C448_SCALAR_LIMBS; i++) { in sc_subx()
58 chain = (chain + accum[i]) - sub->limb[i]; in sc_subx()
59 out->limb[i] = (c448_word_t)chain; in sc_subx()
65 for (i = 0; i < C448_SCALAR_LIMBS; i++) { in sc_subx()
66 chain = (chain + out->limb[i]) + (p->limb[i] & borrow); in sc_subx()
67 out->limb[i] = (c448_word_t)chain; in sc_subx()
75 unsigned int i, j; in sc_montmul() local
79 for (i = 0; i < C448_SCALAR_LIMBS; i++) { in sc_montmul()
80 c448_word_t mand = a->limb[i]; in sc_montmul()
128 unsigned int i; in ossl_curve448_scalar_add() local
130 for (i = 0; i < C448_SCALAR_LIMBS; i++) { in ossl_curve448_scalar_add()
131 chain = (chain + a->limb[i]) + b->limb[i]; in ossl_curve448_scalar_add()
132 out->limb[i] = (c448_word_t)chain; in ossl_curve448_scalar_add()
142 size_t i, j, k = 0; in scalar_decode_short() local
144 for (i = 0; i < C448_SCALAR_LIMBS; i++) { in scalar_decode_short()
149 s->limb[i] = out; in scalar_decode_short()
157 unsigned int i; in ossl_curve448_scalar_decode() local
161 for (i = 0; i < C448_SCALAR_LIMBS; i++) in ossl_curve448_scalar_decode()
162 accum = (accum + s->limb[i] - sc_p->limb[i]) >> WBITS; in ossl_curve448_scalar_decode()
179 size_t i; in ossl_curve448_scalar_decode_long() local
187 i = ser_len - (ser_len % C448_SCALAR_BYTES); in ossl_curve448_scalar_decode_long()
188 if (i == ser_len) in ossl_curve448_scalar_decode_long()
189 i -= C448_SCALAR_BYTES; in ossl_curve448_scalar_decode_long()
191 scalar_decode_short(t1, &ser[i], ser_len - i); in ossl_curve448_scalar_decode_long()
194 assert(i == 0); in ossl_curve448_scalar_decode_long()
201 while (i) { in ossl_curve448_scalar_decode_long()
202 i -= C448_SCALAR_BYTES; in ossl_curve448_scalar_decode_long()
204 (void)ossl_curve448_scalar_decode(t2, ser + i); in ossl_curve448_scalar_decode_long()
217 unsigned int i, j, k = 0; in ossl_curve448_scalar_encode() local
219 for (i = 0; i < C448_SCALAR_LIMBS; i++) { in ossl_curve448_scalar_encode()
221 ser[k] = s->limb[i] >> (8 * j); in ossl_curve448_scalar_encode()
230 unsigned int i; in ossl_curve448_scalar_halve() local
232 for (i = 0; i < C448_SCALAR_LIMBS; i++) { in ossl_curve448_scalar_halve()
233 chain = (chain + a->limb[i]) + (sc_p->limb[i] & mask); in ossl_curve448_scalar_halve()
234 out->limb[i] = (c448_word_t)chain; in ossl_curve448_scalar_halve()
237 for (i = 0; i < C448_SCALAR_LIMBS - 1; i++) in ossl_curve448_scalar_halve()
238 out->limb[i] = out->limb[i] >> 1 | out->limb[i + 1] << (WBITS - 1); in ossl_curve448_scalar_halve()
239 out->limb[i] = out->limb[i] >> 1 | (c448_word_t)(chain << (WBITS - 1)); in ossl_curve448_scalar_halve()