Symbol: chacha_state
crypto/chacha.c
53
struct chacha_state state;
crypto/chacha.c
87
struct chacha_state state;
drivers/char/random.c
306
struct chacha_state *chacha_state,
drivers/char/random.c
313
chacha_init_consts(chacha_state);
drivers/char/random.c
314
memcpy(&chacha_state->x[4], key, CHACHA_KEY_SIZE);
drivers/char/random.c
315
memset(&chacha_state->x[12], 0, sizeof(u32) * 4);
drivers/char/random.c
316
chacha20_block(chacha_state, first_block);
drivers/char/random.c
328
static void crng_make_state(struct chacha_state *chacha_state,
drivers/char/random.c
350
crng_fast_key_erasure(base_crng.key, chacha_state,
drivers/char/random.c
369
crng_fast_key_erasure(base_crng.key, chacha_state,
drivers/char/random.c
382
crng_fast_key_erasure(crng->key, chacha_state, random_data, random_data_len);
drivers/char/random.c
388
struct chacha_state chacha_state;
drivers/char/random.c
396
crng_make_state(&chacha_state, buf, first_block_len);
drivers/char/random.c
402
chacha20_block(&chacha_state, tmp);
drivers/char/random.c
408
chacha20_block(&chacha_state, buf);
drivers/char/random.c
409
if (unlikely(chacha_state.x[12] == 0))
drivers/char/random.c
410
++chacha_state.x[13];
drivers/char/random.c
415
chacha_zeroize_state(&chacha_state);
drivers/char/random.c
433
struct chacha_state chacha_state;
drivers/char/random.c
445
crng_make_state(&chacha_state, (u8 *)&chacha_state.x[4],
drivers/char/random.c
453
ret = copy_to_iter(&chacha_state.x[4], CHACHA_KEY_SIZE, iter);
drivers/char/random.c
458
chacha20_block(&chacha_state, block);
drivers/char/random.c
459
if (unlikely(chacha_state.x[12] == 0))
drivers/char/random.c
460
++chacha_state.x[13];
drivers/char/random.c
477
chacha_zeroize_state(&chacha_state);
include/crypto/chacha.h
40
void chacha_block_generic(struct chacha_state *state,
include/crypto/chacha.h
42
static inline void chacha20_block(struct chacha_state *state,
include/crypto/chacha.h
48
void hchacha_block_generic(const struct chacha_state *state,
include/crypto/chacha.h
51
void hchacha_block(const struct chacha_state *state,
include/crypto/chacha.h
61
static inline void chacha_init_consts(struct chacha_state *state)
include/crypto/chacha.h
69
static inline void chacha_init(struct chacha_state *state,
include/crypto/chacha.h
88
void chacha_crypt(struct chacha_state *state, u8 *dst, const u8 *src,
include/crypto/chacha.h
91
static inline void chacha20_crypt(struct chacha_state *state,
include/crypto/chacha.h
97
static inline void chacha_zeroize_state(struct chacha_state *state)
lib/crypto/arm/chacha.h
17
asmlinkage void chacha_block_xor_neon(const struct chacha_state *state,
lib/crypto/arm/chacha.h
19
asmlinkage void chacha_4block_xor_neon(const struct chacha_state *state,
lib/crypto/arm/chacha.h
22
asmlinkage void hchacha_block_arm(const struct chacha_state *state,
lib/crypto/arm/chacha.h
24
asmlinkage void hchacha_block_neon(const struct chacha_state *state,
lib/crypto/arm/chacha.h
28
const struct chacha_state *state, int nrounds);
lib/crypto/arm/chacha.h
37
static void chacha_doneon(struct chacha_state *state, u8 *dst, const u8 *src,
lib/crypto/arm/chacha.h
64
static void hchacha_block_arch(const struct chacha_state *state,
lib/crypto/arm/chacha.h
75
static void chacha_crypt_arch(struct chacha_state *state, u8 *dst,
lib/crypto/arm64/chacha.h
28
asmlinkage void chacha_block_xor_neon(const struct chacha_state *state,
lib/crypto/arm64/chacha.h
30
asmlinkage void chacha_4block_xor_neon(const struct chacha_state *state,
lib/crypto/arm64/chacha.h
33
asmlinkage void hchacha_block_neon(const struct chacha_state *state,
lib/crypto/arm64/chacha.h
38
static void chacha_doneon(struct chacha_state *state, u8 *dst, const u8 *src,
lib/crypto/arm64/chacha.h
61
static void hchacha_block_arch(const struct chacha_state *state,
lib/crypto/arm64/chacha.h
72
static void chacha_crypt_arch(struct chacha_state *state, u8 *dst,
lib/crypto/chacha-block-generic.c
106
void hchacha_block_generic(const struct chacha_state *state,
lib/crypto/chacha-block-generic.c
109
struct chacha_state permuted_state = *state;
lib/crypto/chacha-block-generic.c
16
static void chacha_permute(struct chacha_state *state, int nrounds)
lib/crypto/chacha-block-generic.c
77
void chacha_block_generic(struct chacha_state *state,
lib/crypto/chacha-block-generic.c
80
struct chacha_state permuted_state = *state;
lib/crypto/chacha.c
15
chacha_crypt_generic(struct chacha_state *state, u8 *dst, const u8 *src,
lib/crypto/chacha.c
41
void chacha_crypt(struct chacha_state *state, u8 *dst, const u8 *src,
lib/crypto/chacha.c
48
void hchacha_block(const struct chacha_state *state,
lib/crypto/chacha20poly1305.c
103
chacha_init(&chacha_state, k, (u8 *)iv);
lib/crypto/chacha20poly1305.c
105
&chacha_state);
lib/crypto/chacha20poly1305.c
117
struct chacha_state chacha_state;
lib/crypto/chacha20poly1305.c
119
xchacha_init(&chacha_state, key, nonce);
lib/crypto/chacha20poly1305.c
121
&chacha_state);
lib/crypto/chacha20poly1305.c
128
struct chacha_state *chacha_state)
lib/crypto/chacha20poly1305.c
143
chacha20_crypt(chacha_state, b.block0, pad0, sizeof(b.block0));
lib/crypto/chacha20poly1305.c
163
chacha20_crypt(chacha_state, dst, src, dst_len);
lib/crypto/chacha20poly1305.c
175
struct chacha_state chacha_state;
lib/crypto/chacha20poly1305.c
185
chacha_init(&chacha_state, k, (u8 *)iv);
lib/crypto/chacha20poly1305.c
187
&chacha_state);
lib/crypto/chacha20poly1305.c
189
chacha_zeroize_state(&chacha_state);
lib/crypto/chacha20poly1305.c
201
struct chacha_state chacha_state;
lib/crypto/chacha20poly1305.c
203
xchacha_init(&chacha_state, key, nonce);
lib/crypto/chacha20poly1305.c
205
&chacha_state);
lib/crypto/chacha20poly1305.c
219
struct chacha_state chacha_state;
lib/crypto/chacha20poly1305.c
246
chacha_init(&chacha_state, b.k, (u8 *)b.iv);
lib/crypto/chacha20poly1305.c
247
chacha20_crypt(&chacha_state, b.block0, pad0, sizeof(b.block0));
lib/crypto/chacha20poly1305.c
282
chacha20_crypt(&chacha_state, addr, addr, l);
lib/crypto/chacha20poly1305.c
288
chacha20_crypt(&chacha_state, b.chacha_stream, pad0,
lib/crypto/chacha20poly1305.c
329
chacha_zeroize_state(&chacha_state);
lib/crypto/chacha20poly1305.c
33
static void xchacha_init(struct chacha_state *chacha_state,
lib/crypto/chacha20poly1305.c
45
chacha_init(chacha_state, k, nonce);
lib/crypto/chacha20poly1305.c
46
hchacha_block(chacha_state, k, 20);
lib/crypto/chacha20poly1305.c
48
chacha_init(chacha_state, k, iv);
lib/crypto/chacha20poly1305.c
57
struct chacha_state *chacha_state)
lib/crypto/chacha20poly1305.c
66
chacha20_crypt(chacha_state, b.block0, pad0, sizeof(b.block0));
lib/crypto/chacha20poly1305.c
73
chacha20_crypt(chacha_state, dst, src, src_len);
lib/crypto/chacha20poly1305.c
85
chacha_zeroize_state(chacha_state);
lib/crypto/chacha20poly1305.c
94
struct chacha_state chacha_state;
lib/crypto/mips/chacha.h
10
asmlinkage void chacha_crypt_arch(struct chacha_state *state,
lib/crypto/mips/chacha.h
13
asmlinkage void hchacha_block_arch(const struct chacha_state *state,
lib/crypto/powerpc/chacha.h
15
asmlinkage void chacha_p10le_8x(const struct chacha_state *state, u8 *dst,
lib/crypto/powerpc/chacha.h
32
static void chacha_p10_do_8x(struct chacha_state *state, u8 *dst, const u8 *src,
lib/crypto/powerpc/chacha.h
51
static void chacha_crypt_arch(struct chacha_state *state, u8 *dst,
lib/crypto/riscv/chacha.h
16
asmlinkage void chacha_zvkb(struct chacha_state *state, const u8 *in, u8 *out,
lib/crypto/riscv/chacha.h
21
static void chacha_crypt_arch(struct chacha_state *state, u8 *dst,
lib/crypto/s390/chacha.h
17
static void chacha_crypt_arch(struct chacha_state *state, u8 *dst,
lib/crypto/tests/chacha20poly1305_kunit.c
8834
struct chacha_state chacha20_state;
lib/crypto/x86/chacha.h
127
static void hchacha_block_arch(const struct chacha_state *state,
lib/crypto/x86/chacha.h
13
asmlinkage void chacha_block_xor_ssse3(const struct chacha_state *state,
lib/crypto/x86/chacha.h
139
static void chacha_crypt_arch(struct chacha_state *state, u8 *dst,
lib/crypto/x86/chacha.h
16
asmlinkage void chacha_4block_xor_ssse3(const struct chacha_state *state,
lib/crypto/x86/chacha.h
19
asmlinkage void hchacha_block_ssse3(const struct chacha_state *state,
lib/crypto/x86/chacha.h
22
asmlinkage void chacha_2block_xor_avx2(const struct chacha_state *state,
lib/crypto/x86/chacha.h
25
asmlinkage void chacha_4block_xor_avx2(const struct chacha_state *state,
lib/crypto/x86/chacha.h
28
asmlinkage void chacha_8block_xor_avx2(const struct chacha_state *state,
lib/crypto/x86/chacha.h
32
asmlinkage void chacha_2block_xor_avx512vl(const struct chacha_state *state,
lib/crypto/x86/chacha.h
35
asmlinkage void chacha_4block_xor_avx512vl(const struct chacha_state *state,
lib/crypto/x86/chacha.h
38
asmlinkage void chacha_8block_xor_avx512vl(const struct chacha_state *state,
lib/crypto/x86/chacha.h
52
static void chacha_dosimd(struct chacha_state *state, u8 *dst, const u8 *src,
tools/testing/crypto/chacha20-s390/test-cipher.c
52
struct chacha_state chacha_state;
tools/testing/crypto/chacha20-s390/test-cipher.c
68
chacha_init(&chacha_state, (u32 *)key, iv);
tools/testing/crypto/chacha20-s390/test-cipher.c
71
chacha_crypt_arch(&chacha_state, cipher, plain, data_size, 20);
tools/testing/crypto/chacha20-s390/test-cipher.c
83
chacha_init(&chacha_state, (u32 *)key, iv);
tools/testing/crypto/chacha20-s390/test-cipher.c
86
chacha_crypt_arch(&chacha_state, revert, cipher, data_size, 20);