Home
last modified time | relevance | path

Searched refs:SHA1_BLOCK_SIZE (Results 1 – 32 of 32) sorted by relevance

/linux-4.4.14/include/crypto/
Dsha1_base.h40 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()
Dsha.h11 #define SHA1_BLOCK_SIZE 64 macro
70 u8 buffer[SHA1_BLOCK_SIZE];
/linux-4.4.14/arch/sparc/crypto/
Dsha1_glue.c47 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.4.14/arch/mips/cavium-octeon/crypto/
Docteon-sha1.c99 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.4.14/drivers/crypto/
Dpadlock-sha.c103 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 …]
Dmv_cesa.c143 u8 buffer[SHA1_BLOCK_SIZE];
561 ctx->extra_bytes = hw_bytes % SHA1_BLOCK_SIZE; in mv_start_new_hash_req()
907 return mv_cra_hash_init(tfm, "sha1", COP_HMAC_SHA1, SHA1_BLOCK_SIZE); in mv_cra_hash_hmac_sha1_init()
993 .cra_blocksize = SHA1_BLOCK_SIZE,
1018 .cra_blocksize = SHA1_BLOCK_SIZE,
Domap-sham.c426 d = SHA1_BLOCK_SIZE; in get_block_size()
865 bs = SHA1_BLOCK_SIZE; in omap_sham_init()
869 bs = SHA1_BLOCK_SIZE; in omap_sham_init()
1338 .cra_blocksize = SHA1_BLOCK_SIZE,
1361 .cra_blocksize = SHA1_BLOCK_SIZE,
1385 .cra_blocksize = SHA1_BLOCK_SIZE,
1410 .cra_blocksize = SHA1_BLOCK_SIZE,
Datmel-sha.c286 ctx->block_size = SHA1_BLOCK_SIZE; in atmel_sha_init()
1006 .cra_blocksize = SHA1_BLOCK_SIZE,
Dmxs-dcp.c845 .cra_blocksize = SHA1_BLOCK_SIZE,
Dimg-hash.c747 .cra_blocksize = SHA1_BLOCK_SIZE,
Dtalitos.c2421 .cra_blocksize = SHA1_BLOCK_SIZE,
2517 .cra_blocksize = SHA1_BLOCK_SIZE,
Dsahara.c1270 .cra_blocksize = SHA1_BLOCK_SIZE,
Dixp4xx_crypto.c95 #define HMAC_PAD_BLOCKLEN SHA1_BLOCK_SIZE
Dn2_core.c1334 .block_size = SHA1_BLOCK_SIZE },
/linux-4.4.14/arch/arm/crypto/
Dsha1-ce-glue.c36 (sctx->count % SHA1_BLOCK_SIZE) + len < SHA1_BLOCK_SIZE) in sha1_ce_update()
78 .cra_blocksize = SHA1_BLOCK_SIZE,
Dsha1_neon_glue.c43 (sctx->count % SHA1_BLOCK_SIZE) + len < SHA1_BLOCK_SIZE) in sha1_neon_update()
87 .cra_blocksize = SHA1_BLOCK_SIZE,
Dsha1_glue.c71 .cra_blocksize = SHA1_BLOCK_SIZE,
/linux-4.4.14/arch/x86/crypto/
Dsha1_ssse3_glue.c43 (sctx->count % SHA1_BLOCK_SIZE) + len < SHA1_BLOCK_SIZE) in sha1_update()
108 .cra_blocksize = SHA1_BLOCK_SIZE,
161 .cra_blocksize = SHA1_BLOCK_SIZE,
253 .cra_blocksize = SHA1_BLOCK_SIZE,
311 .cra_blocksize = SHA1_BLOCK_SIZE,
/linux-4.4.14/arch/x86/crypto/sha-mb/
Dsha1_mb.c112 inline uint32_t sha1_pad(uint8_t padblock[SHA1_BLOCK_SIZE * 2], in sha1_pad()
115 uint32_t i = total_len & (SHA1_BLOCK_SIZE - 1); in sha1_pad()
117 memset(&padblock[i], 0, SHA1_BLOCK_SIZE); in sha1_pad()
120 i += ((SHA1_BLOCK_SIZE - 1) & in sha1_pad()
158 copy_len = len & (SHA1_BLOCK_SIZE-1); in sha1_ctx_mgr_resubmit()
171 assert((len % SHA1_BLOCK_SIZE) == 0); in sha1_ctx_mgr_resubmit()
288 if ((ctx->partial_block_buffer_length) | (len < SHA1_BLOCK_SIZE)) { in sha1_ctx_mgr_submit()
290 uint32_t copy_len = SHA1_BLOCK_SIZE - ctx->partial_block_buffer_length; in sha1_ctx_mgr_submit()
305 assert(ctx->partial_block_buffer_length <= SHA1_BLOCK_SIZE); in sha1_ctx_mgr_submit()
308 if (ctx->partial_block_buffer_length >= SHA1_BLOCK_SIZE) { in sha1_ctx_mgr_submit()
[all …]
Dsha_mb_ctx.h131 uint8_t partial_block_buffer[SHA1_BLOCK_SIZE * 2];
/linux-4.4.14/crypto/
Dsha1_generic.c36 src += SHA1_BLOCK_SIZE; in sha1_generic_block_fn()
73 .cra_blocksize = SHA1_BLOCK_SIZE,
/linux-4.4.14/arch/arm64/crypto/
Dsha1-ce-glue.c53 bool finalize = !sctx->sst.count && !(len % SHA1_BLOCK_SIZE); in sha1_ce_finup()
98 .cra_blocksize = SHA1_BLOCK_SIZE,
/linux-4.4.14/arch/s390/crypto/
Dsha1_s390.c87 .cra_blocksize = SHA1_BLOCK_SIZE,
/linux-4.4.14/arch/powerpc/crypto/
Dsha1.c136 .cra_blocksize = SHA1_BLOCK_SIZE,
Dsha1-spe-glue.c188 .cra_blocksize = SHA1_BLOCK_SIZE,
/linux-4.4.14/drivers/crypto/qce/
Dsha.c462 .blocksize = SHA1_BLOCK_SIZE,
480 .blocksize = SHA1_BLOCK_SIZE,
/linux-4.4.14/drivers/crypto/sunxi-ss/
Dsun4i-ss-core.c77 .cra_blocksize = SHA1_BLOCK_SIZE,
/linux-4.4.14/drivers/crypto/ccp/
Dccp-crypto-sha.c360 .block_size = SHA1_BLOCK_SIZE,
Dccp-ops.c1509 block_size = SHA1_BLOCK_SIZE; in ccp_run_sha_cmd()
/linux-4.4.14/drivers/crypto/marvell/
Dhash.c975 .cra_blocksize = SHA1_BLOCK_SIZE,
1344 .cra_blocksize = SHA1_BLOCK_SIZE,
/linux-4.4.14/drivers/crypto/ux500/hash/
Dhash_core.c1533 .cra_blocksize = SHA1_BLOCK_SIZE,
1579 .cra_blocksize = SHA1_BLOCK_SIZE,
/linux-4.4.14/drivers/crypto/caam/
Dcaamhash.c1622 .blocksize = SHA1_BLOCK_SIZE,