Home
last modified time | relevance | path

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

/linux/lib/crypto/
H A Dsha256.c153 data += SHA256_BLOCK_SIZE; in sha256_blocks_generic()
187 size_t partial = ctx->bytecount % SHA256_BLOCK_SIZE; in __sha256_update()
191 if (partial + len >= SHA256_BLOCK_SIZE) { in __sha256_update()
195 size_t l = SHA256_BLOCK_SIZE - partial; in __sha256_update()
204 nblocks = len / SHA256_BLOCK_SIZE; in __sha256_update()
205 len %= SHA256_BLOCK_SIZE; in __sha256_update()
209 data += nblocks * SHA256_BLOCK_SIZE; in __sha256_update()
222 size_t partial = ctx->bytecount % SHA256_BLOCK_SIZE; in __sha256_final()
225 if (partial > SHA256_BLOCK_SIZE - 8) { in __sha256_final()
226 memset(&ctx->buf[partial], 0, SHA256_BLOCK_SIZE - partial); in __sha256_final()
[all …]
/linux/lib/crypto/powerpc/
H A Dsha256.h49 MAX_BYTES / SHA256_BLOCK_SIZE); in sha256_blocks()
55 data += unit * SHA256_BLOCK_SIZE; in sha256_blocks()
/linux/lib/crypto/arm64/
H A Dsha256.h33 data += (nblocks - rem) * SHA256_BLOCK_SIZE; in sha256_blocks()
65 static_branch_likely(&have_ce) && len >= SHA256_BLOCK_SIZE && in sha256_finup_2x_arch()
/linux/lib/crypto/s390/
H A Dsha256.h17 nblocks * SHA256_BLOCK_SIZE); in sha256_blocks()
/linux/drivers/crypto/qce/
H A Dsha.h16 #define QCE_SHA_MAX_BLOCKSIZE SHA256_BLOCK_SIZE
/linux/lib/crypto/mips/
H A Dsha256.h50 data += SHA256_BLOCK_SIZE; in sha256_blocks()
/linux/crypto/
H A Dsha256.c35 partial = ctx.bytecount % SHA256_BLOCK_SIZE; in __crypto_sha256_export()
341 .base.cra_blocksize = SHA256_BLOCK_SIZE,
379 .base.cra_blocksize = SHA256_BLOCK_SIZE,
/linux/include/crypto/
H A Dsha2.h15 #define SHA256_BLOCK_SIZE 64 macro
108 u8 buf[SHA256_BLOCK_SIZE];
130 u8 buf[SHA256_BLOCK_SIZE] __aligned(__alignof__(__be64));
/linux/lib/crypto/x86/
H A Dsha256.h59 if (static_branch_likely(&have_sha_ni) && len >= SHA256_BLOCK_SIZE && in sha256_finup_2x_arch()
/linux/fs/verity/
H A Dhash_algs.c15 .block_size = SHA256_BLOCK_SIZE,
/linux/drivers/crypto/allwinner/sun8i-ss/
H A Dsun8i-ss.h236 u8 key[SHA256_BLOCK_SIZE];
/linux/drivers/crypto/axis/
H A Dartpec6_crypto.c291 char partial_buffer[SHA256_BLOCK_SIZE];
292 char partial_buffer_out[SHA256_BLOCK_SIZE];
293 char key_buffer[SHA256_BLOCK_SIZE];
294 char pad_buffer[SHA256_BLOCK_SIZE + 32];
305 char partial_buffer[SHA256_BLOCK_SIZE];
314 char hmac_key[SHA256_BLOCK_SIZE];
2663 .cra_blocksize = SHA256_BLOCK_SIZE,
2687 .cra_blocksize = SHA256_BLOCK_SIZE,
/linux/drivers/crypto/starfive/
H A Djh7110-hash.c635 .cra_blocksize = SHA256_BLOCK_SIZE,
664 .cra_blocksize = SHA256_BLOCK_SIZE,
/linux/arch/s390/crypto/
H A Dphmac_s390.c116 #define PHMAC_SHA256_PK_SIZE (SHA256_BLOCK_SIZE + 32)
388 case SHA256_BLOCK_SIZE: in kmac_sha2_set_imbl()
/linux/drivers/crypto/ccp/
H A Dccp-crypto-sha.c391 .block_size = SHA256_BLOCK_SIZE,
/linux/drivers/crypto/
H A Dimg-hash.c857 .cra_blocksize = SHA256_BLOCK_SIZE,
/linux/drivers/crypto/caam/
H A Dcaamhash.c1634 .blocksize = SHA256_BLOCK_SIZE,