Lines Matching refs:SHA512_BLOCK_LENGTH
172 #define SHA512_BLOCK_LENGTH 128
177 #define SHA512_SHORT_BLOCK_LENGTH (SHA512_BLOCK_LENGTH - 16)
839 sha2_byte buffer[SHA512_BLOCK_LENGTH];
1020 usedspace = (sha->bitcount[0] >> 3) % SHA512_BLOCK_LENGTH;
1023 freespace = SHA512_BLOCK_LENGTH - usedspace;
1041 while (len >= SHA512_BLOCK_LENGTH) {
1044 ADDINC128(sha->bitcount, SHA512_BLOCK_LENGTH << 3);
1045 len -= SHA512_BLOCK_LENGTH;
1046 data += SHA512_BLOCK_LENGTH;
1065 MEMSET_BZERO(sha->buffer, SHA512_BLOCK_LENGTH);
1092 usedspace = (sha->bitcount[0] >> 3) % SHA512_BLOCK_LENGTH;
1106 if (usedspace < SHA512_BLOCK_LENGTH) {
1107 MEMSET_BZERO(&sha->buffer[usedspace], SHA512_BLOCK_LENGTH - usedspace);
1113 MEMSET_BZERO(sha->buffer, SHA512_BLOCK_LENGTH - 2);