Lines Matching refs:count
144 context->count[0] = context->count[1] = 0; in PHP_SHA256Init()
204 context->count[0] = context->count[1] = 0; in PHP_SHA224Init()
228 index = (unsigned int) ((context->count[0] >> 3) & 0x3F); in PHP_SHA224Update()
231 if ((context->count[0] += ((uint32_t) inputLen << 3)) < ((uint32_t) inputLen << 3)) { in PHP_SHA224Update()
232 context->count[1]++; in PHP_SHA224Update()
234 context->count[1] += ((uint32_t) inputLen >> 29); in PHP_SHA224Update()
268 bits[7] = (unsigned char) (context->count[0] & 0xFF); in PHP_SHA224Final()
269 bits[6] = (unsigned char) ((context->count[0] >> 8) & 0xFF); in PHP_SHA224Final()
270 bits[5] = (unsigned char) ((context->count[0] >> 16) & 0xFF); in PHP_SHA224Final()
271 bits[4] = (unsigned char) ((context->count[0] >> 24) & 0xFF); in PHP_SHA224Final()
272 bits[3] = (unsigned char) (context->count[1] & 0xFF); in PHP_SHA224Final()
273 bits[2] = (unsigned char) ((context->count[1] >> 8) & 0xFF); in PHP_SHA224Final()
274 bits[1] = (unsigned char) ((context->count[1] >> 16) & 0xFF); in PHP_SHA224Final()
275 bits[0] = (unsigned char) ((context->count[1] >> 24) & 0xFF); in PHP_SHA224Final()
279 index = (unsigned int) ((context->count[0] >> 3) & 0x3f); in PHP_SHA224Final()
305 index = (unsigned int) ((context->count[0] >> 3) & 0x3F); in PHP_SHA256Update()
308 if ((context->count[0] += ((uint32_t) inputLen << 3)) < ((uint32_t) inputLen << 3)) { in PHP_SHA256Update()
309 context->count[1]++; in PHP_SHA256Update()
311 context->count[1] += ((uint32_t) inputLen >> 29); in PHP_SHA256Update()
345 bits[7] = (unsigned char) (context->count[0] & 0xFF); in PHP_SHA256Final()
346 bits[6] = (unsigned char) ((context->count[0] >> 8) & 0xFF); in PHP_SHA256Final()
347 bits[5] = (unsigned char) ((context->count[0] >> 16) & 0xFF); in PHP_SHA256Final()
348 bits[4] = (unsigned char) ((context->count[0] >> 24) & 0xFF); in PHP_SHA256Final()
349 bits[3] = (unsigned char) (context->count[1] & 0xFF); in PHP_SHA256Final()
350 bits[2] = (unsigned char) ((context->count[1] >> 8) & 0xFF); in PHP_SHA256Final()
351 bits[1] = (unsigned char) ((context->count[1] >> 16) & 0xFF); in PHP_SHA256Final()
352 bits[0] = (unsigned char) ((context->count[1] >> 24) & 0xFF); in PHP_SHA256Final()
356 index = (unsigned int) ((context->count[0] >> 3) & 0x3f); in PHP_SHA256Final()
453 context->count[0] = context->count[1] = 0; in PHP_SHA384Init()
519 index = (unsigned int) ((context->count[0] >> 3) & 0x7F); in PHP_SHA384Update()
522 if ((context->count[0] += ((uint64_t) inputLen << 3)) < ((uint64_t) inputLen << 3)) { in PHP_SHA384Update()
523 context->count[1]++; in PHP_SHA384Update()
525 context->count[1] += ((uint64_t) inputLen >> 61); in PHP_SHA384Update()
557 bits[15] = (unsigned char) (context->count[0] & 0xFF); in PHP_SHA384Final()
558 bits[14] = (unsigned char) ((context->count[0] >> 8) & 0xFF); in PHP_SHA384Final()
559 bits[13] = (unsigned char) ((context->count[0] >> 16) & 0xFF); in PHP_SHA384Final()
560 bits[12] = (unsigned char) ((context->count[0] >> 24) & 0xFF); in PHP_SHA384Final()
561 bits[11] = (unsigned char) ((context->count[0] >> 32) & 0xFF); in PHP_SHA384Final()
562 bits[10] = (unsigned char) ((context->count[0] >> 40) & 0xFF); in PHP_SHA384Final()
563 bits[9] = (unsigned char) ((context->count[0] >> 48) & 0xFF); in PHP_SHA384Final()
564 bits[8] = (unsigned char) ((context->count[0] >> 56) & 0xFF); in PHP_SHA384Final()
565 bits[7] = (unsigned char) (context->count[1] & 0xFF); in PHP_SHA384Final()
566 bits[6] = (unsigned char) ((context->count[1] >> 8) & 0xFF); in PHP_SHA384Final()
567 bits[5] = (unsigned char) ((context->count[1] >> 16) & 0xFF); in PHP_SHA384Final()
568 bits[4] = (unsigned char) ((context->count[1] >> 24) & 0xFF); in PHP_SHA384Final()
569 bits[3] = (unsigned char) ((context->count[1] >> 32) & 0xFF); in PHP_SHA384Final()
570 bits[2] = (unsigned char) ((context->count[1] >> 40) & 0xFF); in PHP_SHA384Final()
571 bits[1] = (unsigned char) ((context->count[1] >> 48) & 0xFF); in PHP_SHA384Final()
572 bits[0] = (unsigned char) ((context->count[1] >> 56) & 0xFF); in PHP_SHA384Final()
576 index = (unsigned int) ((context->count[0] >> 3) & 0x7f); in PHP_SHA384Final()
612 context->count[0] = context->count[1] = 0; in PHP_SHA512Init()
631 context->count[0] = context->count[1] = 0; in PHP_SHA512_256Init()
649 context->count[0] = context->count[1] = 0; in PHP_SHA512_224Init()
672 index = (unsigned int) ((context->count[0] >> 3) & 0x7F); in PHP_SHA512Update()
675 if ((context->count[0] += ((uint64_t) inputLen << 3)) < ((uint64_t) inputLen << 3)) { in PHP_SHA512Update()
676 context->count[1]++; in PHP_SHA512Update()
678 context->count[1] += ((uint64_t) inputLen >> 61); in PHP_SHA512Update()
712 bits[15] = (unsigned char) (context->count[0] & 0xFF); in PHP_SHA512Final()
713 bits[14] = (unsigned char) ((context->count[0] >> 8) & 0xFF); in PHP_SHA512Final()
714 bits[13] = (unsigned char) ((context->count[0] >> 16) & 0xFF); in PHP_SHA512Final()
715 bits[12] = (unsigned char) ((context->count[0] >> 24) & 0xFF); in PHP_SHA512Final()
716 bits[11] = (unsigned char) ((context->count[0] >> 32) & 0xFF); in PHP_SHA512Final()
717 bits[10] = (unsigned char) ((context->count[0] >> 40) & 0xFF); in PHP_SHA512Final()
718 bits[9] = (unsigned char) ((context->count[0] >> 48) & 0xFF); in PHP_SHA512Final()
719 bits[8] = (unsigned char) ((context->count[0] >> 56) & 0xFF); in PHP_SHA512Final()
720 bits[7] = (unsigned char) (context->count[1] & 0xFF); in PHP_SHA512Final()
721 bits[6] = (unsigned char) ((context->count[1] >> 8) & 0xFF); in PHP_SHA512Final()
722 bits[5] = (unsigned char) ((context->count[1] >> 16) & 0xFF); in PHP_SHA512Final()
723 bits[4] = (unsigned char) ((context->count[1] >> 24) & 0xFF); in PHP_SHA512Final()
724 bits[3] = (unsigned char) ((context->count[1] >> 32) & 0xFF); in PHP_SHA512Final()
725 bits[2] = (unsigned char) ((context->count[1] >> 40) & 0xFF); in PHP_SHA512Final()
726 bits[1] = (unsigned char) ((context->count[1] >> 48) & 0xFF); in PHP_SHA512Final()
727 bits[0] = (unsigned char) ((context->count[1] >> 56) & 0xFF); in PHP_SHA512Final()
731 index = (unsigned int) ((context->count[0] >> 3) & 0x7f); in PHP_SHA512Final()