Skip to content

Commit 881b21f

Browse files
authored
Fix KeyInit for blake2 (#432)
1 parent af0567f commit 881b21f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

blake2/src/macros.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ macro_rules! blake2_mac_impl {
325325
let mut padded_key = Block::<$hash>::default();
326326
padded_key[..kl].copy_from_slice(key);
327327
Self {
328-
core: <$hash>::new_with_params(key, &[], key.len(), OutSize::USIZE),
328+
core: <$hash>::new_with_params(&[], &[], key.len(), OutSize::USIZE),
329329
buffer: LazyBuffer::new(&padded_key),
330330
#[cfg(feature = "reset")]
331331
key_block: key.clone(),

0 commit comments

Comments
 (0)