Lines Matching refs:SHA256_BLOCK_LENGTH
168 #define SHA256_BLOCK_LENGTH 64
175 #define SHA256_SHORT_BLOCK_LENGTH (SHA256_BLOCK_LENGTH - 8)
470 sha2_byte buffer[SHA256_BLOCK_LENGTH];
657 usedspace = (sha->bitcount >> 3) % SHA256_BLOCK_LENGTH;
660 freespace = SHA256_BLOCK_LENGTH - usedspace;
678 while (len >= SHA256_BLOCK_LENGTH) {
681 sha->bitcount += SHA256_BLOCK_LENGTH << 3;
682 len -= SHA256_BLOCK_LENGTH;
683 data += SHA256_BLOCK_LENGTH;
702 MEMSET_BZERO(sha->buffer, SHA256_BLOCK_LENGTH);
732 usedspace = (sha->bitcount >> 3) % SHA256_BLOCK_LENGTH;
745 if (usedspace < SHA256_BLOCK_LENGTH) {
746 MEMSET_BZERO(&sha->buffer[usedspace], SHA256_BLOCK_LENGTH - usedspace);