Home
last modified time | relevance | path

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

/linux-4.19.296/include/crypto/
Dsha256_base.h61 unsigned int partial = sctx->count % SHA256_BLOCK_SIZE; in sha256_base_do_update()
65 if (unlikely((partial + len) >= SHA256_BLOCK_SIZE)) { in sha256_base_do_update()
69 int p = SHA256_BLOCK_SIZE - partial; in sha256_base_do_update()
78 blocks = len / SHA256_BLOCK_SIZE; in sha256_base_do_update()
79 len %= SHA256_BLOCK_SIZE; in sha256_base_do_update()
83 data += blocks * SHA256_BLOCK_SIZE; in sha256_base_do_update()
96 const int bit_offset = SHA256_BLOCK_SIZE - sizeof(__be64); in sha256_base_do_finalize()
99 unsigned int partial = sctx->count % SHA256_BLOCK_SIZE; in sha256_base_do_finalize()
103 memset(sctx->buf + partial, 0x0, SHA256_BLOCK_SIZE - partial); in sha256_base_do_finalize()
Dsha.h18 #define SHA256_BLOCK_SIZE 64 macro
87 u8 buf[SHA256_BLOCK_SIZE];
/linux-4.19.296/crypto/
Dsha256_generic.c239 src += SHA256_BLOCK_SIZE; in sha256_generic_block_fn()
275 .cra_blocksize = SHA256_BLOCK_SIZE,