Home
last modified time | relevance | path

Searched refs:CHACHA_BLOCK_SIZE (Results 1 – 10 of 10) sorted by relevance

/linux/lib/crypto/x86/
H A Dchacha.h48 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/arm/
H A Dchacha.h40 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 Dchacha.h24 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/include/vdso/
H A Dgetrandom.h12 #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 Dchacha.h24 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/include/crypto/
H A Dchacha.h26 #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/crypto/
H A Dchacha.c64 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,
/linux/lib/crypto/powerpc/
H A Dchacha.h42 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 Drandom.c309 u8 first_block[CHACHA_BLOCK_SIZE]; in crng_fast_key_erasure()
389 u8 tmp[CHACHA_BLOCK_SIZE]; in _get_random_bytes()
401 if (len < CHACHA_BLOCK_SIZE) { in _get_random_bytes()
411 len -= CHACHA_BLOCK_SIZE; in _get_random_bytes()
412 buf += CHACHA_BLOCK_SIZE; in _get_random_bytes()
434 u8 block[CHACHA_BLOCK_SIZE]; in get_random_bytes_user()
497 type entropy[CHACHA_BLOCK_SIZE * 3 / (2 * sizeof(type))]; \
/linux/lib/crypto/
H A Dchacha-block-generic.c78 u8 out[CHACHA_BLOCK_SIZE], int nrounds) in chacha_block_generic() argument