Lines Matching refs:count
144 context->count[0] = context->count[1] = 0; in PHP_SHA256InitArgs()
204 context->count[0] = context->count[1] = 0; in PHP_SHA224InitArgs()
229 index = (unsigned int) ((context->count[0] >> 3) & 0x3F); in PHP_SHA224Update()
232 if ((context->count[0] += ((uint32_t) inputLen << 3)) < ((uint32_t) inputLen << 3)) { in PHP_SHA224Update()
233 context->count[1]++; in PHP_SHA224Update()
235 context->count[1] += (uint32_t) (inputLen >> 29); in PHP_SHA224Update()
269 bits[7] = (unsigned char) (context->count[0] & 0xFF); in PHP_SHA224Final()
270 bits[6] = (unsigned char) ((context->count[0] >> 8) & 0xFF); in PHP_SHA224Final()
271 bits[5] = (unsigned char) ((context->count[0] >> 16) & 0xFF); in PHP_SHA224Final()
272 bits[4] = (unsigned char) ((context->count[0] >> 24) & 0xFF); in PHP_SHA224Final()
273 bits[3] = (unsigned char) (context->count[1] & 0xFF); in PHP_SHA224Final()
274 bits[2] = (unsigned char) ((context->count[1] >> 8) & 0xFF); in PHP_SHA224Final()
275 bits[1] = (unsigned char) ((context->count[1] >> 16) & 0xFF); in PHP_SHA224Final()
276 bits[0] = (unsigned char) ((context->count[1] >> 24) & 0xFF); in PHP_SHA224Final()
280 index = (unsigned int) ((context->count[0] >> 3) & 0x3f); in PHP_SHA224Final()
307 index = (unsigned int) ((context->count[0] >> 3) & 0x3F); in PHP_SHA256Update()
310 if ((context->count[0] += ((uint32_t) inputLen << 3)) < ((uint32_t) inputLen << 3)) { in PHP_SHA256Update()
311 context->count[1]++; in PHP_SHA256Update()
313 context->count[1] += (uint32_t) (inputLen >> 29); in PHP_SHA256Update()
347 bits[7] = (unsigned char) (context->count[0] & 0xFF); in PHP_SHA256Final()
348 bits[6] = (unsigned char) ((context->count[0] >> 8) & 0xFF); in PHP_SHA256Final()
349 bits[5] = (unsigned char) ((context->count[0] >> 16) & 0xFF); in PHP_SHA256Final()
350 bits[4] = (unsigned char) ((context->count[0] >> 24) & 0xFF); in PHP_SHA256Final()
351 bits[3] = (unsigned char) (context->count[1] & 0xFF); in PHP_SHA256Final()
352 bits[2] = (unsigned char) ((context->count[1] >> 8) & 0xFF); in PHP_SHA256Final()
353 bits[1] = (unsigned char) ((context->count[1] >> 16) & 0xFF); in PHP_SHA256Final()
354 bits[0] = (unsigned char) ((context->count[1] >> 24) & 0xFF); in PHP_SHA256Final()
358 index = (unsigned int) ((context->count[0] >> 3) & 0x3f); in PHP_SHA256Final()
455 context->count[0] = context->count[1] = 0; in PHP_SHA384InitArgs()
522 index = (unsigned int) ((context->count[0] >> 3) & 0x7F); in PHP_SHA384Update()
525 if ((context->count[0] += ((uint64_t) inputLen << 3)) < ((uint64_t) inputLen << 3)) { in PHP_SHA384Update()
526 context->count[1]++; in PHP_SHA384Update()
529 context->count[1] += (uint64_t) inputLen >> 61; in PHP_SHA384Update()
561 bits[15] = (unsigned char) (context->count[0] & 0xFF); in PHP_SHA384Final()
562 bits[14] = (unsigned char) ((context->count[0] >> 8) & 0xFF); in PHP_SHA384Final()
563 bits[13] = (unsigned char) ((context->count[0] >> 16) & 0xFF); in PHP_SHA384Final()
564 bits[12] = (unsigned char) ((context->count[0] >> 24) & 0xFF); in PHP_SHA384Final()
565 bits[11] = (unsigned char) ((context->count[0] >> 32) & 0xFF); in PHP_SHA384Final()
566 bits[10] = (unsigned char) ((context->count[0] >> 40) & 0xFF); in PHP_SHA384Final()
567 bits[9] = (unsigned char) ((context->count[0] >> 48) & 0xFF); in PHP_SHA384Final()
568 bits[8] = (unsigned char) ((context->count[0] >> 56) & 0xFF); in PHP_SHA384Final()
569 bits[7] = (unsigned char) (context->count[1] & 0xFF); in PHP_SHA384Final()
570 bits[6] = (unsigned char) ((context->count[1] >> 8) & 0xFF); in PHP_SHA384Final()
571 bits[5] = (unsigned char) ((context->count[1] >> 16) & 0xFF); in PHP_SHA384Final()
572 bits[4] = (unsigned char) ((context->count[1] >> 24) & 0xFF); in PHP_SHA384Final()
573 bits[3] = (unsigned char) ((context->count[1] >> 32) & 0xFF); in PHP_SHA384Final()
574 bits[2] = (unsigned char) ((context->count[1] >> 40) & 0xFF); in PHP_SHA384Final()
575 bits[1] = (unsigned char) ((context->count[1] >> 48) & 0xFF); in PHP_SHA384Final()
576 bits[0] = (unsigned char) ((context->count[1] >> 56) & 0xFF); in PHP_SHA384Final()
580 index = (unsigned int) ((context->count[0] >> 3) & 0x7f); in PHP_SHA384Final()
616 context->count[0] = context->count[1] = 0; in PHP_SHA512InitArgs()
635 context->count[0] = context->count[1] = 0; in PHP_SHA512_256InitArgs()
653 context->count[0] = context->count[1] = 0; in PHP_SHA512_224InitArgs()
677 index = (unsigned int) ((context->count[0] >> 3) & 0x7F); in PHP_SHA512Update()
680 if ((context->count[0] += ((uint64_t) inputLen << 3)) < ((uint64_t) inputLen << 3)) { in PHP_SHA512Update()
681 context->count[1]++; in PHP_SHA512Update()
684 context->count[1] += (uint64_t) inputLen >> 61; in PHP_SHA512Update()
718 bits[15] = (unsigned char) (context->count[0] & 0xFF); in PHP_SHA512Final()
719 bits[14] = (unsigned char) ((context->count[0] >> 8) & 0xFF); in PHP_SHA512Final()
720 bits[13] = (unsigned char) ((context->count[0] >> 16) & 0xFF); in PHP_SHA512Final()
721 bits[12] = (unsigned char) ((context->count[0] >> 24) & 0xFF); in PHP_SHA512Final()
722 bits[11] = (unsigned char) ((context->count[0] >> 32) & 0xFF); in PHP_SHA512Final()
723 bits[10] = (unsigned char) ((context->count[0] >> 40) & 0xFF); in PHP_SHA512Final()
724 bits[9] = (unsigned char) ((context->count[0] >> 48) & 0xFF); in PHP_SHA512Final()
725 bits[8] = (unsigned char) ((context->count[0] >> 56) & 0xFF); in PHP_SHA512Final()
726 bits[7] = (unsigned char) (context->count[1] & 0xFF); in PHP_SHA512Final()
727 bits[6] = (unsigned char) ((context->count[1] >> 8) & 0xFF); in PHP_SHA512Final()
728 bits[5] = (unsigned char) ((context->count[1] >> 16) & 0xFF); in PHP_SHA512Final()
729 bits[4] = (unsigned char) ((context->count[1] >> 24) & 0xFF); in PHP_SHA512Final()
730 bits[3] = (unsigned char) ((context->count[1] >> 32) & 0xFF); in PHP_SHA512Final()
731 bits[2] = (unsigned char) ((context->count[1] >> 40) & 0xFF); in PHP_SHA512Final()
732 bits[1] = (unsigned char) ((context->count[1] >> 48) & 0xFF); in PHP_SHA512Final()
733 bits[0] = (unsigned char) ((context->count[1] >> 56) & 0xFF); in PHP_SHA512Final()
737 index = (unsigned int) ((context->count[0] >> 3) & 0x7f); in PHP_SHA512Final()