From 44f75d419b3a3ceec748621a2e97b675945a52bc Mon Sep 17 00:00:00 2001 From: Hannes Date: Fri, 14 May 2021 13:02:50 +0200 Subject: [PATCH] Made features usable. --- src/kdf_chain.rs | 2 +- src/kdf_root.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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;