Skip to content

Commit

Permalink
Merge pull request #99 from zh-jq/master
Browse files Browse the repository at this point in the history
cargo: update sha2 and hmac to new version
  • Loading branch information
lucab authored Dec 20, 2021
2 parents b025612 + 67f4c3c commit 49a5b42
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ exclude = [
edition = "2018"

[dependencies]
hmac = "^0.11"
hmac = "^0.12"
libc = "^0.2"
log = "^0.4"
nix = "^0.23"
nom = "7"
serde = { version = "^1.0.91", features = ["derive"] }
sha2 = "^0.9"
sha2 = "^0.10"
thiserror = "^1.0"
uuid = { version = "^0.8.1", features = ["serde"] }
once_cell = "^1.8"
Expand Down
2 changes: 1 addition & 1 deletion src/id128.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ impl Id128 {

/// Hash this ID with an application-specific ID.
pub fn app_specific(&self, app: &Self) -> Result<Self, SdError> {
use hmac::{Hmac, Mac, NewMac};
use hmac::{Hmac, Mac};
use sha2::Sha256;

let mut mac = Hmac::<Sha256>::new_from_slice(self.uuid_v4.as_bytes())
Expand Down

0 comments on commit 49a5b42

Please sign in to comment.