| /linux-6.15/arch/x86/crypto/ |
| H A D | chacha_glue.c | 45 return round_up(len, CHACHA_BLOCK_SIZE) / CHACHA_BLOCK_SIZE; in chacha_advance() 56 bytes -= CHACHA_BLOCK_SIZE * 8; in chacha_dosimd() 57 src += CHACHA_BLOCK_SIZE * 8; in chacha_dosimd() 58 dst += CHACHA_BLOCK_SIZE * 8; in chacha_dosimd() 85 src += CHACHA_BLOCK_SIZE * 8; in chacha_dosimd() 86 dst += CHACHA_BLOCK_SIZE * 8; in chacha_dosimd() 108 bytes -= CHACHA_BLOCK_SIZE * 4; in chacha_dosimd() 109 src += CHACHA_BLOCK_SIZE * 4; in chacha_dosimd() 110 dst += CHACHA_BLOCK_SIZE * 4; in chacha_dosimd() 113 if (bytes > CHACHA_BLOCK_SIZE) { in chacha_dosimd() [all …]
|
| /linux-6.15/lib/crypto/ |
| H A D | libchacha.c | 19 u8 stream[CHACHA_BLOCK_SIZE] __aligned(sizeof(long)); in chacha_crypt_generic() 21 while (bytes >= CHACHA_BLOCK_SIZE) { in chacha_crypt_generic() 23 crypto_xor_cpy(dst, src, stream, CHACHA_BLOCK_SIZE); in chacha_crypt_generic() 24 bytes -= CHACHA_BLOCK_SIZE; in chacha_crypt_generic() 25 dst += CHACHA_BLOCK_SIZE; in chacha_crypt_generic() 26 src += CHACHA_BLOCK_SIZE; in chacha_crypt_generic()
|
| H A D | chacha20poly1305.c | 228 u8 chacha_stream[CHACHA_BLOCK_SIZE]; in chacha20poly1305_crypt_sg_inplace() 265 size_t l = min(length, CHACHA_BLOCK_SIZE - partial); in chacha20poly1305_crypt_sg_inplace() 268 partial = (partial + l) & (CHACHA_BLOCK_SIZE - 1); in chacha20poly1305_crypt_sg_inplace() 274 if (likely(length >= CHACHA_BLOCK_SIZE || length == sl)) { in chacha20poly1305_crypt_sg_inplace() 278 l &= ~(CHACHA_BLOCK_SIZE - 1); in chacha20poly1305_crypt_sg_inplace() 286 CHACHA_BLOCK_SIZE); in chacha20poly1305_crypt_sg_inplace()
|
| /linux-6.15/arch/arm/crypto/ |
| H A D | chacha-glue.c | 43 u8 buf[CHACHA_BLOCK_SIZE]; in chacha_doneon() 45 while (bytes > CHACHA_BLOCK_SIZE) { in chacha_doneon() 58 if (bytes != CHACHA_BLOCK_SIZE) in chacha_doneon() 83 bytes <= CHACHA_BLOCK_SIZE) { in chacha_crypt_arch() 201 .chunksize = CHACHA_BLOCK_SIZE, 216 .chunksize = CHACHA_BLOCK_SIZE, 231 .chunksize = CHACHA_BLOCK_SIZE, 250 .chunksize = CHACHA_BLOCK_SIZE, 251 .walksize = 4 * CHACHA_BLOCK_SIZE, 266 .chunksize = CHACHA_BLOCK_SIZE, [all …]
|
| /linux-6.15/arch/riscv/crypto/ |
| H A D | chacha-riscv64-glue.c | 22 u8 block_buffer[CHACHA_BLOCK_SIZE]; in riscv64_chacha20_crypt() 37 nbytes = walk.nbytes & ~(CHACHA_BLOCK_SIZE - 1); in riscv64_chacha20_crypt() 38 tail_bytes = walk.nbytes & (CHACHA_BLOCK_SIZE - 1); in riscv64_chacha20_crypt() 43 iv[0] += nbytes / CHACHA_BLOCK_SIZE; in riscv64_chacha20_crypt() 49 CHACHA_BLOCK_SIZE, iv); in riscv64_chacha20_crypt() 69 .chunksize = CHACHA_BLOCK_SIZE, 70 .walksize = 4 * CHACHA_BLOCK_SIZE,
|
| /linux-6.15/arch/arm64/crypto/ |
| H A D | chacha-neon-glue.c | 46 int l = min(bytes, CHACHA_BLOCK_SIZE * 5); in chacha_doneon() 48 if (l <= CHACHA_BLOCK_SIZE) { in chacha_doneon() 49 u8 buf[CHACHA_BLOCK_SIZE]; in chacha_doneon() 61 state[12] += DIV_ROUND_UP(l, CHACHA_BLOCK_SIZE); in chacha_doneon() 80 if (!static_branch_likely(&have_neon) || bytes <= CHACHA_BLOCK_SIZE || in chacha_crypt_arch() 169 .chunksize = CHACHA_BLOCK_SIZE, 170 .walksize = 5 * CHACHA_BLOCK_SIZE, 185 .chunksize = CHACHA_BLOCK_SIZE, 186 .walksize = 5 * CHACHA_BLOCK_SIZE, 201 .chunksize = CHACHA_BLOCK_SIZE, [all …]
|
| /linux-6.15/arch/s390/crypto/ |
| H A D | chacha-glue.c | 31 *counter += round_up(nbytes, CHACHA_BLOCK_SIZE) / CHACHA_BLOCK_SIZE; in chacha20_crypt_s390() 51 if (nbytes <= CHACHA_BLOCK_SIZE) { in chacha20_s390() 79 if (bytes <= CHACHA_BLOCK_SIZE || nrounds != 20 || !cpu_has_vx()) in chacha_crypt_arch() 99 .chunksize = CHACHA_BLOCK_SIZE,
|
| /linux-6.15/include/vdso/ |
| H A D | getrandom.h | 12 #define CHACHA_BLOCK_SIZE 64 macro 36 u8 batch[CHACHA_BLOCK_SIZE * 3 / 2]; 39 u8 batch_key[CHACHA_BLOCK_SIZE * 2];
|
| /linux-6.15/lib/vdso/ |
| H A D | getrandom.c | 238 nblocks = len / CHACHA_BLOCK_SIZE; in __cvdso_getrandom_data() 241 buffer += nblocks * CHACHA_BLOCK_SIZE; in __cvdso_getrandom_data() 242 len -= nblocks * CHACHA_BLOCK_SIZE; in __cvdso_getrandom_data() 245 BUILD_BUG_ON(sizeof(state->batch_key) % CHACHA_BLOCK_SIZE != 0); in __cvdso_getrandom_data() 249 sizeof(state->batch_key) / CHACHA_BLOCK_SIZE); in __cvdso_getrandom_data()
|
| /linux-6.15/crypto/ |
| H A D | chacha_generic.c | 30 nbytes = round_down(nbytes, CHACHA_BLOCK_SIZE); in chacha_stream_xor() 81 .chunksize = CHACHA_BLOCK_SIZE, 96 .chunksize = CHACHA_BLOCK_SIZE, 111 .chunksize = CHACHA_BLOCK_SIZE,
|
| H A D | adiantum.c | 404 if (round_up(stream_len, CHACHA_BLOCK_SIZE) <= req->cryptlen) in adiantum_crypt() 405 stream_len = round_up(stream_len, CHACHA_BLOCK_SIZE); in adiantum_crypt()
|
| /linux-6.15/arch/powerpc/crypto/ |
| H A D | chacha-p10-glue.c | 47 state[12] += l / CHACHA_BLOCK_SIZE; in chacha_p10_do_8x() 63 if (!static_branch_likely(&have_p10) || bytes <= CHACHA_BLOCK_SIZE || in chacha_crypt_arch() 155 .chunksize = CHACHA_BLOCK_SIZE, 170 .chunksize = CHACHA_BLOCK_SIZE, 185 .chunksize = CHACHA_BLOCK_SIZE,
|
| /linux-6.15/arch/mips/crypto/ |
| H A D | chacha-glue.c | 86 .chunksize = CHACHA_BLOCK_SIZE, 101 .chunksize = CHACHA_BLOCK_SIZE, 116 .chunksize = CHACHA_BLOCK_SIZE,
|
| /linux-6.15/include/crypto/ |
| H A D | chacha.h | 25 #define CHACHA_BLOCK_SIZE 64 macro 28 #define CHACHA_STATE_WORDS (CHACHA_BLOCK_SIZE / sizeof(u32))
|
| /linux-6.15/fs/bcachefs/ |
| H A D | checksum.h | 177 EBUG_ON(offset & (CHACHA_BLOCK_SIZE - 1)); in nonce_add() 179 le32_add_cpu(&nonce.d[0], offset / CHACHA_BLOCK_SIZE); in nonce_add()
|
| H A D | btree_io.h | 116 nonce = nonce_add(nonce, round_up(bytes, CHACHA_BLOCK_SIZE)); in bset_encrypt()
|
| H A D | checksum.c | 276 if (!IS_ALIGNED(bv.bv_len, CHACHA_BLOCK_SIZE)) { in __bch2_encrypt_bio()
|
| /linux-6.15/drivers/char/ |
| H A D | random.c | 319 u8 first_block[CHACHA_BLOCK_SIZE]; in crng_fast_key_erasure() 399 u8 tmp[CHACHA_BLOCK_SIZE]; in _get_random_bytes() 411 if (len < CHACHA_BLOCK_SIZE) { in _get_random_bytes() 421 len -= CHACHA_BLOCK_SIZE; in _get_random_bytes() 422 buf += CHACHA_BLOCK_SIZE; in _get_random_bytes() 445 u8 block[CHACHA_BLOCK_SIZE]; in get_random_bytes_user() 507 type entropy[CHACHA_BLOCK_SIZE * 3 / (2 * sizeof(type))]; \
|