We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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 {
The text was updated successfully, but these errors were encountered:
crypto-mac functionality will be merged into digest v0.10, so this issue will be fixed in the next blake2 release, see #217.
crypto-mac
digest v0.10
blake2
The tests are failing because storage format of test vectors has changed a bit between crypto-mac v0.10 and v0.11
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
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:
The text was updated successfully, but these errors were encountered: