Skip to content

Commit d43c405

Browse files
authored
chacha20 - adding the proper features for using legacy/djb construction (#455)
Fixes #454
1 parent 9a7c28d commit d43c405

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

chacha20/src/variants.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,13 @@ impl Variant for Ietf {
5353
}
5454

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

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

62-
#[cfg(feature = "legacy")]
62+
#[cfg(any(feature = "legacy", feature = "rng"))]
6363
impl Variant for Legacy {
6464
type Counter = u64;
6565

0 commit comments

Comments
 (0)