Home
last modified time | relevance | path

Searched refs:SHA512_BLOCK_SIZE (Results 1 – 25 of 31) sorted by relevance

12

/Linux-v4.19/include/crypto/
Dsha512_base.h61 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()
Dsha.h24 #define SHA512_BLOCK_SIZE 128 macro
93 u8 buf[SHA512_BLOCK_SIZE];
/Linux-v4.19/arch/sparc/crypto/
Dsha512_glue.c68 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()
157 .cra_blocksize = SHA512_BLOCK_SIZE,
/Linux-v4.19/drivers/crypto/nx/
Dnx-sha512.c80 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()
297 .cra_blocksize = SHA512_BLOCK_SIZE,
/Linux-v4.19/arch/mips/cavium-octeon/crypto/
Docteon-sha512.c123 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()
238 .cra_blocksize = SHA512_BLOCK_SIZE,
/Linux-v4.19/arch/arm/crypto/
Dsha512-neon-glue.c34 (sctx->count[0] % SHA512_BLOCK_SIZE) + len < SHA512_BLOCK_SIZE) in sha512_neon_update()
93 .cra_blocksize = SHA512_BLOCK_SIZE,
Dsha512-glue.c66 .cra_blocksize = SHA512_BLOCK_SIZE,
80 .cra_blocksize = SHA512_BLOCK_SIZE,
/Linux-v4.19/arch/x86/crypto/
Dsha512_ssse3_glue.c53 (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-v4.19/arch/x86/crypto/sha512-mb/
Dsha512_mb.c110 inline uint32_t sha512_pad(uint8_t padblock[SHA512_BLOCK_SIZE * 2], in sha512_pad()
113 uint32_t i = total_len & (SHA512_BLOCK_SIZE - 1); in sha512_pad()
115 memset(&padblock[i], 0, SHA512_BLOCK_SIZE); in sha512_pad()
118 i += ((SHA512_BLOCK_SIZE - 1) & in sha512_pad()
157 copy_len = len & (SHA512_BLOCK_SIZE-1); in sha512_ctx_mgr_resubmit()
170 assert((len % SHA512_BLOCK_SIZE) == 0); in sha512_ctx_mgr_resubmit()
302 if (ctx->partial_block_buffer_length || len < SHA512_BLOCK_SIZE) { in sha512_ctx_mgr_submit()
306 uint32_t copy_len = SHA512_BLOCK_SIZE - in sha512_ctx_mgr_submit()
326 assert(ctx->partial_block_buffer_length <= SHA512_BLOCK_SIZE); in sha512_ctx_mgr_submit()
331 if (ctx->partial_block_buffer_length >= SHA512_BLOCK_SIZE) { in sha512_ctx_mgr_submit()
[all …]
Dsha512_mb_ctx.h123 uint8_t partial_block_buffer[SHA512_BLOCK_SIZE * 2];
/Linux-v4.19/arch/arm64/crypto/
Dsha512-ce-glue.c90 .base.cra_blocksize = SHA512_BLOCK_SIZE,
102 .base.cra_blocksize = SHA512_BLOCK_SIZE,
Dsha512-glue.c66 .base.cra_blocksize = SHA512_BLOCK_SIZE,
/Linux-v4.19/arch/s390/crypto/
Dsha.h18 #define SHA_MAX_BLOCK_SIZE SHA512_BLOCK_SIZE
Dsha512_s390.c79 .cra_blocksize = SHA512_BLOCK_SIZE,
/Linux-v4.19/drivers/crypto/ccree/
Dcc_hash.h19 #define CC_MAX_HASH_BLCK_SIZE SHA512_BLOCK_SIZE
/Linux-v4.19/crypto/
Dsha512_generic.c161 src += SHA512_BLOCK_SIZE; in sha512_generic_block_fn()
197 .cra_blocksize = SHA512_BLOCK_SIZE,
/Linux-v4.19/drivers/crypto/ccp/
Dccp-crypto.h185 #define MAX_SHA_BLOCK_SIZE SHA512_BLOCK_SIZE
Dccp-crypto-sha.c417 .block_size = SHA512_BLOCK_SIZE,
/Linux-v4.19/drivers/crypto/mediatek/
Dmtk-sha.c103 u8 ipad[SHA512_BLOCK_SIZE] __aligned(sizeof(u32));
104 u8 opad[SHA512_BLOCK_SIZE] __aligned(sizeof(u32));
404 ctx->bs = SHA512_BLOCK_SIZE; in mtk_sha_init()
1111 .cra_blocksize = SHA512_BLOCK_SIZE,
1162 .cra_blocksize = SHA512_BLOCK_SIZE,
/Linux-v4.19/drivers/crypto/axis/
Dartpec6_crypto.c294 char partial_buffer[SHA512_BLOCK_SIZE];
295 char partial_buffer_out[SHA512_BLOCK_SIZE];
296 char key_buffer[SHA512_BLOCK_SIZE];
297 char pad_buffer[SHA512_BLOCK_SIZE + 32];
308 char partial_buffer[SHA512_BLOCK_SIZE];
317 char hmac_key[SHA512_BLOCK_SIZE];
2828 .cra_blocksize = SHA512_BLOCK_SIZE,
2852 .cra_blocksize = SHA512_BLOCK_SIZE,
/Linux-v4.19/drivers/crypto/
Domap-sham.c139 #define BUFLEN SHA512_BLOCK_SIZE
166 u8 ipad[SHA512_BLOCK_SIZE] OMAP_ALIGNED;
167 u8 opad[SHA512_BLOCK_SIZE] OMAP_ALIGNED;
439 d = SHA512_BLOCK_SIZE; in get_block_size()
974 bs = SHA512_BLOCK_SIZE; in omap_sham_init()
1677 .cra_blocksize = SHA512_BLOCK_SIZE,
1722 .cra_blocksize = SHA512_BLOCK_SIZE,
Datmel-sha.c109 u8 buffer[SHA_BUFFER_LEN + SHA512_BLOCK_SIZE] __aligned(sizeof(u32));
461 ctx->block_size = SHA512_BLOCK_SIZE; in atmel_sha_init()
1371 .cra_blocksize = SHA512_BLOCK_SIZE,
1682 u8 buffer[SHA512_BLOCK_SIZE];
1734 u32 ipad[SHA512_BLOCK_SIZE / sizeof(u32)];
1735 u32 opad[SHA512_BLOCK_SIZE / sizeof(u32)];
1787 ctx->block_size = SHA512_BLOCK_SIZE; in atmel_sha_hmac_setup()
2207 .cra_blocksize = SHA512_BLOCK_SIZE,
/Linux-v4.19/drivers/crypto/bcm/
Dcipher.h60 #define MAX_HASH_BLOCK_SIZE SHA512_BLOCK_SIZE
/Linux-v4.19/drivers/crypto/inside-secure/
Dsafexcel_hash.c44 u8 cache[SHA512_BLOCK_SIZE] __aligned(sizeof(u32));
48 u8 cache_next[SHA512_BLOCK_SIZE] __aligned(sizeof(u32));
1350 .cra_blocksize = SHA512_BLOCK_SIZE,
1478 .cra_blocksize = SHA512_BLOCK_SIZE,
Dsafexcel.h632 u8 cache[SHA512_BLOCK_SIZE];

12