From 5af75435fc19e0713f8957df3587331affc4c5dc Mon Sep 17 00:00:00 2001 From: Vladislav Melnik Date: Thu, 10 Nov 2022 15:35:17 +0000 Subject: [PATCH] Fix `KeyInit` for blake2 --- blake2/src/macros.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blake2/src/macros.rs b/blake2/src/macros.rs index 4a014716..b8e8a6f0 100644 --- a/blake2/src/macros.rs +++ b/blake2/src/macros.rs @@ -325,7 +325,7 @@ macro_rules! blake2_mac_impl { let mut padded_key = Block::<$hash>::default(); padded_key[..kl].copy_from_slice(key); Self { - core: <$hash>::new_with_params(key, &[], key.len(), OutSize::USIZE), + core: <$hash>::new_with_params(&[], &[], key.len(), OutSize::USIZE), buffer: LazyBuffer::new(&padded_key), #[cfg(feature = "reset")] key_block: key.clone(),