Home
last modified time | relevance | path

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

/linux-6.12.1/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.12.1/drivers/char/
Drandom.c316 u32 chacha_state[CHACHA_STATE_WORDS], in crng_fast_key_erasure()
323 chacha_init_consts(chacha_state); in crng_fast_key_erasure()
324 memcpy(&chacha_state[4], key, CHACHA_KEY_SIZE); in crng_fast_key_erasure()
325 memset(&chacha_state[12], 0, sizeof(u32) * 4); in crng_fast_key_erasure()
326 chacha20_block(chacha_state, first_block); in crng_fast_key_erasure()
338 static void crng_make_state(u32 chacha_state[CHACHA_STATE_WORDS], in crng_make_state()
360 crng_fast_key_erasure(base_crng.key, chacha_state, in crng_make_state()
379 crng_fast_key_erasure(base_crng.key, chacha_state, in crng_make_state()
392 crng_fast_key_erasure(crng->key, chacha_state, random_data, random_data_len); in crng_make_state()
398 u32 chacha_state[CHACHA_STATE_WORDS]; in _get_random_bytes() local
[all …]
/linux-6.12.1/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()