Lines Matching refs:i
103 unsigned int i, j; in Encode() local
105 for (i = 0, j = 0; j < len; i++, j += 4) { in Encode()
106 output[j] = (unsigned char) (input[i] & 0xff); in Encode()
107 output[j + 1] = (unsigned char) ((input[i] >> 8) & 0xff); in Encode()
108 output[j + 2] = (unsigned char) ((input[i] >> 16) & 0xff); in Encode()
109 output[j + 3] = (unsigned char) ((input[i] >> 24) & 0xff); in Encode()
120 unsigned int i, j; in Decode() local
122 for (i = 0, j = 0; j < len; i++, j += 4) { in Decode()
123 output[i] = ((php_hash_uint32) input[j]) | (((php_hash_uint32) input[j + 1]) << 8) | in Decode()
148 int i; in PHP_3HAVALTransform() local
152 for(i = 0; i < 8; i++) { in PHP_3HAVALTransform()
153 E[i] = state[i]; in PHP_3HAVALTransform()
156 for(i = 0; i < 32; i++) { in PHP_3HAVALTransform()
157 …E[7 - (i % 8)] = ROTR(F1(E[M1[i]],E[M0[i]],E[M3[i]],E[M5[i]],E[M6[i]],E[M2[i]],E[M4[i]]),7) + ROTR… in PHP_3HAVALTransform()
159 for(i = 0; i < 32; i++) { in PHP_3HAVALTransform()
160 …E[7 - (i % 8)] = ROTR(F2(E[M4[i]],E[M2[i]],E[M1[i]],E[M0[i]],E[M5[i]],E[M3[i]],E[M6[i]]),7) + ROTR… in PHP_3HAVALTransform()
162 for(i = 0; i < 32; i++) { in PHP_3HAVALTransform()
163 …E[7 - (i % 8)] = ROTR(F3(E[M6[i]],E[M1[i]],E[M2[i]],E[M3[i]],E[M4[i]],E[M5[i]],E[M0[i]]),7) + ROTR… in PHP_3HAVALTransform()
167 for(i = 0; i < 8; i++) { in PHP_3HAVALTransform()
168 state[i] += E[i]; in PHP_3HAVALTransform()
182 int i; in PHP_4HAVALTransform() local
186 for(i = 0; i < 8; i++) { in PHP_4HAVALTransform()
187 E[i] = state[i]; in PHP_4HAVALTransform()
190 for(i = 0; i < 32; i++) { in PHP_4HAVALTransform()
191 …E[7 - (i % 8)] = ROTR(F1(E[M2[i]],E[M6[i]],E[M1[i]],E[M4[i]],E[M5[i]],E[M3[i]],E[M0[i]]),7) + ROTR… in PHP_4HAVALTransform()
193 for(i = 0; i < 32; i++) { in PHP_4HAVALTransform()
194 …E[7 - (i % 8)] = ROTR(F2(E[M3[i]],E[M5[i]],E[M2[i]],E[M0[i]],E[M1[i]],E[M6[i]],E[M4[i]]),7) + ROTR… in PHP_4HAVALTransform()
196 for(i = 0; i < 32; i++) { in PHP_4HAVALTransform()
197 …E[7 - (i % 8)] = ROTR(F3(E[M1[i]],E[M4[i]],E[M3[i]],E[M6[i]],E[M0[i]],E[M2[i]],E[M5[i]]),7) + ROTR… in PHP_4HAVALTransform()
199 for(i = 0; i < 32; i++) { in PHP_4HAVALTransform()
200 …E[7 - (i % 8)] = ROTR(F4(E[M6[i]],E[M4[i]],E[M0[i]],E[M5[i]],E[M2[i]],E[M1[i]],E[M3[i]]),7) + ROTR… in PHP_4HAVALTransform()
204 for(i = 0; i < 8; i++) { in PHP_4HAVALTransform()
205 state[i] += E[i]; in PHP_4HAVALTransform()
219 int i; in PHP_5HAVALTransform() local
223 for(i = 0; i < 8; i++) { in PHP_5HAVALTransform()
224 E[i] = state[i]; in PHP_5HAVALTransform()
226 for(i = 0; i < 32; i++) { in PHP_5HAVALTransform()
227 …E[7 - (i % 8)] = ROTR(F1(E[M3[i]],E[M4[i]],E[M1[i]],E[M0[i]],E[M5[i]],E[M2[i]],E[M6[i]]),7) + ROTR… in PHP_5HAVALTransform()
229 for(i = 0; i < 32; i++) { in PHP_5HAVALTransform()
230 …E[7 - (i % 8)] = ROTR(F2(E[M6[i]],E[M2[i]],E[M1[i]],E[M0[i]],E[M3[i]],E[M4[i]],E[M5[i]]),7) + ROTR… in PHP_5HAVALTransform()
232 for(i = 0; i < 32; i++) { in PHP_5HAVALTransform()
233 …E[7 - (i % 8)] = ROTR(F3(E[M2[i]],E[M6[i]],E[M0[i]],E[M4[i]],E[M3[i]],E[M1[i]],E[M5[i]]),7) + ROTR… in PHP_5HAVALTransform()
235 for(i = 0; i < 32; i++) { in PHP_5HAVALTransform()
236 …E[7 - (i % 8)] = ROTR(F4(E[M1[i]],E[M5[i]],E[M3[i]],E[M2[i]],E[M0[i]],E[M4[i]],E[M6[i]]),7) + ROTR… in PHP_5HAVALTransform()
238 for(i = 0; i < 32; i++) { in PHP_5HAVALTransform()
239 …E[7 - (i % 8)] = ROTR(F5(E[M2[i]],E[M5[i]],E[M0[i]],E[M6[i]],E[M4[i]],E[M3[i]],E[M1[i]]),7) + ROTR… in PHP_5HAVALTransform()
243 for(i = 0; i < 8; i++) { in PHP_5HAVALTransform()
244 state[i] += E[i]; in PHP_5HAVALTransform()
260 { int i; context->count[0] = context->count[1] = 0; \
261 for(i = 0; i < 8; i++) context->state[i] = D0[i]; \
287 unsigned int i, index, partLen; in PHP_HAVALUpdate() local
305 for (i = partLen; i + 127 < inputLen; i += 128) { in PHP_HAVALUpdate()
306 context->Transform(context->state, &input[i]); in PHP_HAVALUpdate()
311 i = 0; in PHP_HAVALUpdate()
315 memcpy((unsigned char*) &context->buffer[index], (unsigned char*) &input[i], inputLen - i); in PHP_HAVALUpdate()