Lines Matching refs:state

144 static void PHP_3HAVALTransform(uint32_t state[8], const unsigned char block[128])  in PHP_3HAVALTransform()
153 E[i] = state[i]; in PHP_3HAVALTransform()
168 state[i] += E[i]; in PHP_3HAVALTransform()
178 static void PHP_4HAVALTransform(uint32_t state[8], const unsigned char block[128]) in PHP_4HAVALTransform()
187 E[i] = state[i]; in PHP_4HAVALTransform()
205 state[i] += E[i]; in PHP_4HAVALTransform()
215 static void PHP_5HAVALTransform(uint32_t state[8], const unsigned char block[128]) in PHP_5HAVALTransform()
224 E[i] = state[i]; in PHP_5HAVALTransform()
244 state[i] += E[i]; in PHP_5HAVALTransform()
261 for(i = 0; i < 8; i++) context->state[i] = D0[i]; \
303 context->Transform(context->state, context->buffer); in PHP_HAVALUpdate()
306 context->Transform(context->state, &input[i]); in PHP_HAVALUpdate()
347 context->state[3] += (context->state[7] & 0xFF000000) | in PHP_HAVAL128Final()
348 (context->state[6] & 0x00FF0000) | in PHP_HAVAL128Final()
349 (context->state[5] & 0x0000FF00) | in PHP_HAVAL128Final()
350 (context->state[4] & 0x000000FF); in PHP_HAVAL128Final()
352 context->state[2] += (((context->state[7] & 0x00FF0000) | in PHP_HAVAL128Final()
353 (context->state[6] & 0x0000FF00) | in PHP_HAVAL128Final()
354 (context->state[5] & 0x000000FF)) << 8) | in PHP_HAVAL128Final()
355 ((context->state[4] & 0xFF000000) >> 24); in PHP_HAVAL128Final()
357 context->state[1] += (((context->state[7] & 0x0000FF00) | in PHP_HAVAL128Final()
358 (context->state[6] & 0x000000FF)) << 16) | in PHP_HAVAL128Final()
359 (((context->state[5] & 0xFF000000) | in PHP_HAVAL128Final()
360 (context->state[4] & 0x00FF0000)) >> 16); in PHP_HAVAL128Final()
362 context->state[0] += ((context->state[7] & 0x000000FF) << 24) | in PHP_HAVAL128Final()
363 (((context->state[6] & 0xFF000000) | in PHP_HAVAL128Final()
364 (context->state[5] & 0x00FF0000) | in PHP_HAVAL128Final()
365 (context->state[4] & 0x0000FF00)) >> 8); in PHP_HAVAL128Final()
367 Encode(digest, context->state, 16); in PHP_HAVAL128Final()
401 context->state[4] += ((context->state[7] & 0xFE000000) | in PHP_HAVAL160Final()
402 (context->state[6] & 0x01F80000) | in PHP_HAVAL160Final()
403 (context->state[5] & 0x0007F000)) >> 12; in PHP_HAVAL160Final()
405 context->state[3] += ((context->state[7] & 0x01F80000) | in PHP_HAVAL160Final()
406 (context->state[6] & 0x0007F000) | in PHP_HAVAL160Final()
407 (context->state[5] & 0x00000FC0)) >> 6; in PHP_HAVAL160Final()
409 context->state[2] += (context->state[7] & 0x0007F000) | in PHP_HAVAL160Final()
410 (context->state[6] & 0x00000FC0) | in PHP_HAVAL160Final()
411 (context->state[5] & 0x0000003F); in PHP_HAVAL160Final()
413 context->state[1] += ROTR((context->state[7] & 0x00000FC0) | in PHP_HAVAL160Final()
414 (context->state[6] & 0x0000003F) | in PHP_HAVAL160Final()
415 (context->state[5] & 0xFE000000), 25); in PHP_HAVAL160Final()
417 context->state[0] += ROTR((context->state[7] & 0x0000003F) | in PHP_HAVAL160Final()
418 (context->state[6] & 0xFE000000) | in PHP_HAVAL160Final()
419 (context->state[5] & 0x01F80000), 19); in PHP_HAVAL160Final()
421 Encode(digest, context->state, 20); in PHP_HAVAL160Final()
455 context->state[5] += ((context->state[7] & 0xFC000000) | (context->state[6] & 0x03E00000)) >> 21; in PHP_HAVAL192Final()
456 context->state[4] += ((context->state[7] & 0x03E00000) | (context->state[6] & 0x001F0000)) >> 16; in PHP_HAVAL192Final()
457 context->state[3] += ((context->state[7] & 0x001F0000) | (context->state[6] & 0x0000FC00)) >> 10; in PHP_HAVAL192Final()
458 context->state[2] += ((context->state[7] & 0x0000FC00) | (context->state[6] & 0x000003E0)) >> 5; in PHP_HAVAL192Final()
459 context->state[1] += (context->state[7] & 0x000003E0) | (context->state[6] & 0x0000001F); in PHP_HAVAL192Final()
460 context->state[0] += ROTR((context->state[7] & 0x0000001F) | (context->state[6] & 0xFC000000), 26); in PHP_HAVAL192Final()
461 Encode(digest, context->state, 24); in PHP_HAVAL192Final()
495 context->state[6] += context->state[7] & 0x0000000F; in PHP_HAVAL224Final()
496 context->state[5] += (context->state[7] >> 4) & 0x0000001F; in PHP_HAVAL224Final()
497 context->state[4] += (context->state[7] >> 9) & 0x0000000F; in PHP_HAVAL224Final()
498 context->state[3] += (context->state[7] >> 13) & 0x0000001F; in PHP_HAVAL224Final()
499 context->state[2] += (context->state[7] >> 18) & 0x0000000F; in PHP_HAVAL224Final()
500 context->state[1] += (context->state[7] >> 22) & 0x0000001F; in PHP_HAVAL224Final()
501 context->state[0] += (context->state[7] >> 27) & 0x0000001F; in PHP_HAVAL224Final()
502 Encode(digest, context->state, 28); in PHP_HAVAL224Final()
536 Encode(digest, context->state, 32); in PHP_HAVAL256Final()