Home
last modified time | relevance | path

Searched refs:SHA256_BLOCK_LENGTH (Results 1 – 1 of 1) sorted by relevance

/illumos-gate/usr/src/contrib/ast/src/lib/libsum/
H A Dsum-sha2.c150 #define SHA256_BLOCK_LENGTH 64 macro
157 #define SHA256_SHORT_BLOCK_LENGTH (SHA256_BLOCK_LENGTH - 8)
452 sha2_byte buffer[SHA256_BLOCK_LENGTH];
639 usedspace = (sha->bitcount >> 3) % SHA256_BLOCK_LENGTH; in sha256_block()
642 freespace = SHA256_BLOCK_LENGTH - usedspace; in sha256_block()
660 while (len >= SHA256_BLOCK_LENGTH) { in sha256_block()
663 sha->bitcount += SHA256_BLOCK_LENGTH << 3; in sha256_block()
664 len -= SHA256_BLOCK_LENGTH; in sha256_block()
665 data += SHA256_BLOCK_LENGTH; in sha256_block()
684 MEMSET_BZERO(sha->buffer, SHA256_BLOCK_LENGTH); in sha256_init()
[all …]