/linux-4.1.27/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 | 11 #define SHA1_BLOCK_SIZE 64 macro 70 u8 buffer[SHA1_BLOCK_SIZE];
|
/linux-4.1.27/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() 143 .cra_blocksize = SHA1_BLOCK_SIZE,
|
/linux-4.1.27/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() 219 .cra_blocksize = SHA1_BLOCK_SIZE,
|
/linux-4.1.27/drivers/crypto/ |
D | padlock-sha.c | 103 leftover = ((state.count - 1) & (SHA1_BLOCK_SIZE - 1)) + 1; in padlock_sha1_finup() 104 space = SHA1_BLOCK_SIZE - leftover; in padlock_sha1_finup() 117 state.count &= ~(SHA1_BLOCK_SIZE - 1); in padlock_sha1_finup() 183 state.count &= ~(SHA1_BLOCK_SIZE - 1); in padlock_sha256_finup() 260 .cra_blocksize = SHA1_BLOCK_SIZE, 323 if ((partial + len) >= SHA1_BLOCK_SIZE) { in padlock_sha1_update_nano() 329 done + SHA1_BLOCK_SIZE); in padlock_sha1_update_nano() 336 done += SHA1_BLOCK_SIZE; in padlock_sha1_update_nano() 341 if (len - done >= SHA1_BLOCK_SIZE) { in padlock_sha1_update_nano() 346 "c"((unsigned long)((len - done) / SHA1_BLOCK_SIZE))); in padlock_sha1_update_nano() [all …]
|
D | mv_cesa.c | 138 u8 buffer[SHA1_BLOCK_SIZE]; 556 ctx->extra_bytes = hw_bytes % SHA1_BLOCK_SIZE; in mv_start_new_hash_req() 902 return mv_cra_hash_init(tfm, "sha1", COP_HMAC_SHA1, SHA1_BLOCK_SIZE); in mv_cra_hash_hmac_sha1_init() 988 .cra_blocksize = SHA1_BLOCK_SIZE, 1013 .cra_blocksize = SHA1_BLOCK_SIZE,
|
D | omap-sham.c | 420 d = SHA1_BLOCK_SIZE; in get_block_size() 859 bs = SHA1_BLOCK_SIZE; in omap_sham_init() 863 bs = SHA1_BLOCK_SIZE; in omap_sham_init() 1332 .cra_blocksize = SHA1_BLOCK_SIZE, 1355 .cra_blocksize = SHA1_BLOCK_SIZE, 1379 .cra_blocksize = SHA1_BLOCK_SIZE, 1404 .cra_blocksize = SHA1_BLOCK_SIZE,
|
D | atmel-sha.c | 286 ctx->block_size = SHA1_BLOCK_SIZE; in atmel_sha_init() 1006 .cra_blocksize = SHA1_BLOCK_SIZE,
|
D | mxs-dcp.c | 845 .cra_blocksize = SHA1_BLOCK_SIZE,
|
D | img-hash.c | 747 .cra_blocksize = SHA1_BLOCK_SIZE,
|
D | talitos.c | 2212 .cra_blocksize = SHA1_BLOCK_SIZE, 2302 .cra_blocksize = SHA1_BLOCK_SIZE,
|
D | sahara.c | 1334 .cra_blocksize = SHA1_BLOCK_SIZE,
|
D | ixp4xx_crypto.c | 95 #define HMAC_PAD_BLOCKLEN SHA1_BLOCK_SIZE
|
D | n2_core.c | 1334 .block_size = SHA1_BLOCK_SIZE },
|
/linux-4.1.27/arch/arm/crypto/ |
D | sha1-ce-glue.c | 36 (sctx->count % SHA1_BLOCK_SIZE) + len < SHA1_BLOCK_SIZE) in sha1_ce_update() 78 .cra_blocksize = SHA1_BLOCK_SIZE,
|
D | sha1_neon_glue.c | 43 (sctx->count % SHA1_BLOCK_SIZE) + len < SHA1_BLOCK_SIZE) in sha1_neon_update() 87 .cra_blocksize = SHA1_BLOCK_SIZE,
|
D | sha1_glue.c | 71 .cra_blocksize = SHA1_BLOCK_SIZE,
|
/linux-4.1.27/arch/x86/crypto/sha-mb/ |
D | sha1_mb.c | 115 inline uint32_t sha1_pad(uint8_t padblock[SHA1_BLOCK_SIZE * 2], in sha1_pad() 118 uint32_t i = total_len & (SHA1_BLOCK_SIZE - 1); in sha1_pad() 120 memset(&padblock[i], 0, SHA1_BLOCK_SIZE); in sha1_pad() 123 i += ((SHA1_BLOCK_SIZE - 1) & in sha1_pad() 161 copy_len = len & (SHA1_BLOCK_SIZE-1); in sha1_ctx_mgr_resubmit() 174 assert((len % SHA1_BLOCK_SIZE) == 0); in sha1_ctx_mgr_resubmit() 291 if ((ctx->partial_block_buffer_length) | (len < SHA1_BLOCK_SIZE)) { in sha1_ctx_mgr_submit() 293 uint32_t copy_len = SHA1_BLOCK_SIZE - ctx->partial_block_buffer_length; in sha1_ctx_mgr_submit() 308 assert(ctx->partial_block_buffer_length <= SHA1_BLOCK_SIZE); in sha1_ctx_mgr_submit() 311 if (ctx->partial_block_buffer_length >= SHA1_BLOCK_SIZE) { in sha1_ctx_mgr_submit() [all …]
|
D | sha_mb_ctx.h | 131 uint8_t partial_block_buffer[SHA1_BLOCK_SIZE * 2];
|
/linux-4.1.27/arch/x86/crypto/ |
D | sha1_ssse3_glue.c | 58 (sctx->count % SHA1_BLOCK_SIZE) + len < SHA1_BLOCK_SIZE) in sha1_ssse3_update() 118 .cra_blocksize = SHA1_BLOCK_SIZE,
|
/linux-4.1.27/crypto/ |
D | sha1_generic.c | 36 src += SHA1_BLOCK_SIZE; in sha1_generic_block_fn() 73 .cra_blocksize = SHA1_BLOCK_SIZE,
|
/linux-4.1.27/arch/arm64/crypto/ |
D | sha1-ce-glue.c | 53 bool finalize = !sctx->sst.count && !(len % SHA1_BLOCK_SIZE); in sha1_ce_finup() 98 .cra_blocksize = SHA1_BLOCK_SIZE,
|
/linux-4.1.27/arch/s390/crypto/ |
D | sha1_s390.c | 86 .cra_blocksize = SHA1_BLOCK_SIZE,
|
/linux-4.1.27/arch/powerpc/crypto/ |
D | sha1.c | 136 .cra_blocksize = SHA1_BLOCK_SIZE,
|
D | sha1-spe-glue.c | 188 .cra_blocksize = SHA1_BLOCK_SIZE,
|
/linux-4.1.27/drivers/crypto/qce/ |
D | sha.c | 466 .blocksize = SHA1_BLOCK_SIZE, 484 .blocksize = SHA1_BLOCK_SIZE,
|
/linux-4.1.27/drivers/crypto/ccp/ |
D | ccp-crypto-sha.c | 347 .block_size = SHA1_BLOCK_SIZE,
|
D | ccp-ops.c | 1505 block_size = SHA1_BLOCK_SIZE; in ccp_run_sha_cmd()
|
/linux-4.1.27/drivers/crypto/ux500/hash/ |
D | hash_core.c | 1533 .cra_blocksize = SHA1_BLOCK_SIZE, 1579 .cra_blocksize = SHA1_BLOCK_SIZE,
|
/linux-4.1.27/drivers/crypto/caam/ |
D | caamhash.c | 1617 .blocksize = SHA1_BLOCK_SIZE,
|