Lines Matching refs:count
208 context->count[0] = context->count[1] = 0; in PHP_SHA1Init()
339 index = (unsigned int) ((context->count[0] >> 3) & 0x3F); in PHP_SHA1Update()
342 if ((context->count[0] += ((uint32_t) inputLen << 3)) in PHP_SHA1Update()
344 context->count[1]++; in PHP_SHA1Update()
345 context->count[1] += ((uint32_t) inputLen >> 29); in PHP_SHA1Update()
380 bits[7] = context->count[0] & 0xFF; in PHP_SHA1Final()
381 bits[6] = (context->count[0] >> 8) & 0xFF; in PHP_SHA1Final()
382 bits[5] = (context->count[0] >> 16) & 0xFF; in PHP_SHA1Final()
383 bits[4] = (context->count[0] >> 24) & 0xFF; in PHP_SHA1Final()
384 bits[3] = context->count[1] & 0xFF; in PHP_SHA1Final()
385 bits[2] = (context->count[1] >> 8) & 0xFF; in PHP_SHA1Final()
386 bits[1] = (context->count[1] >> 16) & 0xFF; in PHP_SHA1Final()
387 bits[0] = (context->count[1] >> 24) & 0xFF; in PHP_SHA1Final()
391 index = (unsigned int) ((context->count[0] >> 3) & 0x3f); in PHP_SHA1Final()
463 context->count[0] = context->count[1] = 0; in PHP_SHA256Init()
523 context->count[0] = context->count[1] = 0; in PHP_SHA224Init()
547 index = (unsigned int) ((context->count[0] >> 3) & 0x3F); in PHP_SHA224Update()
550 if ((context->count[0] += ((uint32_t) inputLen << 3)) < ((uint32_t) inputLen << 3)) { in PHP_SHA224Update()
551 context->count[1]++; in PHP_SHA224Update()
553 context->count[1] += ((uint32_t) inputLen >> 29); in PHP_SHA224Update()
587 bits[7] = (unsigned char) (context->count[0] & 0xFF); in PHP_SHA224Final()
588 bits[6] = (unsigned char) ((context->count[0] >> 8) & 0xFF); in PHP_SHA224Final()
589 bits[5] = (unsigned char) ((context->count[0] >> 16) & 0xFF); in PHP_SHA224Final()
590 bits[4] = (unsigned char) ((context->count[0] >> 24) & 0xFF); in PHP_SHA224Final()
591 bits[3] = (unsigned char) (context->count[1] & 0xFF); in PHP_SHA224Final()
592 bits[2] = (unsigned char) ((context->count[1] >> 8) & 0xFF); in PHP_SHA224Final()
593 bits[1] = (unsigned char) ((context->count[1] >> 16) & 0xFF); in PHP_SHA224Final()
594 bits[0] = (unsigned char) ((context->count[1] >> 24) & 0xFF); in PHP_SHA224Final()
598 index = (unsigned int) ((context->count[0] >> 3) & 0x3f); in PHP_SHA224Final()
624 index = (unsigned int) ((context->count[0] >> 3) & 0x3F); in PHP_SHA256Update()
627 if ((context->count[0] += ((uint32_t) inputLen << 3)) < ((uint32_t) inputLen << 3)) { in PHP_SHA256Update()
628 context->count[1]++; in PHP_SHA256Update()
630 context->count[1] += ((uint32_t) inputLen >> 29); in PHP_SHA256Update()
664 bits[7] = (unsigned char) (context->count[0] & 0xFF); in PHP_SHA256Final()
665 bits[6] = (unsigned char) ((context->count[0] >> 8) & 0xFF); in PHP_SHA256Final()
666 bits[5] = (unsigned char) ((context->count[0] >> 16) & 0xFF); in PHP_SHA256Final()
667 bits[4] = (unsigned char) ((context->count[0] >> 24) & 0xFF); in PHP_SHA256Final()
668 bits[3] = (unsigned char) (context->count[1] & 0xFF); in PHP_SHA256Final()
669 bits[2] = (unsigned char) ((context->count[1] >> 8) & 0xFF); in PHP_SHA256Final()
670 bits[1] = (unsigned char) ((context->count[1] >> 16) & 0xFF); in PHP_SHA256Final()
671 bits[0] = (unsigned char) ((context->count[1] >> 24) & 0xFF); in PHP_SHA256Final()
675 index = (unsigned int) ((context->count[0] >> 3) & 0x3f); in PHP_SHA256Final()
772 context->count[0] = context->count[1] = 0; in PHP_SHA384Init()
838 index = (unsigned int) ((context->count[0] >> 3) & 0x7F); in PHP_SHA384Update()
841 if ((context->count[0] += ((uint64_t) inputLen << 3)) < ((uint64_t) inputLen << 3)) { in PHP_SHA384Update()
842 context->count[1]++; in PHP_SHA384Update()
844 context->count[1] += ((uint64_t) inputLen >> 61); in PHP_SHA384Update()
878 bits[15] = (unsigned char) (context->count[0] & 0xFF); in PHP_SHA384Final()
879 bits[14] = (unsigned char) ((context->count[0] >> 8) & 0xFF); in PHP_SHA384Final()
880 bits[13] = (unsigned char) ((context->count[0] >> 16) & 0xFF); in PHP_SHA384Final()
881 bits[12] = (unsigned char) ((context->count[0] >> 24) & 0xFF); in PHP_SHA384Final()
882 bits[11] = (unsigned char) ((context->count[0] >> 32) & 0xFF); in PHP_SHA384Final()
883 bits[10] = (unsigned char) ((context->count[0] >> 40) & 0xFF); in PHP_SHA384Final()
884 bits[9] = (unsigned char) ((context->count[0] >> 48) & 0xFF); in PHP_SHA384Final()
885 bits[8] = (unsigned char) ((context->count[0] >> 56) & 0xFF); in PHP_SHA384Final()
886 bits[7] = (unsigned char) (context->count[1] & 0xFF); in PHP_SHA384Final()
887 bits[6] = (unsigned char) ((context->count[1] >> 8) & 0xFF); in PHP_SHA384Final()
888 bits[5] = (unsigned char) ((context->count[1] >> 16) & 0xFF); in PHP_SHA384Final()
889 bits[4] = (unsigned char) ((context->count[1] >> 24) & 0xFF); in PHP_SHA384Final()
890 bits[3] = (unsigned char) ((context->count[1] >> 32) & 0xFF); in PHP_SHA384Final()
891 bits[2] = (unsigned char) ((context->count[1] >> 40) & 0xFF); in PHP_SHA384Final()
892 bits[1] = (unsigned char) ((context->count[1] >> 48) & 0xFF); in PHP_SHA384Final()
893 bits[0] = (unsigned char) ((context->count[1] >> 56) & 0xFF); in PHP_SHA384Final()
897 index = (unsigned int) ((context->count[0] >> 3) & 0x7f); in PHP_SHA384Final()
928 context->count[0] = context->count[1] = 0; in PHP_SHA512Init()
947 context->count[0] = context->count[1] = 0; in PHP_SHA512_256Init()
965 context->count[0] = context->count[1] = 0; in PHP_SHA512_224Init()
988 index = (unsigned int) ((context->count[0] >> 3) & 0x7F); in PHP_SHA512Update()
991 if ((context->count[0] += ((uint64_t) inputLen << 3)) < ((uint64_t) inputLen << 3)) { in PHP_SHA512Update()
992 context->count[1]++; in PHP_SHA512Update()
994 context->count[1] += ((uint64_t) inputLen >> 61); in PHP_SHA512Update()
1028 bits[15] = (unsigned char) (context->count[0] & 0xFF); in PHP_SHA512Final()
1029 bits[14] = (unsigned char) ((context->count[0] >> 8) & 0xFF); in PHP_SHA512Final()
1030 bits[13] = (unsigned char) ((context->count[0] >> 16) & 0xFF); in PHP_SHA512Final()
1031 bits[12] = (unsigned char) ((context->count[0] >> 24) & 0xFF); in PHP_SHA512Final()
1032 bits[11] = (unsigned char) ((context->count[0] >> 32) & 0xFF); in PHP_SHA512Final()
1033 bits[10] = (unsigned char) ((context->count[0] >> 40) & 0xFF); in PHP_SHA512Final()
1034 bits[9] = (unsigned char) ((context->count[0] >> 48) & 0xFF); in PHP_SHA512Final()
1035 bits[8] = (unsigned char) ((context->count[0] >> 56) & 0xFF); in PHP_SHA512Final()
1036 bits[7] = (unsigned char) (context->count[1] & 0xFF); in PHP_SHA512Final()
1037 bits[6] = (unsigned char) ((context->count[1] >> 8) & 0xFF); in PHP_SHA512Final()
1038 bits[5] = (unsigned char) ((context->count[1] >> 16) & 0xFF); in PHP_SHA512Final()
1039 bits[4] = (unsigned char) ((context->count[1] >> 24) & 0xFF); in PHP_SHA512Final()
1040 bits[3] = (unsigned char) ((context->count[1] >> 32) & 0xFF); in PHP_SHA512Final()
1041 bits[2] = (unsigned char) ((context->count[1] >> 40) & 0xFF); in PHP_SHA512Final()
1042 bits[1] = (unsigned char) ((context->count[1] >> 48) & 0xFF); in PHP_SHA512Final()
1043 bits[0] = (unsigned char) ((context->count[1] >> 56) & 0xFF); in PHP_SHA512Final()
1047 index = (unsigned int) ((context->count[0] >> 3) & 0x7f); in PHP_SHA512Final()