Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions chacha20/src/variants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,13 @@ impl Variant for Ietf {
}

/// DJB variant specific features: 64-bit counter and 64-bit nonce.
#[cfg(feature = "legacy")]
#[cfg(any(feature = "legacy", feature = "rng"))]
pub enum Legacy {}

#[cfg(feature = "legacy")]
#[cfg(any(feature = "legacy", feature = "rng"))]
impl sealed::Sealed for Legacy {}

#[cfg(feature = "legacy")]
#[cfg(any(feature = "legacy", feature = "rng"))]
impl Variant for Legacy {
type Counter = u64;

Expand Down