Lines Matching refs:i
99 unsigned int i, j; in Encode() local
101 for (i = 0, j = 0; j < len; i++, j += 4) { in Encode()
102 output[j] = (unsigned char) (input[i] & 0xff); in Encode()
103 output[j + 1] = (unsigned char) ((input[i] >> 8) & 0xff); in Encode()
104 output[j + 2] = (unsigned char) ((input[i] >> 16) & 0xff); in Encode()
105 output[j + 3] = (unsigned char) ((input[i] >> 24) & 0xff); in Encode()
116 unsigned int i, j; in Decode() local
118 for (i = 0, j = 0; j < len; i++, j += 4) { in Decode()
119 output[i] = ((uint32_t) input[j]) | (((uint32_t) input[j + 1]) << 8) | in Decode()
143 int i; in PHP_3HAVALTransform() local
147 for(i = 0; i < 8; i++) { in PHP_3HAVALTransform()
148 E[i] = state[i]; in PHP_3HAVALTransform()
151 for(i = 0; i < 32; i++) { in PHP_3HAVALTransform()
152 …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()
154 for(i = 0; i < 32; i++) { in PHP_3HAVALTransform()
155 …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()
157 for(i = 0; i < 32; i++) { in PHP_3HAVALTransform()
158 …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()
162 for(i = 0; i < 8; i++) { in PHP_3HAVALTransform()
163 state[i] += E[i]; in PHP_3HAVALTransform()
176 int i; in PHP_4HAVALTransform() local
180 for(i = 0; i < 8; i++) { in PHP_4HAVALTransform()
181 E[i] = state[i]; in PHP_4HAVALTransform()
184 for(i = 0; i < 32; i++) { in PHP_4HAVALTransform()
185 …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()
187 for(i = 0; i < 32; i++) { in PHP_4HAVALTransform()
188 …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()
190 for(i = 0; i < 32; i++) { in PHP_4HAVALTransform()
191 …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()
193 for(i = 0; i < 32; i++) { in PHP_4HAVALTransform()
194 …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()
198 for(i = 0; i < 8; i++) { in PHP_4HAVALTransform()
199 state[i] += E[i]; in PHP_4HAVALTransform()
212 int i; in PHP_5HAVALTransform() local
216 for(i = 0; i < 8; i++) { in PHP_5HAVALTransform()
217 E[i] = state[i]; in PHP_5HAVALTransform()
219 for(i = 0; i < 32; i++) { in PHP_5HAVALTransform()
220 …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()
222 for(i = 0; i < 32; i++) { in PHP_5HAVALTransform()
223 …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()
225 for(i = 0; i < 32; i++) { in PHP_5HAVALTransform()
226 …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()
228 for(i = 0; i < 32; i++) { in PHP_5HAVALTransform()
229 …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()
231 for(i = 0; i < 32; i++) { in PHP_5HAVALTransform()
232 …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()
236 for(i = 0; i < 8; i++) { in PHP_5HAVALTransform()
237 state[i] += E[i]; in PHP_5HAVALTransform()
257 { int i; context->count[0] = context->count[1] = 0; \
258 for(i = 0; i < 8; i++) context->state[i] = D0[i]; \
283 unsigned int i, index, partLen; in PHP_HAVALUpdate() local
301 for (i = partLen; i + 127 < inputLen; i += 128) { in PHP_HAVALUpdate()
302 context->Transform(context->state, &input[i]); in PHP_HAVALUpdate()
307 i = 0; in PHP_HAVALUpdate()
311 memcpy((unsigned char*) &context->buffer[index], (unsigned char*) &input[i], inputLen - i); in PHP_HAVALUpdate()