Lines Matching refs:nonce
36 static void xchacha_init(u32 *chacha_state, const u8 *key, const u8 *nonce) in xchacha_init() argument
42 memcpy(iv + 8, nonce + 16, 8); in xchacha_init()
47 chacha_init(chacha_state, k, nonce); in xchacha_init()
92 const u64 nonce, in chacha20poly1305_encrypt() argument
102 iv[1] = cpu_to_le64(nonce); in chacha20poly1305_encrypt()
114 const u8 nonce[XCHACHA20POLY1305_NONCE_SIZE], in xchacha20poly1305_encrypt()
119 xchacha_init(chacha_state, key, nonce); in xchacha20poly1305_encrypt()
170 const u64 nonce, in chacha20poly1305_decrypt() argument
181 iv[1] = cpu_to_le64(nonce); in chacha20poly1305_decrypt()
196 const u8 nonce[XCHACHA20POLY1305_NONCE_SIZE], in xchacha20poly1305_decrypt()
201 xchacha_init(chacha_state, key, nonce); in xchacha20poly1305_decrypt()
211 const u64 nonce, in chacha20poly1305_crypt_sg_inplace() argument
242 b.iv[1] = cpu_to_le64(nonce); in chacha20poly1305_crypt_sg_inplace()
335 const u64 nonce, in chacha20poly1305_encrypt_sg_inplace() argument
339 nonce, key, 1); in chacha20poly1305_encrypt_sg_inplace()
345 const u64 nonce, in chacha20poly1305_decrypt_sg_inplace() argument
353 ad, ad_len, nonce, key, 0); in chacha20poly1305_decrypt_sg_inplace()