diff --git a/rust/Cargo.toml b/rust/Cargo.toml index 3427f71..1505ef6 100644 --- a/rust/Cargo.toml +++ b/rust/Cargo.toml @@ -17,13 +17,13 @@ cli = [ "dep:base64", "dep:clap" ] [dependencies] # lib -sha2 = "0.10" -hmac = "0.12" +sha2 = "0.11" +hmac = "0.13" x25519-dalek = { version = "2.0", features = ["getrandom", "static_secrets"], optional = true } openssl = { version = "0.10", optional = true } # cli -base64 = { version = "0.21", optional = true } +base64 = { version = "0.22", optional = true } clap = { version = "4", features = ["derive"], optional = true} [dev-dependencies] diff --git a/rust/src/lib.rs b/rust/src/lib.rs index 747f116..56a5789 100644 --- a/rust/src/lib.rs +++ b/rust/src/lib.rs @@ -14,7 +14,7 @@ //! recommended setting is to use [x25519_dalek]. Implementations should be //! verified with the test vectors in the `tests` module. -use hmac::{Hmac, Mac}; +use hmac::{Hmac, KeyInit, Mac}; use sha2::Sha256; type HmacSha256 = Hmac;