Lines Matching refs:count

209 	context->count[0] = context->count[1] = 0;  in PHP_SHA1Init()
340 index = (unsigned int) ((context->count[0] >> 3) & 0x3F); in PHP_SHA1Update()
343 if ((context->count[0] += ((uint32_t) inputLen << 3)) in PHP_SHA1Update()
345 context->count[1]++; in PHP_SHA1Update()
346 context->count[1] += ((uint32_t) inputLen >> 29); in PHP_SHA1Update()
381 bits[7] = context->count[0] & 0xFF; in PHP_SHA1Final()
382 bits[6] = (context->count[0] >> 8) & 0xFF; in PHP_SHA1Final()
383 bits[5] = (context->count[0] >> 16) & 0xFF; in PHP_SHA1Final()
384 bits[4] = (context->count[0] >> 24) & 0xFF; in PHP_SHA1Final()
385 bits[3] = context->count[1] & 0xFF; in PHP_SHA1Final()
386 bits[2] = (context->count[1] >> 8) & 0xFF; in PHP_SHA1Final()
387 bits[1] = (context->count[1] >> 16) & 0xFF; in PHP_SHA1Final()
388 bits[0] = (context->count[1] >> 24) & 0xFF; in PHP_SHA1Final()
392 index = (unsigned int) ((context->count[0] >> 3) & 0x3f); in PHP_SHA1Final()
466 context->count[0] = context->count[1] = 0; in PHP_SHA256Init()
526 context->count[0] = context->count[1] = 0; in PHP_SHA224Init()
550 index = (unsigned int) ((context->count[0] >> 3) & 0x3F); in PHP_SHA224Update()
553 if ((context->count[0] += ((uint32_t) inputLen << 3)) < ((uint32_t) inputLen << 3)) { in PHP_SHA224Update()
554 context->count[1]++; in PHP_SHA224Update()
556 context->count[1] += ((uint32_t) inputLen >> 29); in PHP_SHA224Update()
590 bits[7] = (unsigned char) (context->count[0] & 0xFF); in PHP_SHA224Final()
591 bits[6] = (unsigned char) ((context->count[0] >> 8) & 0xFF); in PHP_SHA224Final()
592 bits[5] = (unsigned char) ((context->count[0] >> 16) & 0xFF); in PHP_SHA224Final()
593 bits[4] = (unsigned char) ((context->count[0] >> 24) & 0xFF); in PHP_SHA224Final()
594 bits[3] = (unsigned char) (context->count[1] & 0xFF); in PHP_SHA224Final()
595 bits[2] = (unsigned char) ((context->count[1] >> 8) & 0xFF); in PHP_SHA224Final()
596 bits[1] = (unsigned char) ((context->count[1] >> 16) & 0xFF); in PHP_SHA224Final()
597 bits[0] = (unsigned char) ((context->count[1] >> 24) & 0xFF); in PHP_SHA224Final()
601 index = (unsigned int) ((context->count[0] >> 3) & 0x3f); in PHP_SHA224Final()
627 index = (unsigned int) ((context->count[0] >> 3) & 0x3F); in PHP_SHA256Update()
630 if ((context->count[0] += ((uint32_t) inputLen << 3)) < ((uint32_t) inputLen << 3)) { in PHP_SHA256Update()
631 context->count[1]++; in PHP_SHA256Update()
633 context->count[1] += ((uint32_t) inputLen >> 29); in PHP_SHA256Update()
667 bits[7] = (unsigned char) (context->count[0] & 0xFF); in PHP_SHA256Final()
668 bits[6] = (unsigned char) ((context->count[0] >> 8) & 0xFF); in PHP_SHA256Final()
669 bits[5] = (unsigned char) ((context->count[0] >> 16) & 0xFF); in PHP_SHA256Final()
670 bits[4] = (unsigned char) ((context->count[0] >> 24) & 0xFF); in PHP_SHA256Final()
671 bits[3] = (unsigned char) (context->count[1] & 0xFF); in PHP_SHA256Final()
672 bits[2] = (unsigned char) ((context->count[1] >> 8) & 0xFF); in PHP_SHA256Final()
673 bits[1] = (unsigned char) ((context->count[1] >> 16) & 0xFF); in PHP_SHA256Final()
674 bits[0] = (unsigned char) ((context->count[1] >> 24) & 0xFF); in PHP_SHA256Final()
678 index = (unsigned int) ((context->count[0] >> 3) & 0x3f); in PHP_SHA256Final()
775 context->count[0] = context->count[1] = 0; in PHP_SHA384Init()
841 index = (unsigned int) ((context->count[0] >> 3) & 0x7F); in PHP_SHA384Update()
844 if ((context->count[0] += ((uint64_t) inputLen << 3)) < ((uint64_t) inputLen << 3)) { in PHP_SHA384Update()
845 context->count[1]++; in PHP_SHA384Update()
847 context->count[1] += ((uint64_t) inputLen >> 61); in PHP_SHA384Update()
881 bits[15] = (unsigned char) (context->count[0] & 0xFF); in PHP_SHA384Final()
882 bits[14] = (unsigned char) ((context->count[0] >> 8) & 0xFF); in PHP_SHA384Final()
883 bits[13] = (unsigned char) ((context->count[0] >> 16) & 0xFF); in PHP_SHA384Final()
884 bits[12] = (unsigned char) ((context->count[0] >> 24) & 0xFF); in PHP_SHA384Final()
885 bits[11] = (unsigned char) ((context->count[0] >> 32) & 0xFF); in PHP_SHA384Final()
886 bits[10] = (unsigned char) ((context->count[0] >> 40) & 0xFF); in PHP_SHA384Final()
887 bits[9] = (unsigned char) ((context->count[0] >> 48) & 0xFF); in PHP_SHA384Final()
888 bits[8] = (unsigned char) ((context->count[0] >> 56) & 0xFF); in PHP_SHA384Final()
889 bits[7] = (unsigned char) (context->count[1] & 0xFF); in PHP_SHA384Final()
890 bits[6] = (unsigned char) ((context->count[1] >> 8) & 0xFF); in PHP_SHA384Final()
891 bits[5] = (unsigned char) ((context->count[1] >> 16) & 0xFF); in PHP_SHA384Final()
892 bits[4] = (unsigned char) ((context->count[1] >> 24) & 0xFF); in PHP_SHA384Final()
893 bits[3] = (unsigned char) ((context->count[1] >> 32) & 0xFF); in PHP_SHA384Final()
894 bits[2] = (unsigned char) ((context->count[1] >> 40) & 0xFF); in PHP_SHA384Final()
895 bits[1] = (unsigned char) ((context->count[1] >> 48) & 0xFF); in PHP_SHA384Final()
896 bits[0] = (unsigned char) ((context->count[1] >> 56) & 0xFF); in PHP_SHA384Final()
900 index = (unsigned int) ((context->count[0] >> 3) & 0x7f); in PHP_SHA384Final()
932 context->count[0] = context->count[1] = 0; in PHP_SHA512Init()
951 context->count[0] = context->count[1] = 0; in PHP_SHA512_256Init()
969 context->count[0] = context->count[1] = 0; in PHP_SHA512_224Init()
992 index = (unsigned int) ((context->count[0] >> 3) & 0x7F); in PHP_SHA512Update()
995 if ((context->count[0] += ((uint64_t) inputLen << 3)) < ((uint64_t) inputLen << 3)) { in PHP_SHA512Update()
996 context->count[1]++; in PHP_SHA512Update()
998 context->count[1] += ((uint64_t) inputLen >> 61); in PHP_SHA512Update()
1032 bits[15] = (unsigned char) (context->count[0] & 0xFF); in PHP_SHA512Final()
1033 bits[14] = (unsigned char) ((context->count[0] >> 8) & 0xFF); in PHP_SHA512Final()
1034 bits[13] = (unsigned char) ((context->count[0] >> 16) & 0xFF); in PHP_SHA512Final()
1035 bits[12] = (unsigned char) ((context->count[0] >> 24) & 0xFF); in PHP_SHA512Final()
1036 bits[11] = (unsigned char) ((context->count[0] >> 32) & 0xFF); in PHP_SHA512Final()
1037 bits[10] = (unsigned char) ((context->count[0] >> 40) & 0xFF); in PHP_SHA512Final()
1038 bits[9] = (unsigned char) ((context->count[0] >> 48) & 0xFF); in PHP_SHA512Final()
1039 bits[8] = (unsigned char) ((context->count[0] >> 56) & 0xFF); in PHP_SHA512Final()
1040 bits[7] = (unsigned char) (context->count[1] & 0xFF); in PHP_SHA512Final()
1041 bits[6] = (unsigned char) ((context->count[1] >> 8) & 0xFF); in PHP_SHA512Final()
1042 bits[5] = (unsigned char) ((context->count[1] >> 16) & 0xFF); in PHP_SHA512Final()
1043 bits[4] = (unsigned char) ((context->count[1] >> 24) & 0xFF); in PHP_SHA512Final()
1044 bits[3] = (unsigned char) ((context->count[1] >> 32) & 0xFF); in PHP_SHA512Final()
1045 bits[2] = (unsigned char) ((context->count[1] >> 40) & 0xFF); in PHP_SHA512Final()
1046 bits[1] = (unsigned char) ((context->count[1] >> 48) & 0xFF); in PHP_SHA512Final()
1047 bits[0] = (unsigned char) ((context->count[1] >> 56) & 0xFF); in PHP_SHA512Final()
1051 index = (unsigned int) ((context->count[0] >> 3) & 0x7f); in PHP_SHA512Final()