Skip to content

Commit

Permalink
blake2: move off deprecated methods after hybrid-array upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
baloo committed Mar 18, 2024
1 parent c23eef8 commit a31cc1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blake2/tests/mac.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ fn blake2b_new_test() {

fn run<T: Mac + KeyInit>(key: &[u8]) {
const DATA: &[u8] = &[42; 300];
let res1 = T::new(Array::from_slice(key))
let res1 = T::new(&Array::try_from(key).unwrap())
.chain_update(DATA)
.finalize()
.into_bytes();
Expand Down

0 comments on commit a31cc1f

Please sign in to comment.