Searched refs:CHACHA_BLOCK_SIZE (Results 1 – 15 of 15) sorted by relevance
| /linux/lib/crypto/x86/ |
| H A D | chacha.h | 48 len = min(len, maxblocks * CHACHA_BLOCK_SIZE); in chacha_advance() 49 return round_up(len, CHACHA_BLOCK_SIZE) / CHACHA_BLOCK_SIZE; in chacha_advance() 56 while (bytes >= CHACHA_BLOCK_SIZE * 8) { in chacha_dosimd() 59 bytes -= CHACHA_BLOCK_SIZE * 8; in chacha_dosimd() 60 src += CHACHA_BLOCK_SIZE * 8; in chacha_dosimd() 61 dst += CHACHA_BLOCK_SIZE * 8; in chacha_dosimd() 64 if (bytes > CHACHA_BLOCK_SIZE * 4) { in chacha_dosimd() 70 if (bytes > CHACHA_BLOCK_SIZE * 2) { in chacha_dosimd() 85 while (bytes >= CHACHA_BLOCK_SIZE * 8) { in chacha_dosimd() 87 bytes -= CHACHA_BLOCK_SIZE * 8; in chacha_dosimd() [all …]
|
| /linux/lib/crypto/ |
| H A D | chacha.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 | 231 u8 chacha_stream[CHACHA_BLOCK_SIZE]; in chacha20poly1305_crypt_sg_inplace() 268 size_t l = min(length, CHACHA_BLOCK_SIZE - partial); in chacha20poly1305_crypt_sg_inplace() 271 partial = (partial + l) & (CHACHA_BLOCK_SIZE - 1); in chacha20poly1305_crypt_sg_inplace() 277 if (likely(length >= CHACHA_BLOCK_SIZE || length == sl)) { in chacha20poly1305_crypt_sg_inplace() 281 l &= ~(CHACHA_BLOCK_SIZE - 1); in chacha20poly1305_crypt_sg_inplace() 289 CHACHA_BLOCK_SIZE); in chacha20poly1305_crypt_sg_inplace()
|
| H A D | chacha-block-generic.c | 78 u8 out[CHACHA_BLOCK_SIZE], int nrounds) in chacha_block_generic() argument
|
| /linux/lib/crypto/arm/ |
| H A D | chacha.h | 40 u8 buf[CHACHA_BLOCK_SIZE]; in chacha_doneon() 42 while (bytes > CHACHA_BLOCK_SIZE) { in chacha_doneon() 43 unsigned int l = min(bytes, CHACHA_BLOCK_SIZE * 4U); in chacha_doneon() 49 state->x[12] += DIV_ROUND_UP(l, CHACHA_BLOCK_SIZE); in chacha_doneon() 55 if (bytes != CHACHA_BLOCK_SIZE) in chacha_doneon() 79 bytes <= CHACHA_BLOCK_SIZE) { in chacha_crypt_arch() 81 state->x[12] += DIV_ROUND_UP(bytes, CHACHA_BLOCK_SIZE); in chacha_crypt_arch()
|
| /linux/lib/crypto/riscv/ |
| H A D | chacha.h | 24 u8 block_buffer[CHACHA_BLOCK_SIZE]; in chacha_crypt_arch() 25 unsigned int full_blocks = bytes / CHACHA_BLOCK_SIZE; in chacha_crypt_arch() 26 unsigned int tail_bytes = bytes % CHACHA_BLOCK_SIZE; in chacha_crypt_arch() 34 src += full_blocks * CHACHA_BLOCK_SIZE; in chacha_crypt_arch() 35 dst += full_blocks * CHACHA_BLOCK_SIZE; in chacha_crypt_arch()
|
| /linux/lib/crypto/arm64/ |
| H A D | chacha.h | 42 int l = min(bytes, CHACHA_BLOCK_SIZE * 5); in chacha_doneon() 44 if (l <= CHACHA_BLOCK_SIZE) { in chacha_doneon() 45 u8 buf[CHACHA_BLOCK_SIZE]; in chacha_doneon() 57 state->x[12] += DIV_ROUND_UP(l, CHACHA_BLOCK_SIZE); in chacha_doneon() 75 if (!static_branch_likely(&have_neon) || bytes <= CHACHA_BLOCK_SIZE || in chacha_crypt_arch()
|
| /linux/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/lib/crypto/s390/ |
| H A D | chacha.h | 24 if (bytes <= CHACHA_BLOCK_SIZE || nrounds != 20 || !cpu_has_vx()) { in chacha_crypt_arch() 33 state->x[12] += round_up(bytes, CHACHA_BLOCK_SIZE) / in chacha_crypt_arch() 34 CHACHA_BLOCK_SIZE; in chacha_crypt_arch()
|
| /linux/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/crypto/ |
| H A D | chacha.c | 64 nbytes = round_down(nbytes, CHACHA_BLOCK_SIZE); in chacha_stream_xor() 115 .chunksize = CHACHA_BLOCK_SIZE, 131 .chunksize = CHACHA_BLOCK_SIZE, 147 .chunksize = CHACHA_BLOCK_SIZE,
|
| H A D | adiantum.c | 442 if (round_up(stream_len, CHACHA_BLOCK_SIZE) <= req->cryptlen) in adiantum_crypt() 443 stream_len = round_up(stream_len, CHACHA_BLOCK_SIZE); in adiantum_crypt()
|
| /linux/include/crypto/ |
| H A D | chacha.h | 26 #define CHACHA_BLOCK_SIZE 64 macro 41 u8 out[at_least CHACHA_BLOCK_SIZE], int nrounds); 43 u8 out[at_least CHACHA_BLOCK_SIZE]) in chacha20_block() argument
|
| /linux/lib/crypto/powerpc/ |
| H A D | chacha.h | 42 state->x[12] += l / CHACHA_BLOCK_SIZE; in chacha_p10_do_8x() 54 if (!static_branch_likely(&have_p10) || bytes <= CHACHA_BLOCK_SIZE || in chacha_crypt_arch()
|
| /linux/drivers/char/ |
| H A D | random.c | 312 u8 first_block[CHACHA_BLOCK_SIZE]; in crng_fast_key_erasure() 392 u8 tmp[CHACHA_BLOCK_SIZE]; in _get_random_bytes() 404 if (len < CHACHA_BLOCK_SIZE) { in _get_random_bytes() 414 len -= CHACHA_BLOCK_SIZE; in _get_random_bytes() 415 buf += CHACHA_BLOCK_SIZE; in _get_random_bytes() 437 u8 block[CHACHA_BLOCK_SIZE]; in get_random_bytes_user() 500 type entropy[CHACHA_BLOCK_SIZE * 3 / (2 * sizeof(type))]; \
|