#[cfg(not(feature = "fuzztarget"))]
mod real_chachapoly {
+ use util::chacha20::ChaCha20;
+
use crypto::aead::{AeadEncryptor,AeadDecryptor};
- use crypto::chacha20::ChaCha20;
use crypto::symmetriccipher::SynchronousStreamCipher;
- use crypto::poly1305::Poly1305;
use crypto::mac::Mac;
use crypto::util::fixed_time_eq;
+ use crypto::poly1305::Poly1305;
use util::byte_utils;
#[derive(Clone, Copy)]
pub struct ChaCha20Poly1305RFC {
- cipher : ChaCha20,
+ cipher: ChaCha20,
mac: Poly1305,
finished: bool,
data_len: usize,