Lines Matching refs:SHA256_BLOCK_LENGTH
149 #define SHA256_SHORT_BLOCK_LENGTH (SHA256_BLOCK_LENGTH - 8)
375 MEMSET_BZERO(context->buffer, SHA256_BLOCK_LENGTH); in SHA256_Init()
565 usedspace = (context->bitcount >> 3) % SHA256_BLOCK_LENGTH; in SHA256_Update()
568 freespace = SHA256_BLOCK_LENGTH - usedspace; in SHA256_Update()
586 while (len >= SHA256_BLOCK_LENGTH) { in SHA256_Update()
589 context->bitcount += SHA256_BLOCK_LENGTH << 3; in SHA256_Update()
590 len -= SHA256_BLOCK_LENGTH; in SHA256_Update()
591 data += SHA256_BLOCK_LENGTH; in SHA256_Update()
611 usedspace = (context->bitcount >> 3) % SHA256_BLOCK_LENGTH; in SHA256_Final()
624 if (usedspace < SHA256_BLOCK_LENGTH) { in SHA256_Final()
625 MEMSET_BZERO(&context->buffer[usedspace], SHA256_BLOCK_LENGTH - usedspace); in SHA256_Final()