Searched refs:SHA256_BLOCK_LENGTH (Results 1 – 2 of 2) sorted by relevance
58 #define SHA256_BLOCK_LENGTH 64 macro100 uint8_t buffer[SHA256_BLOCK_LENGTH];113 u_int8_t buffer[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()[all …]