Skip to content

Update crypto-mac to 0.11 in blake2 #330

@Eijebong

Description

@Eijebong

Trying to cleanup a dependency tree where we have 3 versions of crypto-mac, one of them from blake2. Would be nice if you could update it.

I tried doing it myself but can't figure out why tests are broken. Here's the diff:

diff --git a/blake2/Cargo.toml b/blake2/Cargo.toml
index 6d25e15..925a325 100644
--- a/blake2/Cargo.toml
+++ b/blake2/Cargo.toml
@@ -13,12 +13,12 @@ categories = ["cryptography", "no-std"]

 [dependencies]
 digest = "0.9"
-crypto-mac = "0.8"
+crypto-mac = "0.11.1"
 opaque-debug = "0.3"

 [dev-dependencies]
 digest = { version = "0.9", features = ["dev"] }
-crypto-mac = { version = "0.8", features = ["dev"] }
+crypto-mac = { version = "0.11.1", features = ["dev"] }
 hex-literal = "0.2"

 [features]
diff --git a/blake2/src/blake2.rs b/blake2/src/blake2.rs
index 3255a30..e7ea513 100644
--- a/blake2/src/blake2.rs
+++ b/blake2/src/blake2.rs
@@ -375,7 +375,7 @@ macro_rules! blake2_impl {
                 Self { state }
             }

-            fn new_varkey(key: &[u8]) -> Result<Self, InvalidKeyLength> {
+            fn new_from_slice(key: &[u8]) -> Result<Self, InvalidKeyLength> {
                 if key.len() > $bytes::to_usize() {
                     Err(InvalidKeyLength)
                 } else {

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions