Skip to content

Commit 0a99489

Browse files
committed
cleanup
1 parent cb8284c commit 0a99489

File tree

2 files changed

+11
-13
lines changed

2 files changed

+11
-13
lines changed

kbkdf/src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
88
#![no_std]
99
#![cfg_attr(docsrs, feature(doc_cfg))]
10-
#![recursion_limit = "128"]
1110

1211
#[cfg(feature = "std")]
1312
extern crate std;
@@ -82,7 +81,7 @@ where
8281
/// - K - the expected output length of the newly derived key
8382
/// - R - An integer (1 <= r <= 32) that indicates the length of the binary encoding of the counter i
8483
/// as an integer in the interval [1, 2r − 1].
85-
pub trait Kbkdf<Prf, K, R: sealed::R = U32>
84+
pub trait Kbkdf<Prf, K, R: sealed::R>
8685
where
8786
Prf: Mac + KeyInit,
8887
K: KeySizeUser,

kbkdf/src/sealed.rs

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
1-
use digest::{
2-
consts::{U16, U24, U32, U8},
3-
generic_array::typenum::Unsigned,
4-
};
1+
use digest::{
2+
consts::{U16, U24, U32, U8},
3+
generic_array::typenum::Unsigned,
4+
};
55

6-
/// Marker used to register valid values for R in the KBKDF
7-
pub trait R: Unsigned {}
8-
9-
impl R for U8 {}
10-
impl R for U16 {}
11-
impl R for U24 {}
12-
impl R for U32 {}
6+
/// Marker used to register valid values for R in the KBKDF
7+
pub trait R: Unsigned {}
138

9+
impl R for U8 {}
10+
impl R for U16 {}
11+
impl R for U24 {}
12+
impl R for U32 {}

0 commit comments

Comments
 (0)