diff --git a/kbkdf/src/lib.rs b/kbkdf/src/lib.rs index e805e8e..026681a 100644 --- a/kbkdf/src/lib.rs +++ b/kbkdf/src/lib.rs @@ -7,7 +7,6 @@ #![no_std] #![cfg_attr(docsrs, feature(doc_cfg))] -#![recursion_limit = "128"] #[cfg(feature = "std")] extern crate std; @@ -82,7 +81,7 @@ where /// - K - the expected output length of the newly derived key /// - R - An integer (1 <= r <= 32) that indicates the length of the binary encoding of the counter i /// as an integer in the interval [1, 2r − 1]. -pub trait Kbkdf +pub trait Kbkdf where Prf: Mac + KeyInit, K: KeySizeUser, diff --git a/kbkdf/src/sealed.rs b/kbkdf/src/sealed.rs index afa8213..da2167b 100644 --- a/kbkdf/src/sealed.rs +++ b/kbkdf/src/sealed.rs @@ -1,13 +1,12 @@ - use digest::{ - consts::{U16, U24, U32, U8}, - generic_array::typenum::Unsigned, - }; +use digest::{ + consts::{U16, U24, U32, U8}, + generic_array::typenum::Unsigned, +}; - /// Marker used to register valid values for R in the KBKDF - pub trait R: Unsigned {} - - impl R for U8 {} - impl R for U16 {} - impl R for U24 {} - impl R for U32 {} +/// Marker used to register valid values for R in the KBKDF +pub trait R: Unsigned {} +impl R for U8 {} +impl R for U16 {} +impl R for U24 {} +impl R for U32 {}