diff --git a/src/kdf_chain.rs b/src/kdf_chain.rs index 7e41995..5b4a10d 100644 --- a/src/kdf_chain.rs +++ b/src/kdf_chain.rs @@ -3,7 +3,7 @@ use hmac::{Hmac, Mac, NewMac}; #[cfg(feature = "ring")] use ring_compat::digest::Sha512; -#[cfg(feature = "default")] +#[cfg(not(feature = "ring"))] use sha2::Sha512; use core::convert::TryInto; diff --git a/src/kdf_root.rs b/src/kdf_root.rs index cc971f3..2f75b98 100644 --- a/src/kdf_root.rs +++ b/src/kdf_root.rs @@ -4,7 +4,7 @@ use hkdf::Hkdf; #[cfg(feature = "ring")] use ring_compat::digest::Sha512; -#[cfg(feature = "default")] +#[cfg(not(feature = "ring"))] use sha2::Sha512; use core::convert::TryInto;