Home
last modified time | relevance | path

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

/include/crypto/
Dsha256_base.h44 unsigned int partial = sctx->count % SHA256_BLOCK_SIZE; in sha256_base_do_update()
48 if (unlikely((partial + len) >= SHA256_BLOCK_SIZE)) { in sha256_base_do_update()
52 int p = SHA256_BLOCK_SIZE - partial; in sha256_base_do_update()
61 blocks = len / SHA256_BLOCK_SIZE; in sha256_base_do_update()
62 len %= SHA256_BLOCK_SIZE; in sha256_base_do_update()
66 data += blocks * SHA256_BLOCK_SIZE; in sha256_base_do_update()
79 const int bit_offset = SHA256_BLOCK_SIZE - sizeof(__be64); in sha256_base_do_finalize()
82 unsigned int partial = sctx->count % SHA256_BLOCK_SIZE; in sha256_base_do_finalize()
86 memset(sctx->buf + partial, 0x0, SHA256_BLOCK_SIZE - partial); in sha256_base_do_finalize()
Dsha2.h15 #define SHA256_BLOCK_SIZE 64 macro
70 u8 buf[SHA256_BLOCK_SIZE];