Home
last modified time | relevance | path

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

12

/linux/include/crypto/
A Dsha1_base.h41 unsigned int partial = sctx->count % SHA1_BLOCK_SIZE; in sha1_base_do_update()
45 if (unlikely((partial + len) >= SHA1_BLOCK_SIZE)) { in sha1_base_do_update()
49 int p = SHA1_BLOCK_SIZE - partial; in sha1_base_do_update()
58 blocks = len / SHA1_BLOCK_SIZE; in sha1_base_do_update()
59 len %= SHA1_BLOCK_SIZE; in sha1_base_do_update()
63 data += blocks * SHA1_BLOCK_SIZE; in sha1_base_do_update()
76 const int bit_offset = SHA1_BLOCK_SIZE - sizeof(__be64); in sha1_base_do_finalize()
79 unsigned int partial = sctx->count % SHA1_BLOCK_SIZE; in sha1_base_do_finalize()
83 memset(sctx->buffer + partial, 0x0, SHA1_BLOCK_SIZE - partial); in sha1_base_do_finalize()
A Dsha1.h12 #define SHA1_BLOCK_SIZE 64 macro
25 u8 buffer[SHA1_BLOCK_SIZE];
/linux/arch/sparc/crypto/
A 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()
142 .cra_blocksize = SHA1_BLOCK_SIZE,
/linux/arch/mips/cavium-octeon/crypto/
A Docteon-sha1.c95 partial = sctx->count % SHA1_BLOCK_SIZE; in __octeon_sha1_update()
100 if ((partial + len) >= SHA1_BLOCK_SIZE) { in __octeon_sha1_update()
104 done + SHA1_BLOCK_SIZE); in __octeon_sha1_update()
110 done += SHA1_BLOCK_SIZE; in __octeon_sha1_update()
112 } while (done + SHA1_BLOCK_SIZE <= len); in __octeon_sha1_update()
131 if ((sctx->count % SHA1_BLOCK_SIZE) + len < SHA1_BLOCK_SIZE) in octeon_sha1_update()
214 .cra_blocksize = SHA1_BLOCK_SIZE,
/linux/drivers/crypto/
A Dpadlock-sha.c94 leftover = ((state.count - 1) & (SHA1_BLOCK_SIZE - 1)) + 1; in padlock_sha1_finup()
95 space = SHA1_BLOCK_SIZE - leftover; in padlock_sha1_finup()
108 state.count &= ~(SHA1_BLOCK_SIZE - 1); in padlock_sha1_finup()
169 state.count &= ~(SHA1_BLOCK_SIZE - 1); in padlock_sha256_finup()
238 .cra_blocksize = SHA1_BLOCK_SIZE,
297 if ((partial + len) >= SHA1_BLOCK_SIZE) { in padlock_sha1_update_nano()
303 done + SHA1_BLOCK_SIZE); in padlock_sha1_update_nano()
308 done += SHA1_BLOCK_SIZE; in padlock_sha1_update_nano()
313 if (len - done >= SHA1_BLOCK_SIZE) { in padlock_sha1_update_nano()
317 "c"((unsigned long)((len - done) / SHA1_BLOCK_SIZE))); in padlock_sha1_update_nano()
[all …]
A Domap-sham.c415 d = SHA1_BLOCK_SIZE; in get_block_size()
965 bs = SHA1_BLOCK_SIZE; in omap_sham_init()
969 bs = SHA1_BLOCK_SIZE; in omap_sham_init()
1441 .cra_blocksize = SHA1_BLOCK_SIZE,
1463 .cra_blocksize = SHA1_BLOCK_SIZE,
1486 .cra_blocksize = SHA1_BLOCK_SIZE,
1510 .cra_blocksize = SHA1_BLOCK_SIZE,
A Dsa2ul.c391 for (; i < SHA1_BLOCK_SIZE; i++) in prepare_kipad()
403 for (; i < SHA1_BLOCK_SIZE; i++) in prepare_kopad()
443 u8 k_pad[SHA1_BLOCK_SIZE]; in sa_prepare_iopads()
2073 .cra_blocksize = SHA1_BLOCK_SIZE,
A Datmel-sha.c443 ctx->block_size = SHA1_BLOCK_SIZE; in atmel_sha_init()
1277 .halg.base.cra_blocksize = SHA1_BLOCK_SIZE,
1698 ctx->block_size = SHA1_BLOCK_SIZE; in atmel_sha_hmac_setup()
2040 .halg.base.cra_blocksize = SHA1_BLOCK_SIZE,
/linux/arch/x86/crypto/
A Dsha1_ssse3_glue.c35 (sctx->count % SHA1_BLOCK_SIZE) + len < SHA1_BLOCK_SIZE) in sha1_update()
98 .cra_blocksize = SHA1_BLOCK_SIZE,
147 .cra_blocksize = SHA1_BLOCK_SIZE,
229 .cra_blocksize = SHA1_BLOCK_SIZE,
279 .cra_blocksize = SHA1_BLOCK_SIZE,
/linux/arch/arm/crypto/
A Dsha1-ce-glue.c35 (sctx->count % SHA1_BLOCK_SIZE) + len < SHA1_BLOCK_SIZE) in sha1_ce_update()
76 .cra_blocksize = SHA1_BLOCK_SIZE,
A Dsha1_neon_glue.c38 (sctx->count % SHA1_BLOCK_SIZE) + len < SHA1_BLOCK_SIZE) in sha1_neon_update()
81 .cra_blocksize = SHA1_BLOCK_SIZE,
A Dsha1_glue.c64 .cra_blocksize = SHA1_BLOCK_SIZE,
/linux/arch/arm64/crypto/
A Dsha1-ce-glue.c45 src += (blocks - rem) * SHA1_BLOCK_SIZE; in __sha1_ce_transform()
71 bool finalize = !sctx->sst.count && !(len % SHA1_BLOCK_SIZE) && len; in sha1_ce_finup()
131 .cra_blocksize = SHA1_BLOCK_SIZE,
/linux/crypto/
A Dsha1_generic.c37 src += SHA1_BLOCK_SIZE; in sha1_generic_block_fn()
74 .cra_blocksize = SHA1_BLOCK_SIZE,
/linux/arch/s390/crypto/
A Dsha1_s390.c81 .cra_blocksize = SHA1_BLOCK_SIZE,
/linux/arch/powerpc/crypto/
A Dsha1.c127 .cra_blocksize = SHA1_BLOCK_SIZE,
A Dsha1-spe-glue.c182 .cra_blocksize = SHA1_BLOCK_SIZE,
/linux/drivers/crypto/rockchip/
A Drk3288_crypto_ahash.c334 .cra_blocksize = SHA1_BLOCK_SIZE,
394 .cra_blocksize = SHA1_BLOCK_SIZE,
/linux/drivers/crypto/qce/
A Dsha.c417 .blocksize = SHA1_BLOCK_SIZE,
435 .blocksize = SHA1_BLOCK_SIZE,
/linux/drivers/crypto/inside-secure/
A Dsafexcel_hash.c946 req->block_sz = SHA1_BLOCK_SIZE; in safexcel_sha1_init()
1002 .cra_blocksize = SHA1_BLOCK_SIZE,
1022 req->len = SHA1_BLOCK_SIZE; in safexcel_hmac_sha1_init()
1023 req->processed = SHA1_BLOCK_SIZE; in safexcel_hmac_sha1_init()
1029 req->block_sz = SHA1_BLOCK_SIZE; in safexcel_hmac_sha1_init()
1254 .cra_blocksize = SHA1_BLOCK_SIZE,
/linux/kernel/bpf/
A Dcore.c268 const u32 bits_offset = SHA1_BLOCK_SIZE - sizeof(__be64); in bpf_prog_calc_tag()
314 bsize = round_up(psize, SHA1_BLOCK_SIZE); in bpf_prog_calc_tag()
315 blocks = bsize / SHA1_BLOCK_SIZE; in bpf_prog_calc_tag()
327 todo += SHA1_BLOCK_SIZE; in bpf_prog_calc_tag()
/linux/drivers/crypto/allwinner/sun4i-ss/
A Dsun4i-ss-core.c81 .cra_blocksize = SHA1_BLOCK_SIZE,
/linux/drivers/crypto/ccp/
A Dccp-crypto-sha.c375 .block_size = SHA1_BLOCK_SIZE,
/linux/drivers/crypto/stm32/
A Dstm32-hash.c1193 .cra_blocksize = SHA1_BLOCK_SIZE,
1219 .cra_blocksize = SHA1_BLOCK_SIZE,
/linux/drivers/crypto/marvell/cesa/
A Dhash.c1025 .cra_blocksize = SHA1_BLOCK_SIZE,
1405 .cra_blocksize = SHA1_BLOCK_SIZE,

Completed in 47 milliseconds

12