| /Linux-v5.4/include/crypto/ |
| D | sha512_base.h | 61 unsigned int partial = sctx->count[0] % SHA512_BLOCK_SIZE; in sha512_base_do_update() 67 if (unlikely((partial + len) >= SHA512_BLOCK_SIZE)) { in sha512_base_do_update() 71 int p = SHA512_BLOCK_SIZE - partial; in sha512_base_do_update() 80 blocks = len / SHA512_BLOCK_SIZE; in sha512_base_do_update() 81 len %= SHA512_BLOCK_SIZE; in sha512_base_do_update() 85 data += blocks * SHA512_BLOCK_SIZE; in sha512_base_do_update() 98 const int bit_offset = SHA512_BLOCK_SIZE - sizeof(__be64[2]); in sha512_base_do_finalize() 101 unsigned int partial = sctx->count[0] % SHA512_BLOCK_SIZE; in sha512_base_do_finalize() 105 memset(sctx->buf + partial, 0x0, SHA512_BLOCK_SIZE - partial); in sha512_base_do_finalize()
|
| D | sha.h | 24 #define SHA512_BLOCK_SIZE 128 macro 93 u8 buf[SHA512_BLOCK_SIZE];
|
| /Linux-v5.4/arch/sparc/crypto/ |
| D | sha512_glue.c | 69 done = SHA512_BLOCK_SIZE - partial; in __sha512_sparc64_update() 73 if (len - done >= SHA512_BLOCK_SIZE) { in __sha512_sparc64_update() 74 const unsigned int rounds = (len - done) / SHA512_BLOCK_SIZE; in __sha512_sparc64_update() 77 done += rounds * SHA512_BLOCK_SIZE; in __sha512_sparc64_update() 87 unsigned int partial = sctx->count[0] % SHA512_BLOCK_SIZE; in sha512_sparc64_update() 90 if (partial + len < SHA512_BLOCK_SIZE) { in sha512_sparc64_update() 106 static const u8 padding[SHA512_BLOCK_SIZE] = { 0x80, }; in sha512_sparc64_final() 113 index = sctx->count[0] % SHA512_BLOCK_SIZE; in sha512_sparc64_final() 114 padlen = (index < 112) ? (112 - index) : ((SHA512_BLOCK_SIZE+112) - index); in sha512_sparc64_final() 158 .cra_blocksize = SHA512_BLOCK_SIZE,
|
| /Linux-v5.4/drivers/crypto/nx/ |
| D | nx-sha512.c | 68 u64 buf_len = (sctx->count[0] % SHA512_BLOCK_SIZE); in nx_sha512_update() 76 total = (sctx->count[0] % SHA512_BLOCK_SIZE) + len; in nx_sha512_update() 77 if (total < SHA512_BLOCK_SIZE) { in nx_sha512_update() 128 to_process = to_process & ~(SHA512_BLOCK_SIZE - 1); in nx_sha512_update() 167 } while (leftover >= SHA512_BLOCK_SIZE); in nx_sha512_update() 200 if (sctx->count[0] >= SHA512_BLOCK_SIZE) { in nx_sha512_final() 218 len = sctx->count[0] & (SHA512_BLOCK_SIZE - 1); in nx_sha512_final() 222 if (len != (sctx->count[0] & (SHA512_BLOCK_SIZE - 1))) { in nx_sha512_final() 283 .cra_blocksize = SHA512_BLOCK_SIZE,
|
| /Linux-v5.4/arch/mips/cavium-octeon/crypto/ |
| D | octeon-sha512.c | 119 index = sctx->count[0] % SHA512_BLOCK_SIZE; in __octeon_sha512_update() 125 part_len = SHA512_BLOCK_SIZE - index; in __octeon_sha512_update() 132 for (i = part_len; i + SHA512_BLOCK_SIZE <= len; in __octeon_sha512_update() 133 i += SHA512_BLOCK_SIZE) in __octeon_sha512_update() 157 if ((sctx->count[0] % SHA512_BLOCK_SIZE) + len < SHA512_BLOCK_SIZE) in octeon_sha512_update() 234 .cra_blocksize = SHA512_BLOCK_SIZE,
|
| /Linux-v5.4/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-v5.4/arch/x86/crypto/ |
| D | sha512_ssse3_glue.c | 53 (sctx->count[0] % SHA512_BLOCK_SIZE) + len < SHA512_BLOCK_SIZE) in sha512_update() 112 .cra_blocksize = SHA512_BLOCK_SIZE, 189 .cra_blocksize = SHA512_BLOCK_SIZE, 260 .cra_blocksize = SHA512_BLOCK_SIZE,
|
| /Linux-v5.4/arch/arm64/crypto/ |
| D | sha512-ce-glue.c | 91 .base.cra_blocksize = SHA512_BLOCK_SIZE, 103 .base.cra_blocksize = SHA512_BLOCK_SIZE,
|
| D | sha512-glue.c | 61 .base.cra_blocksize = SHA512_BLOCK_SIZE,
|
| /Linux-v5.4/drivers/crypto/inside-secure/ |
| D | safexcel_hash.c | 1378 req->block_sz = SHA512_BLOCK_SIZE; in safexcel_sha512_init() 1413 .cra_blocksize = SHA512_BLOCK_SIZE, 1433 req->block_sz = SHA512_BLOCK_SIZE; in safexcel_sha384_init() 1495 req->len = SHA512_BLOCK_SIZE; in safexcel_hmac_sha512_init() 1496 req->processed = SHA512_BLOCK_SIZE; in safexcel_hmac_sha512_init() 1501 req->block_sz = SHA512_BLOCK_SIZE; in safexcel_hmac_sha512_init() 1538 .cra_blocksize = SHA512_BLOCK_SIZE, 1565 req->len = SHA512_BLOCK_SIZE; in safexcel_hmac_sha384_init() 1566 req->processed = SHA512_BLOCK_SIZE; in safexcel_hmac_sha384_init() 1571 req->block_sz = SHA512_BLOCK_SIZE; in safexcel_hmac_sha384_init()
|
| D | safexcel.h | 746 #define HASH_CACHE_SIZE SHA512_BLOCK_SIZE
|
| /Linux-v5.4/drivers/crypto/ccree/ |
| D | cc_hash.h | 19 #define CC_MAX_HASH_BLCK_SIZE SHA512_BLOCK_SIZE
|
| /Linux-v5.4/crypto/ |
| D | sha512_generic.c | 156 src += SHA512_BLOCK_SIZE; in sha512_generic_block_fn() 192 .cra_blocksize = SHA512_BLOCK_SIZE,
|
| /Linux-v5.4/arch/s390/crypto/ |
| D | sha512_s390.c | 79 .cra_blocksize = SHA512_BLOCK_SIZE,
|
| /Linux-v5.4/drivers/crypto/ccp/ |
| D | ccp-crypto.h | 182 #define MAX_SHA_BLOCK_SIZE SHA512_BLOCK_SIZE
|
| D | ccp-crypto-sha.c | 412 .block_size = SHA512_BLOCK_SIZE,
|
| /Linux-v5.4/drivers/crypto/mediatek/ |
| D | mtk-sha.c | 100 u8 ipad[SHA512_BLOCK_SIZE] __aligned(sizeof(u32)); 101 u8 opad[SHA512_BLOCK_SIZE] __aligned(sizeof(u32)); 400 ctx->bs = SHA512_BLOCK_SIZE; in mtk_sha_init() 1107 .cra_blocksize = SHA512_BLOCK_SIZE, 1158 .cra_blocksize = SHA512_BLOCK_SIZE,
|
| /Linux-v5.4/drivers/crypto/ |
| D | omap-sham.c | 136 #define BUFLEN SHA512_BLOCK_SIZE 163 u8 ipad[SHA512_BLOCK_SIZE] OMAP_ALIGNED; 164 u8 opad[SHA512_BLOCK_SIZE] OMAP_ALIGNED; 436 d = SHA512_BLOCK_SIZE; in get_block_size() 971 bs = SHA512_BLOCK_SIZE; in omap_sham_init() 1672 .cra_blocksize = SHA512_BLOCK_SIZE, 1717 .cra_blocksize = SHA512_BLOCK_SIZE,
|
| D | atmel-sha.c | 106 u8 buffer[SHA_BUFFER_LEN + SHA512_BLOCK_SIZE] __aligned(sizeof(u32)); 458 ctx->block_size = SHA512_BLOCK_SIZE; in atmel_sha_init() 1368 .cra_blocksize = SHA512_BLOCK_SIZE, 1679 u8 buffer[SHA512_BLOCK_SIZE]; 1731 u32 ipad[SHA512_BLOCK_SIZE / sizeof(u32)]; 1732 u32 opad[SHA512_BLOCK_SIZE / sizeof(u32)]; 1784 ctx->block_size = SHA512_BLOCK_SIZE; in atmel_sha_hmac_setup() 2204 .cra_blocksize = SHA512_BLOCK_SIZE,
|
| D | talitos.c | 843 #define TALITOS_MAX_KEY_SIZE (AES_MAX_KEY_SIZE + SHA512_BLOCK_SIZE) 861 #define HASH_MAX_BLOCK_SIZE SHA512_BLOCK_SIZE 2907 .cra_blocksize = SHA512_BLOCK_SIZE, 2997 .cra_blocksize = SHA512_BLOCK_SIZE,
|
| /Linux-v5.4/fs/verity/ |
| D | hash_algs.c | 23 .block_size = SHA512_BLOCK_SIZE,
|
| /Linux-v5.4/drivers/crypto/bcm/ |
| D | cipher.h | 47 #define MAX_HASH_BLOCK_SIZE SHA512_BLOCK_SIZE
|
| /Linux-v5.4/drivers/crypto/qat/qat_common/ |
| D | qat_algs.c | 121 char ipad[SHA512_BLOCK_SIZE]; /* sufficient for SHA-1/SHA-256 as well */ 122 char opad[SHA512_BLOCK_SIZE];
|
| /Linux-v5.4/drivers/crypto/caam/ |
| D | caamhash.c | 74 #define CAAM_MAX_HASH_BLOCK_SIZE SHA512_BLOCK_SIZE 1722 .blocksize = SHA512_BLOCK_SIZE,
|