Skip to content

Commit 2dd2ce8

Browse files
committed
fmt
1 parent d5e85a7 commit 2dd2ce8

File tree

1 file changed

+10
-13
lines changed

1 file changed

+10
-13
lines changed

blake2-mac/src/lib.rs

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -28,28 +28,26 @@
2828
2929
pub use crypto_mac;
3030

31+
use blake2::{
32+
digest::{
33+
block_buffer::{DigestBuffer, LazyBlockBuffer},
34+
core_api::VariableOutputCore,
35+
},
36+
Blake2bVarCore, Blake2sVarCore,
37+
};
3138
use core::{fmt, marker::PhantomData};
3239
use crypto_mac::{
33-
consts::{U64, U32},
40+
consts::{U32, U64},
3441
crypto_common::{
35-
FixedOutput, KeySizeUser, Output, OutputSizeUser, Update,
36-
BlockSizeUser, UpdateCore,
42+
BlockSizeUser, FixedOutput, KeySizeUser, Output, OutputSizeUser, Update, UpdateCore,
3743
},
38-
InvalidLength, Key, KeyInit, Mac,
3944
generic_array::{
4045
typenum::{IsLessOrEqual, LeEq, NonZero, Unsigned},
4146
ArrayLength,
4247
},
43-
};
44-
use blake2::{
45-
Blake2bVarCore, Blake2sVarCore,
46-
digest::{
47-
core_api::VariableOutputCore,
48-
block_buffer::{LazyBlockBuffer, DigestBuffer},
49-
},
48+
InvalidLength, Key, KeyInit, Mac,
5049
};
5150

52-
5351
macro_rules! blake2_mac_impl {
5452
(
5553
$name:ident, $hash:ty, $max_size:ty, $doc:expr
@@ -150,7 +148,6 @@ macro_rules! blake2_mac_impl {
150148
};
151149
}
152150

153-
154151
blake2_mac_impl!(Blake2bMac, Blake2bVarCore, U64, "Blake2b MAC function");
155152
blake2_mac_impl!(Blake2sMac, Blake2sVarCore, U32, "Blake2s MAC function");
156153

0 commit comments

Comments
 (0)