/kernel/linux/linux-5.10/include/crypto/ |
H A 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()
|
H A D | sha.h | 12 #define SHA1_BLOCK_SIZE 64 macro 81 u8 buffer[SHA1_BLOCK_SIZE];
|
/kernel/linux/linux-6.6/include/crypto/ |
H 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()
|
H A D | sha1.h | 12 #define SHA1_BLOCK_SIZE 64 macro 25 u8 buffer[SHA1_BLOCK_SIZE];
|
/kernel/linux/linux-5.10/arch/sparc/crypto/ |
H 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, [all...] |
/kernel/linux/linux-6.6/arch/sparc/crypto/ |
H A D | sha1_glue.c | 37 done = SHA1_BLOCK_SIZE - partial; in __sha1_sparc64_update() 41 if (len - done >= SHA1_BLOCK_SIZE) { in __sha1_sparc64_update() 42 const unsigned int rounds = (len - done) / SHA1_BLOCK_SIZE; in __sha1_sparc64_update() 45 done += rounds * SHA1_BLOCK_SIZE; in __sha1_sparc64_update() 55 unsigned int partial = sctx->count % SHA1_BLOCK_SIZE; in sha1_sparc64_update() 58 if (partial + len < SHA1_BLOCK_SIZE) { in sha1_sparc64_update() 74 static const u8 padding[SHA1_BLOCK_SIZE] = { 0x80, }; in sha1_sparc64_final() 79 index = sctx->count % SHA1_BLOCK_SIZE; in sha1_sparc64_final() 80 padlen = (index < 56) ? (56 - index) : ((SHA1_BLOCK_SIZE+56) - index); in sha1_sparc64_final() 132 .cra_blocksize = SHA1_BLOCK_SIZE, [all...] |
/kernel/linux/linux-6.6/arch/mips/cavium-octeon/crypto/ |
H A D | octeon-sha1.c | 82 partial = sctx->count % SHA1_BLOCK_SIZE; in __octeon_sha1_update() 87 if ((partial + len) >= SHA1_BLOCK_SIZE) { in __octeon_sha1_update() 91 done + SHA1_BLOCK_SIZE); in __octeon_sha1_update() 97 done += SHA1_BLOCK_SIZE; in __octeon_sha1_update() 99 } while (done + SHA1_BLOCK_SIZE <= len); in __octeon_sha1_update() 118 if ((sctx->count % SHA1_BLOCK_SIZE) + len < SHA1_BLOCK_SIZE) in octeon_sha1_update() 201 .cra_blocksize = SHA1_BLOCK_SIZE,
|
/kernel/linux/linux-5.10/arch/mips/cavium-octeon/crypto/ |
H 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,
|
/kernel/linux/linux-5.10/drivers/crypto/ |
H A D | padlock-sha.c | 93 leftover = ((state.count - 1) & (SHA1_BLOCK_SIZE - 1)) + 1; in padlock_sha1_finup() 94 space = SHA1_BLOCK_SIZE - leftover; in padlock_sha1_finup() 107 state.count &= ~(SHA1_BLOCK_SIZE - 1); in padlock_sha1_finup() 168 state.count &= ~(SHA1_BLOCK_SIZE - 1); in padlock_sha256_finup() 237 .cra_blocksize = SHA1_BLOCK_SIZE, 296 if ((partial + len) >= SHA1_BLOCK_SIZE) { in padlock_sha1_update_nano() 302 done + SHA1_BLOCK_SIZE); in padlock_sha1_update_nano() 307 done += SHA1_BLOCK_SIZE; in padlock_sha1_update_nano() 312 if (len - done >= SHA1_BLOCK_SIZE) { in padlock_sha1_update_nano() 316 "c"((unsigned long)((len - done) / SHA1_BLOCK_SIZE))); in padlock_sha1_update_nano() [all...] |
/kernel/linux/linux-6.6/drivers/crypto/ |
H 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...] |
/kernel/linux/linux-5.10/arch/x86/crypto/ |
H 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,
|
/kernel/linux/linux-5.10/arch/arm/crypto/ |
H 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,
|
H 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,
|
H A D | sha1_glue.c | 64 .cra_blocksize = SHA1_BLOCK_SIZE,
|
/kernel/linux/linux-6.6/arch/arm/crypto/ |
H A D | sha1_neon_glue.c | 38 (sctx->count % SHA1_BLOCK_SIZE) + len < SHA1_BLOCK_SIZE) in sha1_neon_update() 79 .cra_blocksize = SHA1_BLOCK_SIZE,
|
H 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,
|
H A D | sha1_glue.c | 62 .cra_blocksize = SHA1_BLOCK_SIZE,
|
/kernel/linux/linux-6.6/arch/x86/crypto/ |
H A D | sha1_ssse3_glue.c | 44 (sctx->count % SHA1_BLOCK_SIZE) + len < SHA1_BLOCK_SIZE) in sha1_update() 107 .cra_blocksize = SHA1_BLOCK_SIZE, 156 .cra_blocksize = SHA1_BLOCK_SIZE, 238 .cra_blocksize = SHA1_BLOCK_SIZE, 288 .cra_blocksize = SHA1_BLOCK_SIZE,
|
/kernel/linux/linux-5.10/arch/arm64/crypto/ |
H 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,
|
/kernel/linux/linux-6.6/arch/arm64/crypto/ |
H 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,
|
/kernel/linux/linux-5.10/crypto/ |
H A D | sha1_generic.c | 37 src += SHA1_BLOCK_SIZE; in sha1_generic_block_fn() 74 .cra_blocksize = SHA1_BLOCK_SIZE,
|
/kernel/linux/linux-6.6/crypto/ |
H A D | sha1_generic.c | 37 src += SHA1_BLOCK_SIZE; in sha1_generic_block_fn() 74 .cra_blocksize = SHA1_BLOCK_SIZE,
|
/kernel/linux/linux-5.10/arch/s390/crypto/ |
H A D | sha1_s390.c | 81 .cra_blocksize = SHA1_BLOCK_SIZE,
|
/kernel/linux/linux-6.6/arch/s390/crypto/ |
H A D | sha1_s390.c | 81 .cra_blocksize = SHA1_BLOCK_SIZE,
|
/kernel/linux/linux-5.10/arch/powerpc/crypto/ |
H A D | sha1.c | 127 .cra_blocksize = SHA1_BLOCK_SIZE,
|