Home
last modified time | relevance | path

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

/Linux-v5.4/arch/x86/crypto/
Dchacha_glue.c45 len = min(len, maxblocks * CHACHA_BLOCK_SIZE); in chacha_advance()
46 return round_up(len, CHACHA_BLOCK_SIZE) / CHACHA_BLOCK_SIZE; in chacha_advance()
55 while (bytes >= CHACHA_BLOCK_SIZE * 8) { in chacha_dosimd()
58 bytes -= CHACHA_BLOCK_SIZE * 8; in chacha_dosimd()
59 src += CHACHA_BLOCK_SIZE * 8; in chacha_dosimd()
60 dst += CHACHA_BLOCK_SIZE * 8; in chacha_dosimd()
63 if (bytes > CHACHA_BLOCK_SIZE * 4) { in chacha_dosimd()
69 if (bytes > CHACHA_BLOCK_SIZE * 2) { in chacha_dosimd()
84 while (bytes >= CHACHA_BLOCK_SIZE * 8) { in chacha_dosimd()
86 bytes -= CHACHA_BLOCK_SIZE * 8; in chacha_dosimd()
[all …]
/Linux-v5.4/arch/arm/crypto/
Dchacha-neon-glue.c42 u8 buf[CHACHA_BLOCK_SIZE]; in chacha_doneon()
44 while (bytes >= CHACHA_BLOCK_SIZE * 4) { in chacha_doneon()
46 bytes -= CHACHA_BLOCK_SIZE * 4; in chacha_doneon()
47 src += CHACHA_BLOCK_SIZE * 4; in chacha_doneon()
48 dst += CHACHA_BLOCK_SIZE * 4; in chacha_doneon()
51 while (bytes >= CHACHA_BLOCK_SIZE) { in chacha_doneon()
53 bytes -= CHACHA_BLOCK_SIZE; in chacha_doneon()
54 src += CHACHA_BLOCK_SIZE; in chacha_doneon()
55 dst += CHACHA_BLOCK_SIZE; in chacha_doneon()
97 if (req->cryptlen <= CHACHA_BLOCK_SIZE || !crypto_simd_usable()) in chacha_neon()
[all …]
/Linux-v5.4/arch/arm64/crypto/
Dchacha-neon-glue.c43 int l = min(bytes, CHACHA_BLOCK_SIZE * 5); in chacha_doneon()
45 if (l <= CHACHA_BLOCK_SIZE) { in chacha_doneon()
46 u8 buf[CHACHA_BLOCK_SIZE]; in chacha_doneon()
55 bytes -= CHACHA_BLOCK_SIZE * 5; in chacha_doneon()
56 src += CHACHA_BLOCK_SIZE * 5; in chacha_doneon()
57 dst += CHACHA_BLOCK_SIZE * 5; in chacha_doneon()
94 if (req->cryptlen <= CHACHA_BLOCK_SIZE || !crypto_simd_usable()) in chacha_neon()
108 if (req->cryptlen <= CHACHA_BLOCK_SIZE || !crypto_simd_usable()) in xchacha_neon()
135 .chunksize = CHACHA_BLOCK_SIZE,
136 .walksize = 5 * CHACHA_BLOCK_SIZE,
[all …]
/Linux-v5.4/crypto/
Dchacha_generic.c19 u8 stream[CHACHA_BLOCK_SIZE] __aligned(sizeof(long)); in chacha_docrypt()
21 while (bytes >= CHACHA_BLOCK_SIZE) { in chacha_docrypt()
23 crypto_xor_cpy(dst, src, stream, CHACHA_BLOCK_SIZE); in chacha_docrypt()
24 bytes -= CHACHA_BLOCK_SIZE; in chacha_docrypt()
25 dst += CHACHA_BLOCK_SIZE; in chacha_docrypt()
26 src += CHACHA_BLOCK_SIZE; in chacha_docrypt()
49 nbytes = round_down(nbytes, CHACHA_BLOCK_SIZE); in chacha_stream_xor()
153 .chunksize = CHACHA_BLOCK_SIZE,
168 .chunksize = CHACHA_BLOCK_SIZE,
183 .chunksize = CHACHA_BLOCK_SIZE,
Dadiantum.c382 if (round_up(stream_len, CHACHA_BLOCK_SIZE) <= req->cryptlen) in adiantum_crypt()
383 stream_len = round_up(stream_len, CHACHA_BLOCK_SIZE); in adiantum_crypt()
/Linux-v5.4/drivers/char/
Drandom.c504 static void _extract_crng(struct crng_state *crng, __u8 out[CHACHA_BLOCK_SIZE]);
506 __u8 tmp[CHACHA_BLOCK_SIZE], int used);
1005 __u8 block[CHACHA_BLOCK_SIZE]; in crng_reseed()
1052 __u8 out[CHACHA_BLOCK_SIZE]) in _extract_crng() argument
1069 static void extract_crng(__u8 out[CHACHA_BLOCK_SIZE]) in extract_crng() argument
1087 __u8 tmp[CHACHA_BLOCK_SIZE], int used) in _crng_backtrack_protect() argument
1094 if (used + CHACHA_KEY_SIZE > CHACHA_BLOCK_SIZE) { in _crng_backtrack_protect()
1106 static void crng_backtrack_protect(__u8 tmp[CHACHA_BLOCK_SIZE], int used) in crng_backtrack_protect() argument
1121 ssize_t ret = 0, i = CHACHA_BLOCK_SIZE; in extract_crng_user()
1122 __u8 tmp[CHACHA_BLOCK_SIZE] __aligned(4); in extract_crng_user()
[all …]
/Linux-v5.4/include/crypto/
Dchacha.h26 #define CHACHA_BLOCK_SIZE 64 macro