Searched refs:CHACHA_BLOCK_SIZE (Results 1 – 10 of 10) sorted by relevance
/Linux-v5.10/arch/x86/crypto/ |
D | chacha_glue.c | 44 len = min(len, maxblocks * CHACHA_BLOCK_SIZE); in chacha_advance() 45 return round_up(len, CHACHA_BLOCK_SIZE) / CHACHA_BLOCK_SIZE; in chacha_advance() 53 while (bytes >= CHACHA_BLOCK_SIZE * 8) { in chacha_dosimd() 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() 61 if (bytes > CHACHA_BLOCK_SIZE * 4) { in chacha_dosimd() 67 if (bytes > CHACHA_BLOCK_SIZE * 2) { in chacha_dosimd() 82 while (bytes >= CHACHA_BLOCK_SIZE * 8) { in chacha_dosimd() 84 bytes -= CHACHA_BLOCK_SIZE * 8; in chacha_dosimd() [all …]
|
/Linux-v5.10/arch/arm/crypto/ |
D | chacha-glue.c | 43 u8 buf[CHACHA_BLOCK_SIZE]; in chacha_doneon() 45 while (bytes >= CHACHA_BLOCK_SIZE * 4) { in chacha_doneon() 47 bytes -= CHACHA_BLOCK_SIZE * 4; in chacha_doneon() 48 src += CHACHA_BLOCK_SIZE * 4; in chacha_doneon() 49 dst += CHACHA_BLOCK_SIZE * 4; in chacha_doneon() 52 while (bytes >= CHACHA_BLOCK_SIZE) { in chacha_doneon() 54 bytes -= CHACHA_BLOCK_SIZE; in chacha_doneon() 55 src += CHACHA_BLOCK_SIZE; in chacha_doneon() 56 dst += CHACHA_BLOCK_SIZE; in chacha_doneon() 88 bytes <= CHACHA_BLOCK_SIZE) { in chacha_crypt_arch() [all …]
|
/Linux-v5.10/lib/crypto/ |
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()
|
D | chacha20poly1305.c | 229 u8 chacha_stream[CHACHA_BLOCK_SIZE]; in chacha20poly1305_crypt_sg_inplace() 266 size_t l = min(length, CHACHA_BLOCK_SIZE - partial); in chacha20poly1305_crypt_sg_inplace() 269 partial = (partial + l) & (CHACHA_BLOCK_SIZE - 1); in chacha20poly1305_crypt_sg_inplace() 275 if (likely(length >= CHACHA_BLOCK_SIZE || length == sl)) { in chacha20poly1305_crypt_sg_inplace() 279 l &= ~(CHACHA_BLOCK_SIZE - 1); in chacha20poly1305_crypt_sg_inplace() 287 CHACHA_BLOCK_SIZE); in chacha20poly1305_crypt_sg_inplace()
|
/Linux-v5.10/arch/arm64/crypto/ |
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() 86 if (!static_branch_likely(&have_neon) || bytes <= CHACHA_BLOCK_SIZE || in chacha_crypt_arch() 175 .chunksize = CHACHA_BLOCK_SIZE, 176 .walksize = 5 * CHACHA_BLOCK_SIZE, 191 .chunksize = CHACHA_BLOCK_SIZE, 192 .walksize = 5 * CHACHA_BLOCK_SIZE, 207 .chunksize = CHACHA_BLOCK_SIZE, [all …]
|
/Linux-v5.10/crypto/ |
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,
|
D | adiantum.c | 373 if (round_up(stream_len, CHACHA_BLOCK_SIZE) <= req->cryptlen) in adiantum_crypt() 374 stream_len = round_up(stream_len, CHACHA_BLOCK_SIZE); in adiantum_crypt()
|
/Linux-v5.10/drivers/char/ |
D | random.c | 468 static void _extract_crng(struct crng_state *crng, __u8 out[CHACHA_BLOCK_SIZE]); 470 __u8 tmp[CHACHA_BLOCK_SIZE], int used); 953 __u8 block[CHACHA_BLOCK_SIZE]; in crng_reseed() 999 __u8 out[CHACHA_BLOCK_SIZE]) in _extract_crng() argument 1016 static void extract_crng(__u8 out[CHACHA_BLOCK_SIZE]) in extract_crng() argument 1034 __u8 tmp[CHACHA_BLOCK_SIZE], int used) in _crng_backtrack_protect() argument 1041 if (used + CHACHA_KEY_SIZE > CHACHA_BLOCK_SIZE) { in _crng_backtrack_protect() 1053 static void crng_backtrack_protect(__u8 tmp[CHACHA_BLOCK_SIZE], int used) in crng_backtrack_protect() argument 1068 ssize_t ret = 0, i = CHACHA_BLOCK_SIZE; in extract_crng_user() 1069 __u8 tmp[CHACHA_BLOCK_SIZE] __aligned(4); in extract_crng_user() [all …]
|
/Linux-v5.10/arch/mips/crypto/ |
D | chacha-glue.c | 92 .chunksize = CHACHA_BLOCK_SIZE, 107 .chunksize = CHACHA_BLOCK_SIZE, 122 .chunksize = CHACHA_BLOCK_SIZE,
|
/Linux-v5.10/include/crypto/ |
D | chacha.h | 25 #define CHACHA_BLOCK_SIZE 64 macro 28 #define CHACHA_STATE_WORDS (CHACHA_BLOCK_SIZE / sizeof(u32))
|