Skip to content

Commit

Permalink
Fix KeyInit for blake2 (#432)
Browse files Browse the repository at this point in the history
  • Loading branch information
vlad9486 committed Nov 11, 2022
1 parent af0567f commit 881b21f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blake2/src/macros.rs
Expand Up @@ -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(),
Expand Down

0 comments on commit 881b21f

Please sign in to comment.