Searched refs:SHA512_BLOCK_SIZE (Results 1 – 15 of 15) sorted by relevance
/linux-4.4.14/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 | 23 #define SHA512_BLOCK_SIZE 128 macro 82 u8 buf[SHA512_BLOCK_SIZE];
|
/linux-4.4.14/arch/sparc/crypto/ |
D | sha512_glue.c | 68 done = SHA512_BLOCK_SIZE - partial; in __sha512_sparc64_update() 72 if (len - done >= SHA512_BLOCK_SIZE) { in __sha512_sparc64_update() 73 const unsigned int rounds = (len - done) / SHA512_BLOCK_SIZE; in __sha512_sparc64_update() 76 done += rounds * SHA512_BLOCK_SIZE; in __sha512_sparc64_update() 86 unsigned int partial = sctx->count[0] % SHA512_BLOCK_SIZE; in sha512_sparc64_update() 89 if (partial + len < SHA512_BLOCK_SIZE) { in sha512_sparc64_update() 105 static const u8 padding[SHA512_BLOCK_SIZE] = { 0x80, }; in sha512_sparc64_final() 112 index = sctx->count[0] % SHA512_BLOCK_SIZE; in sha512_sparc64_final() 113 padlen = (index < 112) ? (112 - index) : ((SHA512_BLOCK_SIZE+112) - index); in sha512_sparc64_final() 158 .cra_blocksize = SHA512_BLOCK_SIZE,
|
/linux-4.4.14/drivers/crypto/nx/ |
D | nx-sha512.c | 80 u64 buf_len = (sctx->count[0] % SHA512_BLOCK_SIZE); in nx_sha512_update() 88 total = (sctx->count[0] % SHA512_BLOCK_SIZE) + len; in nx_sha512_update() 89 if (total < SHA512_BLOCK_SIZE) { in nx_sha512_update() 140 to_process = to_process & ~(SHA512_BLOCK_SIZE - 1); in nx_sha512_update() 180 } while (leftover >= SHA512_BLOCK_SIZE); in nx_sha512_update() 213 if (sctx->count[0] >= SHA512_BLOCK_SIZE) { in nx_sha512_final() 231 len = sctx->count[0] & (SHA512_BLOCK_SIZE - 1); in nx_sha512_final() 235 if (len != (sctx->count[0] & (SHA512_BLOCK_SIZE - 1))) { in nx_sha512_final() 298 .cra_blocksize = SHA512_BLOCK_SIZE,
|
/linux-4.4.14/arch/mips/cavium-octeon/crypto/ |
D | octeon-sha512.c | 123 index = sctx->count[0] % SHA512_BLOCK_SIZE; in __octeon_sha512_update() 129 part_len = SHA512_BLOCK_SIZE - index; in __octeon_sha512_update() 136 for (i = part_len; i + SHA512_BLOCK_SIZE <= len; in __octeon_sha512_update() 137 i += SHA512_BLOCK_SIZE) in __octeon_sha512_update() 161 if ((sctx->count[0] % SHA512_BLOCK_SIZE) + len < SHA512_BLOCK_SIZE) in octeon_sha512_update() 239 .cra_blocksize = SHA512_BLOCK_SIZE,
|
/linux-4.4.14/arch/arm/crypto/ |
D | sha512-neon-glue.c | 34 (sctx->count[0] % SHA512_BLOCK_SIZE) + len < SHA512_BLOCK_SIZE) in sha512_neon_update() 95 .cra_blocksize = SHA512_BLOCK_SIZE,
|
D | sha512-glue.c | 67 .cra_blocksize = SHA512_BLOCK_SIZE, 82 .cra_blocksize = SHA512_BLOCK_SIZE,
|
/linux-4.4.14/arch/x86/crypto/ |
D | sha512_ssse3_glue.c | 53 (sctx->count[0] % SHA512_BLOCK_SIZE) + len < SHA512_BLOCK_SIZE) in sha512_update() 113 .cra_blocksize = SHA512_BLOCK_SIZE, 192 .cra_blocksize = SHA512_BLOCK_SIZE, 265 .cra_blocksize = SHA512_BLOCK_SIZE,
|
/linux-4.4.14/arch/s390/crypto/ |
D | sha.h | 23 #define SHA_MAX_BLOCK_SIZE SHA512_BLOCK_SIZE
|
D | sha512_s390.c | 85 .cra_blocksize = SHA512_BLOCK_SIZE,
|
/linux-4.4.14/crypto/ |
D | sha512_generic.c | 139 src += SHA512_BLOCK_SIZE; in sha512_generic_block_fn() 175 .cra_blocksize = SHA512_BLOCK_SIZE,
|
/linux-4.4.14/drivers/crypto/ |
D | omap-sham.c | 162 u8 ipad[SHA512_BLOCK_SIZE] OMAP_ALIGNED; 163 u8 opad[SHA512_BLOCK_SIZE] OMAP_ALIGNED; 434 d = SHA512_BLOCK_SIZE; in get_block_size() 885 bs = SHA512_BLOCK_SIZE; in omap_sham_init() 1554 .cra_blocksize = SHA512_BLOCK_SIZE, 1601 .cra_blocksize = SHA512_BLOCK_SIZE,
|
D | atmel-sha.c | 302 ctx->block_size = SHA512_BLOCK_SIZE; in atmel_sha_init() 987 SHA_BUFFER_LEN + SHA512_BLOCK_SIZE); in atmel_sha_cra_init() 1094 .cra_blocksize = SHA512_BLOCK_SIZE,
|
D | talitos.c | 821 #define HASH_MAX_BLOCK_SIZE SHA512_BLOCK_SIZE 2485 .cra_blocksize = SHA512_BLOCK_SIZE, 2581 .cra_blocksize = SHA512_BLOCK_SIZE,
|
/linux-4.4.14/drivers/crypto/caam/ |
D | caamhash.c | 71 #define CAAM_MAX_HASH_BLOCK_SIZE SHA512_BLOCK_SIZE 1710 .blocksize = SHA512_BLOCK_SIZE,
|