Lines Matching refs:nonce
36 static void xchacha_init(u32 *chacha_state, const u8 *key, const u8 *nonce)
42 memcpy(iv + 8, nonce + 16, 8);
46 /* Compute the subkey given the original key and first 128 nonce bits */
47 chacha_init(chacha_state, k, nonce);
92 const u64 nonce,
102 iv[1] = cpu_to_le64(nonce);
114 const u8 nonce[XCHACHA20POLY1305_NONCE_SIZE],
119 xchacha_init(chacha_state, key, nonce);
170 const u64 nonce,
181 iv[1] = cpu_to_le64(nonce);
196 const u8 nonce[XCHACHA20POLY1305_NONCE_SIZE],
201 xchacha_init(chacha_state, key, nonce);
211 const u64 nonce,
242 b.iv[1] = cpu_to_le64(nonce);
335 const u64 nonce,
339 nonce, key, 1);
345 const u64 nonce,
353 ad, ad_len, nonce, key, 0);