/linux-6.1.9/arch/sparc/crypto/ |
D | sha512_glue.c | 37 done = SHA512_BLOCK_SIZE - partial; in __sha512_sparc64_update() 41 if (len - done >= SHA512_BLOCK_SIZE) { in __sha512_sparc64_update() 42 const unsigned int rounds = (len - done) / SHA512_BLOCK_SIZE; in __sha512_sparc64_update() 45 done += rounds * SHA512_BLOCK_SIZE; in __sha512_sparc64_update() 55 unsigned int partial = sctx->count[0] % SHA512_BLOCK_SIZE; in sha512_sparc64_update() 58 if (partial + len < SHA512_BLOCK_SIZE) { in sha512_sparc64_update() 74 static const u8 padding[SHA512_BLOCK_SIZE] = { 0x80, }; in sha512_sparc64_final() 81 index = sctx->count[0] % SHA512_BLOCK_SIZE; in sha512_sparc64_final() 82 padlen = (index < 112) ? (112 - index) : ((SHA512_BLOCK_SIZE+112) - index); in sha512_sparc64_final() 126 .cra_blocksize = SHA512_BLOCK_SIZE,
|
/linux-6.1.9/include/crypto/ |
D | sha512_base.h | 62 unsigned int partial = sctx->count[0] % SHA512_BLOCK_SIZE; in sha512_base_do_update() 68 if (unlikely((partial + len) >= SHA512_BLOCK_SIZE)) { in sha512_base_do_update() 72 int p = SHA512_BLOCK_SIZE - partial; in sha512_base_do_update() 81 blocks = len / SHA512_BLOCK_SIZE; in sha512_base_do_update() 82 len %= SHA512_BLOCK_SIZE; in sha512_base_do_update() 86 data += blocks * SHA512_BLOCK_SIZE; in sha512_base_do_update() 99 const int bit_offset = SHA512_BLOCK_SIZE - sizeof(__be64[2]); in sha512_base_do_finalize() 102 unsigned int partial = sctx->count[0] % SHA512_BLOCK_SIZE; in sha512_base_do_finalize() 106 memset(sctx->buf + partial, 0x0, SHA512_BLOCK_SIZE - partial); in sha512_base_do_finalize()
|
D | sha2.h | 21 #define SHA512_BLOCK_SIZE 128 macro 76 u8 buf[SHA512_BLOCK_SIZE];
|
/linux-6.1.9/drivers/crypto/nx/ |
D | nx-sha512.c | 21 u8 buf[SHA512_BLOCK_SIZE]; 73 u64 buf_len = (sctx->count[0] % SHA512_BLOCK_SIZE); in nx_sha512_update() 81 total = (sctx->count[0] % SHA512_BLOCK_SIZE) + len; in nx_sha512_update() 82 if (total < SHA512_BLOCK_SIZE) { in nx_sha512_update() 133 to_process = to_process & ~(SHA512_BLOCK_SIZE - 1); in nx_sha512_update() 172 } while (leftover >= SHA512_BLOCK_SIZE); in nx_sha512_update() 205 if (sctx->count[0] >= SHA512_BLOCK_SIZE) { in nx_sha512_final() 223 len = sctx->count[0] & (SHA512_BLOCK_SIZE - 1); in nx_sha512_final() 227 if (len != (sctx->count[0] & (SHA512_BLOCK_SIZE - 1))) { in nx_sha512_final() 288 .cra_blocksize = SHA512_BLOCK_SIZE,
|
/linux-6.1.9/arch/mips/cavium-octeon/crypto/ |
D | octeon-sha512.c | 86 index = sctx->count[0] % SHA512_BLOCK_SIZE; in __octeon_sha512_update() 92 part_len = SHA512_BLOCK_SIZE - index; in __octeon_sha512_update() 99 for (i = part_len; i + SHA512_BLOCK_SIZE <= len; in __octeon_sha512_update() 100 i += SHA512_BLOCK_SIZE) in __octeon_sha512_update() 124 if ((sctx->count[0] % SHA512_BLOCK_SIZE) + len < SHA512_BLOCK_SIZE) in octeon_sha512_update() 201 .cra_blocksize = SHA512_BLOCK_SIZE,
|
/linux-6.1.9/arch/arm/crypto/ |
D | sha512-neon-glue.c | 32 (sctx->count[0] % SHA512_BLOCK_SIZE) + len < SHA512_BLOCK_SIZE) in sha512_neon_update() 91 .cra_blocksize = SHA512_BLOCK_SIZE,
|
D | sha512-glue.c | 63 .cra_blocksize = SHA512_BLOCK_SIZE, 77 .cra_blocksize = SHA512_BLOCK_SIZE,
|
/linux-6.1.9/arch/x86/crypto/ |
D | sha512_ssse3_glue.c | 51 (sctx->count[0] % SHA512_BLOCK_SIZE) + len < SHA512_BLOCK_SIZE) in sha512_update() 111 .cra_blocksize = SHA512_BLOCK_SIZE, 187 .cra_blocksize = SHA512_BLOCK_SIZE, 253 .cra_blocksize = SHA512_BLOCK_SIZE,
|
/linux-6.1.9/arch/arm64/crypto/ |
D | sha512-ce-glue.c | 43 src += (blocks - rem) * SHA512_BLOCK_SIZE; in __sha512_ce_transform() 94 .base.cra_blocksize = SHA512_BLOCK_SIZE, 106 .base.cra_blocksize = SHA512_BLOCK_SIZE,
|
D | sha512-glue.c | 65 .base.cra_blocksize = SHA512_BLOCK_SIZE,
|
/linux-6.1.9/drivers/crypto/aspeed/ |
D | aspeed-hace.h | 176 u8 ipad[SHA512_BLOCK_SIZE]; 177 u8 opad[SHA512_BLOCK_SIZE]; 206 u8 buffer[SHA512_BLOCK_SIZE * 2];
|
D | aspeed-hace-hash.c | 726 rctx->block_size = SHA512_BLOCK_SIZE; in aspeed_sham_init() 772 rctx->block_size = SHA512_BLOCK_SIZE; in aspeed_sha512s_init() 782 rctx->block_size = SHA512_BLOCK_SIZE; in aspeed_sha512s_init() 1153 .cra_blocksize = SHA512_BLOCK_SIZE, 1182 .cra_blocksize = SHA512_BLOCK_SIZE, 1211 .cra_blocksize = SHA512_BLOCK_SIZE, 1274 .cra_blocksize = SHA512_BLOCK_SIZE, 1306 .cra_blocksize = SHA512_BLOCK_SIZE, 1338 .cra_blocksize = SHA512_BLOCK_SIZE,
|
/linux-6.1.9/drivers/crypto/ccree/ |
D | cc_hash.h | 19 #define CC_MAX_HASH_BLCK_SIZE SHA512_BLOCK_SIZE
|
/linux-6.1.9/crypto/ |
D | sha512_generic.c | 153 src += SHA512_BLOCK_SIZE; in sha512_generic_block_fn() 189 .cra_blocksize = SHA512_BLOCK_SIZE,
|
/linux-6.1.9/drivers/crypto/keembay/ |
D | keembay-ocs-hcu-core.c | 47 u8 key[SHA512_BLOCK_SIZE]; 86 u8 buffer[2 * SHA512_BLOCK_SIZE]; 598 rctx->blk_sz = SHA512_BLOCK_SIZE; in kmb_ocs_hcu_init() 1105 .cra_blocksize = SHA512_BLOCK_SIZE, 1130 .cra_blocksize = SHA512_BLOCK_SIZE,
|
/linux-6.1.9/arch/s390/crypto/ |
D | sha512_s390.c | 79 .cra_blocksize = SHA512_BLOCK_SIZE,
|
/linux-6.1.9/drivers/crypto/ |
D | sa2ul.h | 314 u8 authkey[SHA512_BLOCK_SIZE];
|
D | omap-sham.c | 137 #define BUFLEN SHA512_BLOCK_SIZE 166 u8 ipad[SHA512_BLOCK_SIZE] OMAP_ALIGNED; 167 u8 opad[SHA512_BLOCK_SIZE] OMAP_ALIGNED; 423 d = SHA512_BLOCK_SIZE; in get_block_size() 985 bs = SHA512_BLOCK_SIZE; in omap_sham_init() 1654 .cra_blocksize = SHA512_BLOCK_SIZE, 1701 .cra_blocksize = SHA512_BLOCK_SIZE,
|
D | atmel-sha.c | 108 u8 buffer[SHA_BUFFER_LEN + SHA512_BLOCK_SIZE] __aligned(sizeof(u32)); 459 ctx->block_size = SHA512_BLOCK_SIZE; in atmel_sha_init() 1310 .halg.base.cra_blocksize = SHA512_BLOCK_SIZE, 1613 u8 buffer[SHA512_BLOCK_SIZE]; 1665 u32 ipad[SHA512_BLOCK_SIZE / sizeof(u32)]; 1666 u32 opad[SHA512_BLOCK_SIZE / sizeof(u32)]; 1718 ctx->block_size = SHA512_BLOCK_SIZE; in atmel_sha_hmac_setup() 2068 .halg.base.cra_blocksize = SHA512_BLOCK_SIZE,
|
D | talitos.c | 844 #define TALITOS_MAX_KEY_SIZE (AES_MAX_KEY_SIZE + SHA512_BLOCK_SIZE) 862 #define HASH_MAX_BLOCK_SIZE SHA512_BLOCK_SIZE 2934 .cra_blocksize = SHA512_BLOCK_SIZE, 3030 .cra_blocksize = SHA512_BLOCK_SIZE,
|
/linux-6.1.9/drivers/crypto/ccp/ |
D | ccp-crypto.h | 186 #define MAX_SHA_BLOCK_SIZE SHA512_BLOCK_SIZE
|
D | ccp-crypto-sha.c | 407 .block_size = SHA512_BLOCK_SIZE,
|
/linux-6.1.9/drivers/crypto/inside-secure/ |
D | safexcel_hash.c | 1533 req->block_sz = SHA512_BLOCK_SIZE; in safexcel_sha512_init() 1569 .cra_blocksize = SHA512_BLOCK_SIZE, 1590 req->block_sz = SHA512_BLOCK_SIZE; in safexcel_sha384_init() 1653 req->len = SHA512_BLOCK_SIZE; in safexcel_hmac_sha512_init() 1654 req->processed = SHA512_BLOCK_SIZE; in safexcel_hmac_sha512_init() 1660 req->block_sz = SHA512_BLOCK_SIZE; in safexcel_hmac_sha512_init() 1698 .cra_blocksize = SHA512_BLOCK_SIZE, 1725 req->len = SHA512_BLOCK_SIZE; in safexcel_hmac_sha384_init() 1726 req->processed = SHA512_BLOCK_SIZE; in safexcel_hmac_sha384_init() 1732 req->block_sz = SHA512_BLOCK_SIZE; in safexcel_hmac_sha384_init()
|
/linux-6.1.9/fs/verity/ |
D | hash_algs.c | 23 .block_size = SHA512_BLOCK_SIZE,
|
/linux-6.1.9/drivers/crypto/bcm/ |
D | cipher.h | 50 #define MAX_HASH_BLOCK_SIZE SHA512_BLOCK_SIZE
|