/Linux-v4.19/include/crypto/ |
D | sha1_base.h | 40 unsigned int partial = sctx->count % SHA1_BLOCK_SIZE; in sha1_base_do_update() 44 if (unlikely((partial + len) >= SHA1_BLOCK_SIZE)) { in sha1_base_do_update() 48 int p = SHA1_BLOCK_SIZE - partial; in sha1_base_do_update() 57 blocks = len / SHA1_BLOCK_SIZE; in sha1_base_do_update() 58 len %= SHA1_BLOCK_SIZE; in sha1_base_do_update() 62 data += blocks * SHA1_BLOCK_SIZE; in sha1_base_do_update() 75 const int bit_offset = SHA1_BLOCK_SIZE - sizeof(__be64); in sha1_base_do_finalize() 78 unsigned int partial = sctx->count % SHA1_BLOCK_SIZE; in sha1_base_do_finalize() 82 memset(sctx->buffer + partial, 0x0, SHA1_BLOCK_SIZE - partial); in sha1_base_do_finalize()
|
D | sha.h | 12 #define SHA1_BLOCK_SIZE 64 macro 81 u8 buffer[SHA1_BLOCK_SIZE];
|
/Linux-v4.19/arch/sparc/crypto/ |
D | sha1_glue.c | 47 done = SHA1_BLOCK_SIZE - partial; in __sha1_sparc64_update() 51 if (len - done >= SHA1_BLOCK_SIZE) { in __sha1_sparc64_update() 52 const unsigned int rounds = (len - done) / SHA1_BLOCK_SIZE; in __sha1_sparc64_update() 55 done += rounds * SHA1_BLOCK_SIZE; in __sha1_sparc64_update() 65 unsigned int partial = sctx->count % SHA1_BLOCK_SIZE; in sha1_sparc64_update() 68 if (partial + len < SHA1_BLOCK_SIZE) { in sha1_sparc64_update() 84 static const u8 padding[SHA1_BLOCK_SIZE] = { 0x80, }; in sha1_sparc64_final() 89 index = sctx->count % SHA1_BLOCK_SIZE; in sha1_sparc64_final() 90 padlen = (index < 56) ? (56 - index) : ((SHA1_BLOCK_SIZE+56) - index); in sha1_sparc64_final() 142 .cra_blocksize = SHA1_BLOCK_SIZE,
|
/Linux-v4.19/arch/mips/cavium-octeon/crypto/ |
D | octeon-sha1.c | 99 partial = sctx->count % SHA1_BLOCK_SIZE; in __octeon_sha1_update() 104 if ((partial + len) >= SHA1_BLOCK_SIZE) { in __octeon_sha1_update() 108 done + SHA1_BLOCK_SIZE); in __octeon_sha1_update() 114 done += SHA1_BLOCK_SIZE; in __octeon_sha1_update() 116 } while (done + SHA1_BLOCK_SIZE <= len); in __octeon_sha1_update() 135 if ((sctx->count % SHA1_BLOCK_SIZE) + len < SHA1_BLOCK_SIZE) in octeon_sha1_update() 218 .cra_blocksize = SHA1_BLOCK_SIZE,
|
/Linux-v4.19/drivers/crypto/ |
D | padlock-sha.c | 102 leftover = ((state.count - 1) & (SHA1_BLOCK_SIZE - 1)) + 1; in padlock_sha1_finup() 103 space = SHA1_BLOCK_SIZE - leftover; in padlock_sha1_finup() 116 state.count &= ~(SHA1_BLOCK_SIZE - 1); in padlock_sha1_finup() 178 state.count &= ~(SHA1_BLOCK_SIZE - 1); in padlock_sha256_finup() 251 .cra_blocksize = SHA1_BLOCK_SIZE, 312 if ((partial + len) >= SHA1_BLOCK_SIZE) { in padlock_sha1_update_nano() 318 done + SHA1_BLOCK_SIZE); in padlock_sha1_update_nano() 323 done += SHA1_BLOCK_SIZE; in padlock_sha1_update_nano() 328 if (len - done >= SHA1_BLOCK_SIZE) { in padlock_sha1_update_nano() 332 "c"((unsigned long)((len - done) / SHA1_BLOCK_SIZE))); in padlock_sha1_update_nano() [all …]
|
D | omap-sham.c | 431 d = SHA1_BLOCK_SIZE; in get_block_size() 954 bs = SHA1_BLOCK_SIZE; in omap_sham_init() 958 bs = SHA1_BLOCK_SIZE; in omap_sham_init() 1470 .cra_blocksize = SHA1_BLOCK_SIZE, 1492 .cra_blocksize = SHA1_BLOCK_SIZE, 1515 .cra_blocksize = SHA1_BLOCK_SIZE, 1539 .cra_blocksize = SHA1_BLOCK_SIZE,
|
D | atmel-sha.c | 445 ctx->block_size = SHA1_BLOCK_SIZE; in atmel_sha_init() 1271 .cra_blocksize = SHA1_BLOCK_SIZE, 1767 ctx->block_size = SHA1_BLOCK_SIZE; in atmel_sha_hmac_setup() 2107 .cra_blocksize = SHA1_BLOCK_SIZE,
|
/Linux-v4.19/arch/arm/crypto/ |
D | sha1_neon_glue.c | 43 (sctx->count % SHA1_BLOCK_SIZE) + len < SHA1_BLOCK_SIZE) in sha1_neon_update() 86 .cra_blocksize = SHA1_BLOCK_SIZE,
|
D | sha1-ce-glue.c | 37 (sctx->count % SHA1_BLOCK_SIZE) + len < SHA1_BLOCK_SIZE) in sha1_ce_update() 78 .cra_blocksize = SHA1_BLOCK_SIZE,
|
D | sha1_glue.c | 70 .cra_blocksize = SHA1_BLOCK_SIZE,
|
/Linux-v4.19/arch/x86/crypto/ |
D | sha1_ssse3_glue.c | 43 (sctx->count % SHA1_BLOCK_SIZE) + len < SHA1_BLOCK_SIZE) in sha1_update() 107 .cra_blocksize = SHA1_BLOCK_SIZE, 159 .cra_blocksize = SHA1_BLOCK_SIZE, 250 .cra_blocksize = SHA1_BLOCK_SIZE, 307 .cra_blocksize = SHA1_BLOCK_SIZE,
|
/Linux-v4.19/arch/x86/crypto/sha1-mb/ |
D | sha1_mb.c | 109 static inline uint32_t sha1_pad(uint8_t padblock[SHA1_BLOCK_SIZE * 2], in sha1_pad() 112 uint32_t i = total_len & (SHA1_BLOCK_SIZE - 1); in sha1_pad() 114 memset(&padblock[i], 0, SHA1_BLOCK_SIZE); in sha1_pad() 117 i += ((SHA1_BLOCK_SIZE - 1) & in sha1_pad() 156 copy_len = len & (SHA1_BLOCK_SIZE-1); in sha1_ctx_mgr_resubmit() 169 assert((len % SHA1_BLOCK_SIZE) == 0); in sha1_ctx_mgr_resubmit() 285 if (ctx->partial_block_buffer_length || len < SHA1_BLOCK_SIZE) { in sha1_ctx_mgr_submit() 290 uint32_t copy_len = SHA1_BLOCK_SIZE - in sha1_ctx_mgr_submit() 310 assert(ctx->partial_block_buffer_length <= SHA1_BLOCK_SIZE); in sha1_ctx_mgr_submit() 316 if (ctx->partial_block_buffer_length >= SHA1_BLOCK_SIZE) { in sha1_ctx_mgr_submit() [all …]
|
D | sha1_mb_ctx.h | 129 uint8_t partial_block_buffer[SHA1_BLOCK_SIZE * 2];
|
/Linux-v4.19/crypto/ |
D | sha1_generic.c | 43 src += SHA1_BLOCK_SIZE; in sha1_generic_block_fn() 80 .cra_blocksize = SHA1_BLOCK_SIZE,
|
/Linux-v4.19/arch/arm64/crypto/ |
D | sha1-ce-glue.c | 57 bool finalize = !sctx->sst.count && !(len % SHA1_BLOCK_SIZE); in sha1_ce_finup() 102 .cra_blocksize = SHA1_BLOCK_SIZE,
|
/Linux-v4.19/arch/s390/crypto/ |
D | sha1_s390.c | 81 .cra_blocksize = SHA1_BLOCK_SIZE,
|
/Linux-v4.19/arch/powerpc/crypto/ |
D | sha1.c | 135 .cra_blocksize = SHA1_BLOCK_SIZE,
|
D | sha1-spe-glue.c | 188 .cra_blocksize = SHA1_BLOCK_SIZE,
|
/Linux-v4.19/drivers/crypto/rockchip/ |
D | rk3288_crypto_ahash.c | 336 .cra_blocksize = SHA1_BLOCK_SIZE, 396 .cra_blocksize = SHA1_BLOCK_SIZE,
|
/Linux-v4.19/drivers/crypto/qce/ |
D | sha.c | 444 .blocksize = SHA1_BLOCK_SIZE, 462 .blocksize = SHA1_BLOCK_SIZE,
|
/Linux-v4.19/drivers/crypto/mediatek/ |
D | mtk-sha.c | 388 ctx->bs = SHA1_BLOCK_SIZE; in mtk_sha_init() 938 .cra_blocksize = SHA1_BLOCK_SIZE, 1009 .cra_blocksize = SHA1_BLOCK_SIZE,
|
/Linux-v4.19/drivers/crypto/sunxi-ss/ |
D | sun4i-ss-core.c | 74 .cra_blocksize = SHA1_BLOCK_SIZE,
|
/Linux-v4.19/drivers/crypto/ccp/ |
D | ccp-crypto-sha.c | 385 .block_size = SHA1_BLOCK_SIZE,
|
/Linux-v4.19/drivers/crypto/stm32/ |
D | stm32-hash.c | 1206 .cra_blocksize = SHA1_BLOCK_SIZE, 1232 .cra_blocksize = SHA1_BLOCK_SIZE,
|
/Linux-v4.19/drivers/crypto/marvell/ |
D | hash.c | 993 .cra_blocksize = SHA1_BLOCK_SIZE, 1371 .cra_blocksize = SHA1_BLOCK_SIZE,
|