Lines Matching refs:count
73 context->count[0] = context->count[1] = 0; in PHP_RIPEMD128Init()
88 context->count[0] = context->count[1] = 0; in PHP_RIPEMD256Init()
107 context->count[0] = context->count[1] = 0; in PHP_RIPEMD160Init()
123 context->count[0] = context->count[1] = 0; in PHP_RIPEMD320Init()
261 index = (unsigned int) ((context->count[0] >> 3) & 0x3F); in PHP_RIPEMD128Update()
264 if ((context->count[0] += ((php_hash_uint32) inputLen << 3)) < ((php_hash_uint32) inputLen << 3)) { in PHP_RIPEMD128Update()
265 context->count[1]++; in PHP_RIPEMD128Update()
267 context->count[1] += ((php_hash_uint32) inputLen >> 29); in PHP_RIPEMD128Update()
359 index = (unsigned int) ((context->count[0] >> 3) & 0x3F); in PHP_RIPEMD256Update()
362 if ((context->count[0] += ((php_hash_uint32) inputLen << 3)) < ((php_hash_uint32) inputLen << 3)) { in PHP_RIPEMD256Update()
363 context->count[1]++; in PHP_RIPEMD256Update()
365 context->count[1] += ((php_hash_uint32) inputLen >> 29); in PHP_RIPEMD256Update()
458 index = (unsigned int) ((context->count[0] >> 3) & 0x3F); in PHP_RIPEMD160Update()
461 if ((context->count[0] += ((php_hash_uint32) inputLen << 3)) < ((php_hash_uint32) inputLen << 3)) { in PHP_RIPEMD160Update()
462 context->count[1]++; in PHP_RIPEMD160Update()
464 context->count[1] += ((php_hash_uint32) inputLen >> 29); in PHP_RIPEMD160Update()
566 index = (unsigned int) ((context->count[0] >> 3) & 0x3F); in PHP_RIPEMD320Update()
569 if ((context->count[0] += ((php_hash_uint32) inputLen << 3)) < ((php_hash_uint32) inputLen << 3)) { in PHP_RIPEMD320Update()
570 context->count[1]++; in PHP_RIPEMD320Update()
572 context->count[1] += ((php_hash_uint32) inputLen >> 29); in PHP_RIPEMD320Update()
630 bits[0] = (unsigned char) (context->count[0] & 0xFF); in PHP_RIPEMD128Final()
631 bits[1] = (unsigned char) ((context->count[0] >> 8) & 0xFF); in PHP_RIPEMD128Final()
632 bits[2] = (unsigned char) ((context->count[0] >> 16) & 0xFF); in PHP_RIPEMD128Final()
633 bits[3] = (unsigned char) ((context->count[0] >> 24) & 0xFF); in PHP_RIPEMD128Final()
634 bits[4] = (unsigned char) (context->count[1] & 0xFF); in PHP_RIPEMD128Final()
635 bits[5] = (unsigned char) ((context->count[1] >> 8) & 0xFF); in PHP_RIPEMD128Final()
636 bits[6] = (unsigned char) ((context->count[1] >> 16) & 0xFF); in PHP_RIPEMD128Final()
637 bits[7] = (unsigned char) ((context->count[1] >> 24) & 0xFF); in PHP_RIPEMD128Final()
641 index = (unsigned int) ((context->count[0] >> 3) & 0x3f); in PHP_RIPEMD128Final()
667 bits[0] = (unsigned char) (context->count[0] & 0xFF); in PHP_RIPEMD256Final()
668 bits[1] = (unsigned char) ((context->count[0] >> 8) & 0xFF); in PHP_RIPEMD256Final()
669 bits[2] = (unsigned char) ((context->count[0] >> 16) & 0xFF); in PHP_RIPEMD256Final()
670 bits[3] = (unsigned char) ((context->count[0] >> 24) & 0xFF); in PHP_RIPEMD256Final()
671 bits[4] = (unsigned char) (context->count[1] & 0xFF); in PHP_RIPEMD256Final()
672 bits[5] = (unsigned char) ((context->count[1] >> 8) & 0xFF); in PHP_RIPEMD256Final()
673 bits[6] = (unsigned char) ((context->count[1] >> 16) & 0xFF); in PHP_RIPEMD256Final()
674 bits[7] = (unsigned char) ((context->count[1] >> 24) & 0xFF); in PHP_RIPEMD256Final()
678 index = (unsigned int) ((context->count[0] >> 3) & 0x3f); in PHP_RIPEMD256Final()
704 bits[0] = (unsigned char) (context->count[0] & 0xFF); in PHP_RIPEMD160Final()
705 bits[1] = (unsigned char) ((context->count[0] >> 8) & 0xFF); in PHP_RIPEMD160Final()
706 bits[2] = (unsigned char) ((context->count[0] >> 16) & 0xFF); in PHP_RIPEMD160Final()
707 bits[3] = (unsigned char) ((context->count[0] >> 24) & 0xFF); in PHP_RIPEMD160Final()
708 bits[4] = (unsigned char) (context->count[1] & 0xFF); in PHP_RIPEMD160Final()
709 bits[5] = (unsigned char) ((context->count[1] >> 8) & 0xFF); in PHP_RIPEMD160Final()
710 bits[6] = (unsigned char) ((context->count[1] >> 16) & 0xFF); in PHP_RIPEMD160Final()
711 bits[7] = (unsigned char) ((context->count[1] >> 24) & 0xFF); in PHP_RIPEMD160Final()
715 index = (unsigned int) ((context->count[0] >> 3) & 0x3f); in PHP_RIPEMD160Final()
741 bits[0] = (unsigned char) (context->count[0] & 0xFF); in PHP_RIPEMD320Final()
742 bits[1] = (unsigned char) ((context->count[0] >> 8) & 0xFF); in PHP_RIPEMD320Final()
743 bits[2] = (unsigned char) ((context->count[0] >> 16) & 0xFF); in PHP_RIPEMD320Final()
744 bits[3] = (unsigned char) ((context->count[0] >> 24) & 0xFF); in PHP_RIPEMD320Final()
745 bits[4] = (unsigned char) (context->count[1] & 0xFF); in PHP_RIPEMD320Final()
746 bits[5] = (unsigned char) ((context->count[1] >> 8) & 0xFF); in PHP_RIPEMD320Final()
747 bits[6] = (unsigned char) ((context->count[1] >> 16) & 0xFF); in PHP_RIPEMD320Final()
748 bits[7] = (unsigned char) ((context->count[1] >> 24) & 0xFF); in PHP_RIPEMD320Final()
752 index = (unsigned int) ((context->count[0] >> 3) & 0x3f); in PHP_RIPEMD320Final()