/linux/include/crypto/ |
A D | sha1_base.h | 41 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 D | sha1.h | 12 #define SHA1_BLOCK_SIZE 64 macro 25 u8 buffer[SHA1_BLOCK_SIZE];
|
/linux/arch/sparc/crypto/ |
A 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/arch/mips/cavium-octeon/crypto/ |
A D | octeon-sha1.c | 95 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 D | padlock-sha.c | 94 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 D | omap-sham.c | 415 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 D | sa2ul.c | 391 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 D | atmel-sha.c | 443 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 D | sha1_ssse3_glue.c | 35 (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 D | sha1-ce-glue.c | 35 (sctx->count % SHA1_BLOCK_SIZE) + len < SHA1_BLOCK_SIZE) in sha1_ce_update() 76 .cra_blocksize = SHA1_BLOCK_SIZE,
|
A D | sha1_neon_glue.c | 38 (sctx->count % SHA1_BLOCK_SIZE) + len < SHA1_BLOCK_SIZE) in sha1_neon_update() 81 .cra_blocksize = SHA1_BLOCK_SIZE,
|
A D | sha1_glue.c | 64 .cra_blocksize = SHA1_BLOCK_SIZE,
|
/linux/arch/arm64/crypto/ |
A D | sha1-ce-glue.c | 45 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 D | sha1_generic.c | 37 src += SHA1_BLOCK_SIZE; in sha1_generic_block_fn() 74 .cra_blocksize = SHA1_BLOCK_SIZE,
|
/linux/arch/s390/crypto/ |
A D | sha1_s390.c | 81 .cra_blocksize = SHA1_BLOCK_SIZE,
|
/linux/arch/powerpc/crypto/ |
A D | sha1.c | 127 .cra_blocksize = SHA1_BLOCK_SIZE,
|
A D | sha1-spe-glue.c | 182 .cra_blocksize = SHA1_BLOCK_SIZE,
|
/linux/drivers/crypto/rockchip/ |
A D | rk3288_crypto_ahash.c | 334 .cra_blocksize = SHA1_BLOCK_SIZE, 394 .cra_blocksize = SHA1_BLOCK_SIZE,
|
/linux/drivers/crypto/qce/ |
A D | sha.c | 417 .blocksize = SHA1_BLOCK_SIZE, 435 .blocksize = SHA1_BLOCK_SIZE,
|
/linux/drivers/crypto/inside-secure/ |
A D | safexcel_hash.c | 946 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 D | core.c | 268 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 D | sun4i-ss-core.c | 81 .cra_blocksize = SHA1_BLOCK_SIZE,
|
/linux/drivers/crypto/ccp/ |
A D | ccp-crypto-sha.c | 375 .block_size = SHA1_BLOCK_SIZE,
|
/linux/drivers/crypto/stm32/ |
A D | stm32-hash.c | 1193 .cra_blocksize = SHA1_BLOCK_SIZE, 1219 .cra_blocksize = SHA1_BLOCK_SIZE,
|
/linux/drivers/crypto/marvell/cesa/ |
A D | hash.c | 1025 .cra_blocksize = SHA1_BLOCK_SIZE, 1405 .cra_blocksize = SHA1_BLOCK_SIZE,
|