Lines Matching refs:count

145 	context->count[0] = context->count[1] = 0;  in PHP_SHA256InitArgs()
223 context->count[0] = context->count[1] = 0; in PHP_SHA224InitArgs()
248 index = (unsigned int) ((context->count[0] >> 3) & 0x3F); in PHP_SHA224Update()
251 if ((context->count[0] += ((uint32_t) inputLen << 3)) < ((uint32_t) inputLen << 3)) { in PHP_SHA224Update()
252 context->count[1]++; in PHP_SHA224Update()
254 context->count[1] += (uint32_t) (inputLen >> 29); in PHP_SHA224Update()
288 bits[7] = (unsigned char) (context->count[0] & 0xFF); in PHP_SHA224Final()
289 bits[6] = (unsigned char) ((context->count[0] >> 8) & 0xFF); in PHP_SHA224Final()
290 bits[5] = (unsigned char) ((context->count[0] >> 16) & 0xFF); in PHP_SHA224Final()
291 bits[4] = (unsigned char) ((context->count[0] >> 24) & 0xFF); in PHP_SHA224Final()
292 bits[3] = (unsigned char) (context->count[1] & 0xFF); in PHP_SHA224Final()
293 bits[2] = (unsigned char) ((context->count[1] >> 8) & 0xFF); in PHP_SHA224Final()
294 bits[1] = (unsigned char) ((context->count[1] >> 16) & 0xFF); in PHP_SHA224Final()
295 bits[0] = (unsigned char) ((context->count[1] >> 24) & 0xFF); in PHP_SHA224Final()
299 index = (unsigned int) ((context->count[0] >> 3) & 0x3f); in PHP_SHA224Final()
326 index = (unsigned int) ((context->count[0] >> 3) & 0x3F); in PHP_SHA256Update()
329 if ((context->count[0] += ((uint32_t) inputLen << 3)) < ((uint32_t) inputLen << 3)) { in PHP_SHA256Update()
330 context->count[1]++; in PHP_SHA256Update()
332 context->count[1] += (uint32_t) (inputLen >> 29); in PHP_SHA256Update()
366 bits[7] = (unsigned char) (context->count[0] & 0xFF); in PHP_SHA256Final()
367 bits[6] = (unsigned char) ((context->count[0] >> 8) & 0xFF); in PHP_SHA256Final()
368 bits[5] = (unsigned char) ((context->count[0] >> 16) & 0xFF); in PHP_SHA256Final()
369 bits[4] = (unsigned char) ((context->count[0] >> 24) & 0xFF); in PHP_SHA256Final()
370 bits[3] = (unsigned char) (context->count[1] & 0xFF); in PHP_SHA256Final()
371 bits[2] = (unsigned char) ((context->count[1] >> 8) & 0xFF); in PHP_SHA256Final()
372 bits[1] = (unsigned char) ((context->count[1] >> 16) & 0xFF); in PHP_SHA256Final()
373 bits[0] = (unsigned char) ((context->count[1] >> 24) & 0xFF); in PHP_SHA256Final()
377 index = (unsigned int) ((context->count[0] >> 3) & 0x3f); in PHP_SHA256Final()
474 context->count[0] = context->count[1] = 0; in PHP_SHA384InitArgs()
541 index = (unsigned int) ((context->count[0] >> 3) & 0x7F); in PHP_SHA384Update()
544 if ((context->count[0] += ((uint64_t) inputLen << 3)) < ((uint64_t) inputLen << 3)) { in PHP_SHA384Update()
545 context->count[1]++; in PHP_SHA384Update()
548 context->count[1] += (uint64_t) inputLen >> 61; in PHP_SHA384Update()
580 bits[15] = (unsigned char) (context->count[0] & 0xFF); in PHP_SHA384Final()
581 bits[14] = (unsigned char) ((context->count[0] >> 8) & 0xFF); in PHP_SHA384Final()
582 bits[13] = (unsigned char) ((context->count[0] >> 16) & 0xFF); in PHP_SHA384Final()
583 bits[12] = (unsigned char) ((context->count[0] >> 24) & 0xFF); in PHP_SHA384Final()
584 bits[11] = (unsigned char) ((context->count[0] >> 32) & 0xFF); in PHP_SHA384Final()
585 bits[10] = (unsigned char) ((context->count[0] >> 40) & 0xFF); in PHP_SHA384Final()
586 bits[9] = (unsigned char) ((context->count[0] >> 48) & 0xFF); in PHP_SHA384Final()
587 bits[8] = (unsigned char) ((context->count[0] >> 56) & 0xFF); in PHP_SHA384Final()
588 bits[7] = (unsigned char) (context->count[1] & 0xFF); in PHP_SHA384Final()
589 bits[6] = (unsigned char) ((context->count[1] >> 8) & 0xFF); in PHP_SHA384Final()
590 bits[5] = (unsigned char) ((context->count[1] >> 16) & 0xFF); in PHP_SHA384Final()
591 bits[4] = (unsigned char) ((context->count[1] >> 24) & 0xFF); in PHP_SHA384Final()
592 bits[3] = (unsigned char) ((context->count[1] >> 32) & 0xFF); in PHP_SHA384Final()
593 bits[2] = (unsigned char) ((context->count[1] >> 40) & 0xFF); in PHP_SHA384Final()
594 bits[1] = (unsigned char) ((context->count[1] >> 48) & 0xFF); in PHP_SHA384Final()
595 bits[0] = (unsigned char) ((context->count[1] >> 56) & 0xFF); in PHP_SHA384Final()
599 index = (unsigned int) ((context->count[0] >> 3) & 0x7f); in PHP_SHA384Final()
635 context->count[0] = context->count[1] = 0; in PHP_SHA512InitArgs()
654 context->count[0] = context->count[1] = 0; in PHP_SHA512_256InitArgs()
672 context->count[0] = context->count[1] = 0; in PHP_SHA512_224InitArgs()
696 index = (unsigned int) ((context->count[0] >> 3) & 0x7F); in PHP_SHA512Update()
699 if ((context->count[0] += ((uint64_t) inputLen << 3)) < ((uint64_t) inputLen << 3)) { in PHP_SHA512Update()
700 context->count[1]++; in PHP_SHA512Update()
703 context->count[1] += (uint64_t) inputLen >> 61; in PHP_SHA512Update()
737 bits[15] = (unsigned char) (context->count[0] & 0xFF); in PHP_SHA512Final()
738 bits[14] = (unsigned char) ((context->count[0] >> 8) & 0xFF); in PHP_SHA512Final()
739 bits[13] = (unsigned char) ((context->count[0] >> 16) & 0xFF); in PHP_SHA512Final()
740 bits[12] = (unsigned char) ((context->count[0] >> 24) & 0xFF); in PHP_SHA512Final()
741 bits[11] = (unsigned char) ((context->count[0] >> 32) & 0xFF); in PHP_SHA512Final()
742 bits[10] = (unsigned char) ((context->count[0] >> 40) & 0xFF); in PHP_SHA512Final()
743 bits[9] = (unsigned char) ((context->count[0] >> 48) & 0xFF); in PHP_SHA512Final()
744 bits[8] = (unsigned char) ((context->count[0] >> 56) & 0xFF); in PHP_SHA512Final()
745 bits[7] = (unsigned char) (context->count[1] & 0xFF); in PHP_SHA512Final()
746 bits[6] = (unsigned char) ((context->count[1] >> 8) & 0xFF); in PHP_SHA512Final()
747 bits[5] = (unsigned char) ((context->count[1] >> 16) & 0xFF); in PHP_SHA512Final()
748 bits[4] = (unsigned char) ((context->count[1] >> 24) & 0xFF); in PHP_SHA512Final()
749 bits[3] = (unsigned char) ((context->count[1] >> 32) & 0xFF); in PHP_SHA512Final()
750 bits[2] = (unsigned char) ((context->count[1] >> 40) & 0xFF); in PHP_SHA512Final()
751 bits[1] = (unsigned char) ((context->count[1] >> 48) & 0xFF); in PHP_SHA512Final()
752 bits[0] = (unsigned char) ((context->count[1] >> 56) & 0xFF); in PHP_SHA512Final()
756 index = (unsigned int) ((context->count[0] >> 3) & 0x7f); in PHP_SHA512Final()