Home
last modified time | relevance | path

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

/linux-6.6.21/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 …]
/linux-6.6.21/drivers/char/
Drandom.c295 u32 chacha_state[CHACHA_STATE_WORDS], in crng_fast_key_erasure()
302 chacha_init_consts(chacha_state); in crng_fast_key_erasure()
303 memcpy(&chacha_state[4], key, CHACHA_KEY_SIZE); in crng_fast_key_erasure()
304 memset(&chacha_state[12], 0, sizeof(u32) * 4); in crng_fast_key_erasure()
305 chacha20_block(chacha_state, first_block); in crng_fast_key_erasure()
317 static void crng_make_state(u32 chacha_state[CHACHA_STATE_WORDS], in crng_make_state()
339 crng_fast_key_erasure(base_crng.key, chacha_state, in crng_make_state()
358 crng_fast_key_erasure(base_crng.key, chacha_state, in crng_make_state()
371 crng_fast_key_erasure(crng->key, chacha_state, random_data, random_data_len); in crng_make_state()
377 u32 chacha_state[CHACHA_STATE_WORDS]; in _get_random_bytes() local
[all …]
/linux-6.6.21/tools/testing/crypto/chacha20-s390/
Dtest-cipher.c53 u32 chacha_state[CHACHA_STATE_WORDS]; in test_lib_chacha() local
69 chacha_init_arch(chacha_state, (u32*)key, iv); in test_lib_chacha()
72 chacha_crypt_arch(chacha_state, cipher, plain, data_size, 20); in test_lib_chacha()
84 chacha_init_arch(chacha_state, (u32 *)key, iv); in test_lib_chacha()
87 chacha_crypt_arch(chacha_state, revert, cipher, data_size, 20); in test_lib_chacha()