Lines Matching refs:i
101 unsigned int i, j; in Encode() local
103 for (i = 0, j = 0; j < len; i++, j += 4) { in Encode()
104 output[j] = (unsigned char) (input[i] & 0xff); in Encode()
105 output[j + 1] = (unsigned char) ((input[i] >> 8) & 0xff); in Encode()
106 output[j + 2] = (unsigned char) ((input[i] >> 16) & 0xff); in Encode()
107 output[j + 3] = (unsigned char) ((input[i] >> 24) & 0xff); in Encode()
118 unsigned int i, j; in Decode() local
120 for (i = 0, j = 0; j < len; i++, j += 4) { in Decode()
121 output[i] = ((uint32_t) input[j]) | (((uint32_t) input[j + 1]) << 8) | in Decode()
146 int i; in PHP_3HAVALTransform() local
150 for(i = 0; i < 8; i++) { in PHP_3HAVALTransform()
151 E[i] = state[i]; in PHP_3HAVALTransform()
154 for(i = 0; i < 32; i++) { in PHP_3HAVALTransform()
155 …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()
157 for(i = 0; i < 32; i++) { in PHP_3HAVALTransform()
158 …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()
160 for(i = 0; i < 32; i++) { in PHP_3HAVALTransform()
161 …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()
165 for(i = 0; i < 8; i++) { in PHP_3HAVALTransform()
166 state[i] += E[i]; in PHP_3HAVALTransform()
180 int i; in PHP_4HAVALTransform() local
184 for(i = 0; i < 8; i++) { in PHP_4HAVALTransform()
185 E[i] = state[i]; in PHP_4HAVALTransform()
188 for(i = 0; i < 32; i++) { in PHP_4HAVALTransform()
189 …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()
191 for(i = 0; i < 32; i++) { in PHP_4HAVALTransform()
192 …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()
194 for(i = 0; i < 32; i++) { in PHP_4HAVALTransform()
195 …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()
197 for(i = 0; i < 32; i++) { in PHP_4HAVALTransform()
198 …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()
202 for(i = 0; i < 8; i++) { in PHP_4HAVALTransform()
203 state[i] += E[i]; in PHP_4HAVALTransform()
217 int i; in PHP_5HAVALTransform() local
221 for(i = 0; i < 8; i++) { in PHP_5HAVALTransform()
222 E[i] = state[i]; in PHP_5HAVALTransform()
224 for(i = 0; i < 32; i++) { in PHP_5HAVALTransform()
225 …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()
227 for(i = 0; i < 32; i++) { in PHP_5HAVALTransform()
228 …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()
230 for(i = 0; i < 32; i++) { in PHP_5HAVALTransform()
231 …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()
233 for(i = 0; i < 32; i++) { in PHP_5HAVALTransform()
234 …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()
236 for(i = 0; i < 32; i++) { in PHP_5HAVALTransform()
237 …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()
241 for(i = 0; i < 8; i++) { in PHP_5HAVALTransform()
242 state[i] += E[i]; in PHP_5HAVALTransform()
258 { int i; context->count[0] = context->count[1] = 0; \
259 for(i = 0; i < 8; i++) context->state[i] = D0[i]; \
285 unsigned int i, index, partLen; in PHP_HAVALUpdate() local
303 for (i = partLen; i + 127 < inputLen; i += 128) { in PHP_HAVALUpdate()
304 context->Transform(context->state, &input[i]); in PHP_HAVALUpdate()
309 i = 0; in PHP_HAVALUpdate()
313 memcpy((unsigned char*) &context->buffer[index], (unsigned char*) &input[i], inputLen - i); in PHP_HAVALUpdate()