Lines Matching refs:SHA512_BLOCK_LENGTH
154 #define SHA512_BLOCK_LENGTH 128
159 #define SHA512_SHORT_BLOCK_LENGTH (SHA512_BLOCK_LENGTH - 16)
821 sha2_byte buffer[SHA512_BLOCK_LENGTH];
1002 usedspace = (sha->bitcount[1] >> 3) % SHA512_BLOCK_LENGTH;
1005 freespace = SHA512_BLOCK_LENGTH - usedspace;
1023 while (len >= SHA512_BLOCK_LENGTH) {
1026 ADDINC128(sha->bitcount, SHA512_BLOCK_LENGTH << 3);
1027 len -= SHA512_BLOCK_LENGTH;
1028 data += SHA512_BLOCK_LENGTH;
1047 MEMSET_BZERO(sha->buffer, SHA512_BLOCK_LENGTH);
1074 usedspace = (sha->bitcount[1] >> 3) % SHA512_BLOCK_LENGTH;
1088 if (usedspace < SHA512_BLOCK_LENGTH) {
1089 MEMSET_BZERO(&sha->buffer[usedspace], SHA512_BLOCK_LENGTH - usedspace);
1095 MEMSET_BZERO(sha->buffer, SHA512_BLOCK_LENGTH - 2);