/Linux-v5.10/include/crypto/ |
D | sha256_base.h | 43 unsigned int partial = sctx->count % SHA256_BLOCK_SIZE; in sha256_base_do_update() 47 if (unlikely((partial + len) >= SHA256_BLOCK_SIZE)) { in sha256_base_do_update() 51 int p = SHA256_BLOCK_SIZE - partial; in sha256_base_do_update() 60 blocks = len / SHA256_BLOCK_SIZE; in sha256_base_do_update() 61 len %= SHA256_BLOCK_SIZE; in sha256_base_do_update() 65 data += blocks * SHA256_BLOCK_SIZE; in sha256_base_do_update() 78 const int bit_offset = SHA256_BLOCK_SIZE - sizeof(__be64); in sha256_base_do_finalize() 81 unsigned int partial = sctx->count % SHA256_BLOCK_SIZE; in sha256_base_do_finalize() 85 memset(sctx->buf + partial, 0x0, SHA256_BLOCK_SIZE - partial); in sha256_base_do_finalize()
|
D | sha.h | 18 #define SHA256_BLOCK_SIZE 64 macro 87 u8 buf[SHA256_BLOCK_SIZE];
|
/Linux-v5.10/net/mptcp/ |
D | crypto.c | 46 u8 input[SHA256_BLOCK_SIZE + SHA256_DIGEST_SIZE]; in mptcp_crypto_hmac_sha() 58 memset(input, 0x36, SHA256_BLOCK_SIZE); in mptcp_crypto_hmac_sha() 64 memcpy(&input[SHA256_BLOCK_SIZE], msg, len); in mptcp_crypto_hmac_sha() 69 sha256(input, SHA256_BLOCK_SIZE + len, &input[SHA256_BLOCK_SIZE]); in mptcp_crypto_hmac_sha() 72 memset(input, 0x5C, SHA256_BLOCK_SIZE); in mptcp_crypto_hmac_sha() 78 sha256(input, SHA256_BLOCK_SIZE + SHA256_DIGEST_SIZE, hmac); in mptcp_crypto_hmac_sha()
|
/Linux-v5.10/arch/sparc/crypto/ |
D | sha256_glue.c | 68 done = SHA256_BLOCK_SIZE - partial; in __sha256_sparc64_update() 72 if (len - done >= SHA256_BLOCK_SIZE) { in __sha256_sparc64_update() 73 const unsigned int rounds = (len - done) / SHA256_BLOCK_SIZE; in __sha256_sparc64_update() 76 done += rounds * SHA256_BLOCK_SIZE; in __sha256_sparc64_update() 86 unsigned int partial = sctx->count % SHA256_BLOCK_SIZE; in sha256_sparc64_update() 89 if (partial + len < SHA256_BLOCK_SIZE) { in sha256_sparc64_update() 104 static const u8 padding[SHA256_BLOCK_SIZE] = { 0x80, }; in sha256_sparc64_final() 109 index = sctx->count % SHA256_BLOCK_SIZE; in sha256_sparc64_final() 110 padlen = (index < 56) ? (56 - index) : ((SHA256_BLOCK_SIZE+56) - index); in sha256_sparc64_final() 172 .cra_blocksize = SHA256_BLOCK_SIZE,
|
/Linux-v5.10/arch/mips/cavium-octeon/crypto/ |
D | octeon-sha256.c | 107 partial = sctx->count % SHA256_BLOCK_SIZE; in __octeon_sha256_update() 112 if ((partial + len) >= SHA256_BLOCK_SIZE) { in __octeon_sha256_update() 116 done + SHA256_BLOCK_SIZE); in __octeon_sha256_update() 122 done += SHA256_BLOCK_SIZE; in __octeon_sha256_update() 124 } while (done + SHA256_BLOCK_SIZE <= len); in __octeon_sha256_update() 143 if ((sctx->count % SHA256_BLOCK_SIZE) + len < SHA256_BLOCK_SIZE) in octeon_sha256_update() 238 .cra_blocksize = SHA256_BLOCK_SIZE,
|
/Linux-v5.10/drivers/crypto/nx/ |
D | nx-sha256.c | 68 u64 buf_len = (sctx->count % SHA256_BLOCK_SIZE); in nx_sha256_update() 76 total = (sctx->count % SHA256_BLOCK_SIZE) + len; in nx_sha256_update() 77 if (total < SHA256_BLOCK_SIZE) { in nx_sha256_update() 129 to_process = to_process & ~(SHA256_BLOCK_SIZE - 1); in nx_sha256_update() 163 } while (leftover >= SHA256_BLOCK_SIZE); in nx_sha256_update() 196 if (sctx->count >= SHA256_BLOCK_SIZE) { in nx_sha256_final() 209 len = sctx->count & (SHA256_BLOCK_SIZE - 1); in nx_sha256_final() 213 if (len != (sctx->count & (SHA256_BLOCK_SIZE - 1))) { in nx_sha256_final() 277 .cra_blocksize = SHA256_BLOCK_SIZE,
|
/Linux-v5.10/arch/arm64/crypto/ |
D | sha256-glue.c | 77 .base.cra_blocksize = SHA256_BLOCK_SIZE, 111 chunk + sctx->count % SHA256_BLOCK_SIZE > SHA256_BLOCK_SIZE) in sha256_update_neon() 112 chunk = SHA256_BLOCK_SIZE - in sha256_update_neon() 113 sctx->count % SHA256_BLOCK_SIZE; in sha256_update_neon() 157 .base.cra_blocksize = SHA256_BLOCK_SIZE,
|
D | sha2-ce-glue.c | 75 bool finalize = !sctx->sst.count && !(len % SHA256_BLOCK_SIZE) && len; in sha256_ce_finup() 146 .cra_blocksize = SHA256_BLOCK_SIZE, 163 .cra_blocksize = SHA256_BLOCK_SIZE,
|
/Linux-v5.10/arch/arm/crypto/ |
D | sha2-ce-glue.c | 36 (sctx->count % SHA256_BLOCK_SIZE) + len < SHA256_BLOCK_SIZE) in sha2_ce_update() 79 .cra_blocksize = SHA256_BLOCK_SIZE, 93 .cra_blocksize = SHA256_BLOCK_SIZE,
|
D | sha256_neon_glue.c | 33 (sctx->count % SHA256_BLOCK_SIZE) + len < SHA256_BLOCK_SIZE) in crypto_sha256_neon_update() 77 .cra_blocksize = SHA256_BLOCK_SIZE,
|
D | sha256_glue.c | 68 .cra_blocksize = SHA256_BLOCK_SIZE,
|
/Linux-v5.10/arch/x86/crypto/ |
D | sha256_ssse3_glue.c | 52 (sctx->count % SHA256_BLOCK_SIZE) + len < SHA256_BLOCK_SIZE) in _sha256_update() 112 .cra_blocksize = SHA256_BLOCK_SIZE, 177 .cra_blocksize = SHA256_BLOCK_SIZE, 253 .cra_blocksize = SHA256_BLOCK_SIZE, 328 .cra_blocksize = SHA256_BLOCK_SIZE,
|
/Linux-v5.10/drivers/crypto/ |
D | padlock-sha.c | 154 leftover = ((state.count - 1) & (SHA256_BLOCK_SIZE - 1)) + 1; in padlock_sha256_finup() 155 space = SHA256_BLOCK_SIZE - leftover; in padlock_sha256_finup() 260 .cra_blocksize = SHA256_BLOCK_SIZE, 380 if ((partial + len) >= SHA256_BLOCK_SIZE) { in padlock_sha256_update_nano() 386 done + SHA256_BLOCK_SIZE); in padlock_sha256_update_nano() 391 done += SHA256_BLOCK_SIZE; in padlock_sha256_update_nano() 396 if (len - done >= SHA256_BLOCK_SIZE) { in padlock_sha256_update_nano() 487 .cra_blocksize = SHA256_BLOCK_SIZE,
|
D | sahara.c | 34 #define SAHARA_MAX_SHA_BLOCK_SIZE SHA256_BLOCK_SIZE 1174 SHA_BUFFER_LEN + SHA256_BLOCK_SIZE); in sahara_sha_cra_init() 1261 .cra_blocksize = SHA256_BLOCK_SIZE,
|
/Linux-v5.10/drivers/crypto/qce/ |
D | sha.h | 15 #define QCE_SHA_MAX_BLOCKSIZE SHA256_BLOCK_SIZE
|
D | sha.c | 461 .blocksize = SHA256_BLOCK_SIZE, 479 .blocksize = SHA256_BLOCK_SIZE,
|
/Linux-v5.10/crypto/ |
D | sha256_generic.c | 84 .cra_blocksize = SHA256_BLOCK_SIZE,
|
/Linux-v5.10/arch/s390/crypto/ |
D | sha256_s390.c | 74 .cra_blocksize = SHA256_BLOCK_SIZE,
|
/Linux-v5.10/drivers/crypto/inside-secure/ |
D | safexcel_hash.c | 1273 req->block_sz = SHA256_BLOCK_SIZE; in safexcel_sha256_init() 1309 .cra_blocksize = SHA256_BLOCK_SIZE, 1330 req->block_sz = SHA256_BLOCK_SIZE; in safexcel_sha224_init() 1393 req->len = SHA256_BLOCK_SIZE; in safexcel_hmac_sha224_init() 1394 req->processed = SHA256_BLOCK_SIZE; in safexcel_hmac_sha224_init() 1400 req->block_sz = SHA256_BLOCK_SIZE; in safexcel_hmac_sha224_init() 1465 req->len = SHA256_BLOCK_SIZE; in safexcel_hmac_sha256_init() 1466 req->processed = SHA256_BLOCK_SIZE; in safexcel_hmac_sha256_init() 1472 req->block_sz = SHA256_BLOCK_SIZE; in safexcel_hmac_sha256_init() 1510 .cra_blocksize = SHA256_BLOCK_SIZE,
|
/Linux-v5.10/drivers/crypto/axis/ |
D | artpec6_crypto.c | 290 char partial_buffer[SHA256_BLOCK_SIZE]; 291 char partial_buffer_out[SHA256_BLOCK_SIZE]; 292 char key_buffer[SHA256_BLOCK_SIZE]; 293 char pad_buffer[SHA256_BLOCK_SIZE + 32]; 304 char partial_buffer[SHA256_BLOCK_SIZE]; 313 char hmac_key[SHA256_BLOCK_SIZE]; 2659 .cra_blocksize = SHA256_BLOCK_SIZE, 2684 .cra_blocksize = SHA256_BLOCK_SIZE,
|
/Linux-v5.10/arch/powerpc/crypto/ |
D | sha256-spe-glue.c | 228 .cra_blocksize = SHA256_BLOCK_SIZE,
|
/Linux-v5.10/fs/verity/ |
D | hash_algs.c | 18 .block_size = SHA256_BLOCK_SIZE,
|
/Linux-v5.10/drivers/crypto/mediatek/ |
D | mtk-sha.c | 392 ctx->bs = SHA256_BLOCK_SIZE; in mtk_sha_init() 977 .cra_blocksize = SHA256_BLOCK_SIZE, 1054 .cra_blocksize = SHA256_BLOCK_SIZE,
|
/Linux-v5.10/drivers/crypto/stm32/ |
D | stm32-hash.c | 108 #define HASH_MAX_KEY_SIZE (SHA256_BLOCK_SIZE * 8) 1297 .cra_blocksize = SHA256_BLOCK_SIZE, 1323 .cra_blocksize = SHA256_BLOCK_SIZE,
|
/Linux-v5.10/drivers/crypto/rockchip/ |
D | rk3288_crypto_ahash.c | 364 .cra_blocksize = SHA256_BLOCK_SIZE,
|