diff --git a/chacha20/src/legacy.rs b/chacha20/src/legacy.rs index 6d842b5..b33b820 100644 --- a/chacha20/src/legacy.rs +++ b/chacha20/src/legacy.rs @@ -10,7 +10,6 @@ use cipher::{ /// Nonce type used by [`ChaCha20Legacy`]. pub type LegacyNonce = Array; - use crate::variants::Legacy; /// The ChaCha20 stream cipher (legacy "djb" construction with 64-bit nonce). diff --git a/chacha20/src/xchacha.rs b/chacha20/src/xchacha.rs index 458164d..70e9bfe 100644 --- a/chacha20/src/xchacha.rs +++ b/chacha20/src/xchacha.rs @@ -6,11 +6,6 @@ use cipher::{ BlockSizeUser, IvSizeUser, KeyIvInit, KeySizeUser, StreamCipherCoreWrapper, StreamClosure, }; -use crate::{ - variants::Ietf, ChaChaCore, Rounds, StreamCipherCore, StreamCipherSeekCore, CONSTANTS, R12, - R20, R8, STATE_WORDS, -}; - #[cfg(feature = "zeroize")] use zeroize::ZeroizeOnDrop; @@ -195,7 +190,7 @@ mod hchacha20_tests { "82413b4227b27bfed30e42508a877d73" "a0f9e4d58a74a853c12ec41326d3ecdc" ); - + let actual = hchacha::( Array::from_slice(&KEY), Array::from_slice(&INPUT),