Lines Matching refs:count

204 	context->count[0] = context->count[1] = 0;  in PHP_SHA1Init()
335 index = (unsigned int) ((context->count[0] >> 3) & 0x3F); in PHP_SHA1Update()
338 if ((context->count[0] += ((uint32_t) inputLen << 3)) in PHP_SHA1Update()
340 context->count[1]++; in PHP_SHA1Update()
341 context->count[1] += ((uint32_t) inputLen >> 29); in PHP_SHA1Update()
376 bits[7] = context->count[0] & 0xFF; in PHP_SHA1Final()
377 bits[6] = (context->count[0] >> 8) & 0xFF; in PHP_SHA1Final()
378 bits[5] = (context->count[0] >> 16) & 0xFF; in PHP_SHA1Final()
379 bits[4] = (context->count[0] >> 24) & 0xFF; in PHP_SHA1Final()
380 bits[3] = context->count[1] & 0xFF; in PHP_SHA1Final()
381 bits[2] = (context->count[1] >> 8) & 0xFF; in PHP_SHA1Final()
382 bits[1] = (context->count[1] >> 16) & 0xFF; in PHP_SHA1Final()
383 bits[0] = (context->count[1] >> 24) & 0xFF; in PHP_SHA1Final()
387 index = (unsigned int) ((context->count[0] >> 3) & 0x3f); in PHP_SHA1Final()
461 context->count[0] = context->count[1] = 0; in PHP_SHA256Init()
521 context->count[0] = context->count[1] = 0; in PHP_SHA224Init()
545 index = (unsigned int) ((context->count[0] >> 3) & 0x3F); in PHP_SHA224Update()
548 if ((context->count[0] += ((uint32_t) inputLen << 3)) < ((uint32_t) inputLen << 3)) { in PHP_SHA224Update()
549 context->count[1]++; in PHP_SHA224Update()
551 context->count[1] += ((uint32_t) inputLen >> 29); in PHP_SHA224Update()
585 bits[7] = (unsigned char) (context->count[0] & 0xFF); in PHP_SHA224Final()
586 bits[6] = (unsigned char) ((context->count[0] >> 8) & 0xFF); in PHP_SHA224Final()
587 bits[5] = (unsigned char) ((context->count[0] >> 16) & 0xFF); in PHP_SHA224Final()
588 bits[4] = (unsigned char) ((context->count[0] >> 24) & 0xFF); in PHP_SHA224Final()
589 bits[3] = (unsigned char) (context->count[1] & 0xFF); in PHP_SHA224Final()
590 bits[2] = (unsigned char) ((context->count[1] >> 8) & 0xFF); in PHP_SHA224Final()
591 bits[1] = (unsigned char) ((context->count[1] >> 16) & 0xFF); in PHP_SHA224Final()
592 bits[0] = (unsigned char) ((context->count[1] >> 24) & 0xFF); in PHP_SHA224Final()
596 index = (unsigned int) ((context->count[0] >> 3) & 0x3f); in PHP_SHA224Final()
622 index = (unsigned int) ((context->count[0] >> 3) & 0x3F); in PHP_SHA256Update()
625 if ((context->count[0] += ((uint32_t) inputLen << 3)) < ((uint32_t) inputLen << 3)) { in PHP_SHA256Update()
626 context->count[1]++; in PHP_SHA256Update()
628 context->count[1] += ((uint32_t) inputLen >> 29); in PHP_SHA256Update()
662 bits[7] = (unsigned char) (context->count[0] & 0xFF); in PHP_SHA256Final()
663 bits[6] = (unsigned char) ((context->count[0] >> 8) & 0xFF); in PHP_SHA256Final()
664 bits[5] = (unsigned char) ((context->count[0] >> 16) & 0xFF); in PHP_SHA256Final()
665 bits[4] = (unsigned char) ((context->count[0] >> 24) & 0xFF); in PHP_SHA256Final()
666 bits[3] = (unsigned char) (context->count[1] & 0xFF); in PHP_SHA256Final()
667 bits[2] = (unsigned char) ((context->count[1] >> 8) & 0xFF); in PHP_SHA256Final()
668 bits[1] = (unsigned char) ((context->count[1] >> 16) & 0xFF); in PHP_SHA256Final()
669 bits[0] = (unsigned char) ((context->count[1] >> 24) & 0xFF); in PHP_SHA256Final()
673 index = (unsigned int) ((context->count[0] >> 3) & 0x3f); in PHP_SHA256Final()
770 context->count[0] = context->count[1] = 0; in PHP_SHA384Init()
836 index = (unsigned int) ((context->count[0] >> 3) & 0x7F); in PHP_SHA384Update()
839 if ((context->count[0] += ((uint64_t) inputLen << 3)) < ((uint64_t) inputLen << 3)) { in PHP_SHA384Update()
840 context->count[1]++; in PHP_SHA384Update()
842 context->count[1] += ((uint64_t) inputLen >> 61); in PHP_SHA384Update()
874 bits[15] = (unsigned char) (context->count[0] & 0xFF); in PHP_SHA384Final()
875 bits[14] = (unsigned char) ((context->count[0] >> 8) & 0xFF); in PHP_SHA384Final()
876 bits[13] = (unsigned char) ((context->count[0] >> 16) & 0xFF); in PHP_SHA384Final()
877 bits[12] = (unsigned char) ((context->count[0] >> 24) & 0xFF); in PHP_SHA384Final()
878 bits[11] = (unsigned char) ((context->count[0] >> 32) & 0xFF); in PHP_SHA384Final()
879 bits[10] = (unsigned char) ((context->count[0] >> 40) & 0xFF); in PHP_SHA384Final()
880 bits[9] = (unsigned char) ((context->count[0] >> 48) & 0xFF); in PHP_SHA384Final()
881 bits[8] = (unsigned char) ((context->count[0] >> 56) & 0xFF); in PHP_SHA384Final()
882 bits[7] = (unsigned char) (context->count[1] & 0xFF); in PHP_SHA384Final()
883 bits[6] = (unsigned char) ((context->count[1] >> 8) & 0xFF); in PHP_SHA384Final()
884 bits[5] = (unsigned char) ((context->count[1] >> 16) & 0xFF); in PHP_SHA384Final()
885 bits[4] = (unsigned char) ((context->count[1] >> 24) & 0xFF); in PHP_SHA384Final()
886 bits[3] = (unsigned char) ((context->count[1] >> 32) & 0xFF); in PHP_SHA384Final()
887 bits[2] = (unsigned char) ((context->count[1] >> 40) & 0xFF); in PHP_SHA384Final()
888 bits[1] = (unsigned char) ((context->count[1] >> 48) & 0xFF); in PHP_SHA384Final()
889 bits[0] = (unsigned char) ((context->count[1] >> 56) & 0xFF); in PHP_SHA384Final()
893 index = (unsigned int) ((context->count[0] >> 3) & 0x7f); in PHP_SHA384Final()
925 context->count[0] = context->count[1] = 0; in PHP_SHA512Init()
944 context->count[0] = context->count[1] = 0; in PHP_SHA512_256Init()
962 context->count[0] = context->count[1] = 0; in PHP_SHA512_224Init()
985 index = (unsigned int) ((context->count[0] >> 3) & 0x7F); in PHP_SHA512Update()
988 if ((context->count[0] += ((uint64_t) inputLen << 3)) < ((uint64_t) inputLen << 3)) { in PHP_SHA512Update()
989 context->count[1]++; in PHP_SHA512Update()
991 context->count[1] += ((uint64_t) inputLen >> 61); in PHP_SHA512Update()
1025 bits[15] = (unsigned char) (context->count[0] & 0xFF); in PHP_SHA512Final()
1026 bits[14] = (unsigned char) ((context->count[0] >> 8) & 0xFF); in PHP_SHA512Final()
1027 bits[13] = (unsigned char) ((context->count[0] >> 16) & 0xFF); in PHP_SHA512Final()
1028 bits[12] = (unsigned char) ((context->count[0] >> 24) & 0xFF); in PHP_SHA512Final()
1029 bits[11] = (unsigned char) ((context->count[0] >> 32) & 0xFF); in PHP_SHA512Final()
1030 bits[10] = (unsigned char) ((context->count[0] >> 40) & 0xFF); in PHP_SHA512Final()
1031 bits[9] = (unsigned char) ((context->count[0] >> 48) & 0xFF); in PHP_SHA512Final()
1032 bits[8] = (unsigned char) ((context->count[0] >> 56) & 0xFF); in PHP_SHA512Final()
1033 bits[7] = (unsigned char) (context->count[1] & 0xFF); in PHP_SHA512Final()
1034 bits[6] = (unsigned char) ((context->count[1] >> 8) & 0xFF); in PHP_SHA512Final()
1035 bits[5] = (unsigned char) ((context->count[1] >> 16) & 0xFF); in PHP_SHA512Final()
1036 bits[4] = (unsigned char) ((context->count[1] >> 24) & 0xFF); in PHP_SHA512Final()
1037 bits[3] = (unsigned char) ((context->count[1] >> 32) & 0xFF); in PHP_SHA512Final()
1038 bits[2] = (unsigned char) ((context->count[1] >> 40) & 0xFF); in PHP_SHA512Final()
1039 bits[1] = (unsigned char) ((context->count[1] >> 48) & 0xFF); in PHP_SHA512Final()
1040 bits[0] = (unsigned char) ((context->count[1] >> 56) & 0xFF); in PHP_SHA512Final()
1044 index = (unsigned int) ((context->count[0] >> 3) & 0x7f); in PHP_SHA512Final()