Home
last modified time | relevance | path

Searched refs:chacha_state (Results 1 – 2 of 2) sorted by relevance

/kernel/linux/linux-5.10/lib/crypto/
Dchacha20poly1305.c36 static void xchacha_init(u32 *chacha_state, const u8 *key, const u8 *nonce) in xchacha_init() argument
47 chacha_init(chacha_state, k, nonce); in xchacha_init()
48 hchacha_block(chacha_state, k, 20); in xchacha_init()
50 chacha_init(chacha_state, k, iv); in xchacha_init()
58 const u8 *ad, const size_t ad_len, u32 *chacha_state) in __chacha20poly1305_encrypt() argument
67 chacha20_crypt(chacha_state, b.block0, pad0, sizeof(b.block0)); in __chacha20poly1305_encrypt()
74 chacha20_crypt(chacha_state, dst, src, src_len); in __chacha20poly1305_encrypt()
86 memzero_explicit(chacha_state, CHACHA_STATE_WORDS * sizeof(u32)); in __chacha20poly1305_encrypt()
95 u32 chacha_state[CHACHA_STATE_WORDS]; in chacha20poly1305_encrypt() local
104 chacha_init(chacha_state, k, (u8 *)iv); in chacha20poly1305_encrypt()
[all …]
/kernel/linux/linux-5.10/drivers/char/
Drandom.c286 u32 chacha_state[CHACHA_STATE_WORDS], in crng_fast_key_erasure()
293 chacha_init_consts(chacha_state); in crng_fast_key_erasure()
294 memcpy(&chacha_state[4], key, CHACHA_KEY_SIZE); in crng_fast_key_erasure()
295 memset(&chacha_state[12], 0, sizeof(u32) * 4); in crng_fast_key_erasure()
296 chacha20_block(chacha_state, first_block); in crng_fast_key_erasure()
330 static void crng_make_state(u32 chacha_state[CHACHA_STATE_WORDS], in crng_make_state()
352 crng_fast_key_erasure(base_crng.key, chacha_state, in crng_make_state()
378 crng_fast_key_erasure(base_crng.key, chacha_state, in crng_make_state()
391 crng_fast_key_erasure(crng->key, chacha_state, random_data, random_data_len); in crng_make_state()
397 u32 chacha_state[CHACHA_STATE_WORDS]; in _get_random_bytes() local
[all …]