Lines Matching refs:i

38 #define R(key, h, i, t, l, r) \  argument
39 r = h[i]; \
40 l = h[i + 1]; \
126 s[i] = r; \
127 s[i + 1] = l;
200 R(key, h, i, t, l, r); \
202 if (i != 6) { \
204 if (i == 2) { \
212 int i; in Gost() local
218 for (i = 0; i < 8; i += 2) { in Gost()
229 int i, j; in GostTransform() local
232 for (i = 0, j = 0; i < 8; ++i, j += 4) { in GostTransform()
233 data[i] = ((php_hash_uint32) input[j]) | (((php_hash_uint32) input[j + 1]) << 8) | in GostTransform()
235 save = context->state[i + 8]; in GostTransform()
236 context->state[i + 8] += data[i] + temp; in GostTransform()
237 temp = ((context->state[i + 8] < data[i]) || (context->state[i + 8] < save)) ? 1 : 0; in GostTransform()
264 size_t i = 0, r = (context->length + len) % 32; in PHP_GOSTUpdate() local
267 i = 32 - context->length; in PHP_GOSTUpdate()
268 memcpy(&context->buffer[context->length], input, i); in PHP_GOSTUpdate()
272 for (; i + 32 <= len; i += 32) { in PHP_GOSTUpdate()
273 GostTransform(context, input + i); in PHP_GOSTUpdate()
276 memcpy(context->buffer, input + i, r); in PHP_GOSTUpdate()
284 php_hash_uint32 i, j, l[8] = {0}; in PHP_GOSTFinal() local
295 for (i = 0, j = 0; j < 32; i++, j += 4) { in PHP_GOSTFinal()
296 digest[j] = (unsigned char) (context->state[i] & 0xff); in PHP_GOSTFinal()
297 digest[j + 1] = (unsigned char) ((context->state[i] >> 8) & 0xff); in PHP_GOSTFinal()
298 digest[j + 2] = (unsigned char) ((context->state[i] >> 16) & 0xff); in PHP_GOSTFinal()
299 digest[j + 3] = (unsigned char) ((context->state[i] >> 24) & 0xff); in PHP_GOSTFinal()