Skip to content

Commit

Permalink
digest: fix new_mac_test!
Browse files Browse the repository at this point in the history
  • Loading branch information
newpavlov committed Jan 11, 2024
1 parent 49d2620 commit 5d5ad03
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion digest/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "digest"
description = "Traits for cryptographic hash functions and message authentication codes"
version = "0.11.0-pre.5"
version = "0.11.0-pre.6"
authors = ["RustCrypto Developers"]
license = "MIT OR Apache-2.0"
readme = "README.md"
Expand Down
4 changes: 2 additions & 2 deletions digest/src/dev/mac.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ macro_rules! new_mac_test {

let mut mac = mac0.clone();
mac.update(input);
let result = mac.finalize().into_bytes();
let result = mac.finalize().as_bytes().clone();
let n = tag.len();
let result_bytes = match $trunc {
"left" => &result[..n],
Expand Down Expand Up @@ -97,7 +97,7 @@ macro_rules! new_resettable_mac_test {

let mut mac = mac0.clone();
mac.update(input);
let result = mac.finalize_reset().into_bytes();
let result = mac.finalize_reset().as_bytes().clone();
let n = tag.len();
let result_bytes = match $trunc {
"left" => &result[..n],
Expand Down

0 comments on commit 5d5ad03

Please sign in to comment.