Home
last modified time | relevance | path

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

/Linux-v5.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 …]