Lines Matching refs:buffer

7  * with bitcount[] order reversed to allow a single noalias buffer copy
452 sha2_byte buffer[SHA256_BLOCK_LENGTH];
497 W256 = (sha2_word32*)sha->buffer;
555 W256 = (sha2_word32*)sha->buffer;
641 /* Calculate how much free space is available in the buffer */
645 /* Fill the buffer completely and process it */
646 MEMCPY_BCOPY(&sha->buffer[usedspace], data, freespace);
650 SHA256_Transform(sha, (sha2_word32*)sha->buffer);
652 /* The buffer is not yet full */
653 MEMCPY_BCOPY(&sha->buffer[usedspace], data, len);
669 MEMCPY_BCOPY(sha->buffer, data, len);
684 MEMSET_BZERO(sha->buffer, SHA256_BLOCK_LENGTH);
721 sha->buffer[usedspace++] = 0x80;
725 MEMSET_BZERO(&sha->buffer[usedspace], SHA256_SHORT_BLOCK_LENGTH - usedspace);
728 MEMSET_BZERO(&sha->buffer[usedspace], SHA256_BLOCK_LENGTH - usedspace);
731 SHA256_Transform(sha, (sha2_word32*)sha->buffer);
734 MEMSET_BZERO(sha->buffer, SHA256_SHORT_BLOCK_LENGTH);
738 MEMSET_BZERO(sha->buffer, SHA256_SHORT_BLOCK_LENGTH);
741 *sha->buffer = 0x80;
744 MEMCPY_BCOPY(&sha->buffer[SHA256_SHORT_BLOCK_LENGTH], &sha->bitcount, 8);
747 SHA256_Transform(sha, (sha2_word32*)sha->buffer);
821 sha2_byte buffer[SHA512_BLOCK_LENGTH];
862 sha2_word64 T1, *W512 = (sha2_word64*)sha->buffer;
917 sha2_word64 T1, T2, *W512 = (sha2_word64*)sha->buffer;
1004 /* Calculate how much free space is available in the buffer */
1008 /* Fill the buffer completely and process it */
1009 MEMCPY_BCOPY(&sha->buffer[usedspace], data, freespace);
1013 SHA512_Transform(sha, (sha2_word64*)sha->buffer);
1015 /* The buffer is not yet full */
1016 MEMCPY_BCOPY(&sha->buffer[usedspace], data, len);
1032 MEMCPY_BCOPY(sha->buffer, data, len);
1047 MEMSET_BZERO(sha->buffer, SHA512_BLOCK_LENGTH);
1082 sha->buffer[usedspace++] = 0x80;
1086 MEMSET_BZERO(&sha->buffer[usedspace], SHA512_SHORT_BLOCK_LENGTH - usedspace);
1089 MEMSET_BZERO(&sha->buffer[usedspace], SHA512_BLOCK_LENGTH - usedspace);
1092 SHA512_Transform(sha, (sha2_word64*)sha->buffer);
1095 MEMSET_BZERO(sha->buffer, SHA512_BLOCK_LENGTH - 2);
1099 MEMSET_BZERO(sha->buffer, SHA512_SHORT_BLOCK_LENGTH);
1102 *sha->buffer = 0x80;
1105 MEMCPY_BCOPY(&sha->buffer[SHA512_SHORT_BLOCK_LENGTH], &sha->bitcount[0], 16);
1108 SHA512_Transform(sha, (sha2_word64*)sha->buffer);
1184 MEMSET_BZERO(sha->buffer, SHA384_BLOCK_LENGTH);