From 559d7ffbdf2b4e95ebd318f26647efd4f3d9cb9a Mon Sep 17 00:00:00 2001 From: Artyom Pavlov Date: Thu, 11 Jan 2024 15:17:13 +0300 Subject: [PATCH] Bump digest to v0.11.0-pre.6 (#543) --- Cargo.lock | 6 ++++-- ascon-hash/Cargo.toml | 4 ++-- belt-hash/Cargo.toml | 4 ++-- blake2/Cargo.toml | 4 ++-- fsb/Cargo.toml | 4 ++-- gost94/Cargo.toml | 4 ++-- gost94/src/params.rs | 1 - groestl/Cargo.toml | 4 ++-- jh/Cargo.toml | 4 ++-- k12/Cargo.toml | 4 ++-- md2/Cargo.toml | 4 ++-- md4/Cargo.toml | 4 ++-- md5/Cargo.toml | 4 ++-- md5/src/consts.rs | 2 -- ripemd/Cargo.toml | 4 ++-- sha1/Cargo.toml | 4 ++-- sha2/Cargo.toml | 4 ++-- sha3/Cargo.toml | 4 ++-- shabal/Cargo.toml | 4 ++-- skein/Cargo.toml | 4 ++-- sm3/Cargo.toml | 4 ++-- streebog/Cargo.toml | 4 ++-- tiger/Cargo.toml | 4 ++-- whirlpool/Cargo.toml | 4 ++-- 24 files changed, 46 insertions(+), 47 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 95fccdc0c..9f84a908f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -58,6 +58,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0edadbde8e0243b49d434f9a23ec0590af201f400a34d7d51049284e4a77c568" dependencies = [ "crypto-common", + "zeroize", ] [[package]] @@ -94,15 +95,16 @@ dependencies = [ [[package]] name = "digest" -version = "0.11.0-pre.4" +version = "0.11.0-pre.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b429fb535b92bad18c86f1d7ee7584a175c2810800c7ac5b75b9408b13981979" +checksum = "8f5c2be52eb4dc1e4456d89eaa0df751889c31dd95a69efc57e92e6e3593a1fc" dependencies = [ "blobby", "block-buffer", "const-oid", "crypto-common", "subtle", + "zeroize", ] [[package]] diff --git a/ascon-hash/Cargo.toml b/ascon-hash/Cargo.toml index 6d952f62c..0492a5856 100644 --- a/ascon-hash/Cargo.toml +++ b/ascon-hash/Cargo.toml @@ -16,7 +16,7 @@ categories = ["cryptography", "no-std"] rust-version = "1.71" [dependencies] -digest = { version = "=0.11.0-pre.4", default-features = false, features = ["core-api"] } +digest = { version = "=0.11.0-pre.6", default-features = false, features = ["core-api"] } ascon = { version = "0.4", default-features = false } [dev-dependencies] @@ -27,7 +27,7 @@ hex-literal = "0.4" [features] default = ["std"] std = ["digest/std"] -zeroize = ["ascon/zeroize"] # TODO: enable zeroize in the future for block-buffer v0.11 +zeroize = ["ascon/zeroize", "digest/zeroize"] [package.metadata.docs.rs] all-features = true diff --git a/belt-hash/Cargo.toml b/belt-hash/Cargo.toml index 230e30b9b..c3e4d8695 100644 --- a/belt-hash/Cargo.toml +++ b/belt-hash/Cargo.toml @@ -13,11 +13,11 @@ keywords = ["crypto", "belt", "stb", "hash", "digest"] categories = ["cryptography", "no-std"] [dependencies] -digest = "=0.11.0-pre.4" +digest = "=0.11.0-pre.6" belt-block = { version = "0.1.1", default-features = false } [dev-dependencies] -digest = { version = "=0.11.0-pre.4", features = ["dev"] } +digest = { version = "=0.11.0-pre.6", features = ["dev"] } hex-literal = "0.4" [features] diff --git a/blake2/Cargo.toml b/blake2/Cargo.toml index aa3aace09..e2912552c 100644 --- a/blake2/Cargo.toml +++ b/blake2/Cargo.toml @@ -13,10 +13,10 @@ categories = ["cryptography", "no-std"] rust-version = "1.71" [dependencies] -digest = { version = "=0.11.0-pre.4", features = ["mac"] } +digest = { version = "=0.11.0-pre.6", features = ["mac"] } [dev-dependencies] -digest = { version = "=0.11.0-pre.4", features = ["dev"] } +digest = { version = "=0.11.0-pre.6", features = ["dev"] } hex-literal = "0.4" [features] diff --git a/fsb/Cargo.toml b/fsb/Cargo.toml index a486ddca7..e83ff8508 100644 --- a/fsb/Cargo.toml +++ b/fsb/Cargo.toml @@ -13,11 +13,11 @@ categories = ["cryptography", "no-std"] rust-version = "1.71" [dependencies] -digest = "=0.11.0-pre.4" +digest = "=0.11.0-pre.6" whirlpool = { version = "=0.11.0-pre", path = "../whirlpool", default-features = false } [dev-dependencies] -digest = { version = "=0.11.0-pre.4", features = ["dev"] } +digest = { version = "=0.11.0-pre.6", features = ["dev"] } hex-literal = "0.4" [features] diff --git a/gost94/Cargo.toml b/gost94/Cargo.toml index ecf66089d..8b485485a 100644 --- a/gost94/Cargo.toml +++ b/gost94/Cargo.toml @@ -13,10 +13,10 @@ categories = ["cryptography", "no-std"] rust-version = "1.71" [dependencies] -digest = "=0.11.0-pre.4" +digest = "=0.11.0-pre.6" [dev-dependencies] -digest = { version = "=0.11.0-pre.4", features = ["dev"] } +digest = { version = "=0.11.0-pre.6", features = ["dev"] } hex-literal = "0.4" [features] diff --git a/gost94/src/params.rs b/gost94/src/params.rs index 45379d54a..869004156 100644 --- a/gost94/src/params.rs +++ b/gost94/src/params.rs @@ -5,7 +5,6 @@ pub(crate) type Block = [u8; 32]; pub(crate) type SBox = [[u8; 16]; 8]; /// Trait for storing parameter constants. -// TODO: replace with const generics pub trait Gost94Params { /// S-box value. const S_BOX: SBox; diff --git a/groestl/Cargo.toml b/groestl/Cargo.toml index 02fd760ab..c8cf72fc4 100644 --- a/groestl/Cargo.toml +++ b/groestl/Cargo.toml @@ -13,10 +13,10 @@ categories = ["cryptography", "no-std"] rust-version = "1.71" [dependencies] -digest = "=0.11.0-pre.4" +digest = "=0.11.0-pre.6" [dev-dependencies] -digest = { version = "=0.11.0-pre.4", features = ["dev"] } +digest = { version = "=0.11.0-pre.6", features = ["dev"] } hex-literal = "0.4" [features] diff --git a/jh/Cargo.toml b/jh/Cargo.toml index e4d6c4adf..5484082ca 100644 --- a/jh/Cargo.toml +++ b/jh/Cargo.toml @@ -13,9 +13,9 @@ keywords = ["crypto", "jh", "hash", "digest"] categories = ["cryptography", "no-std"] [dependencies] -digest = "=0.11.0-pre.4" +digest = "=0.11.0-pre.6" hex-literal = "0.4" simd = { package = "ppv-lite86", version = "0.2.6" } [dev-dependencies] -digest = { version = "=0.11.0-pre.4", features = ["dev"] } +digest = { version = "=0.11.0-pre.6", features = ["dev"] } diff --git a/k12/Cargo.toml b/k12/Cargo.toml index a8561489e..a09c95a58 100644 --- a/k12/Cargo.toml +++ b/k12/Cargo.toml @@ -13,11 +13,11 @@ categories = ["cryptography", "no-std"] rust-version = "1.71" [dependencies] -digest = { version = "=0.11.0-pre.4", default-features = false, features = ["core-api"] } +digest = { version = "=0.11.0-pre.6", default-features = false, features = ["core-api"] } sha3 = { version = "=0.11.0-pre.1", default-features = false, path = "../sha3" } [dev-dependencies] -digest = { version = "=0.11.0-pre.4", features = ["alloc", "dev"] } +digest = { version = "=0.11.0-pre.6", features = ["alloc", "dev"] } hex-literal = "0.4" [features] diff --git a/md2/Cargo.toml b/md2/Cargo.toml index aa876f340..f3611b0bd 100644 --- a/md2/Cargo.toml +++ b/md2/Cargo.toml @@ -13,10 +13,10 @@ categories = ["cryptography", "no-std"] rust-version = "1.71" [dependencies] -digest = "=0.11.0-pre.4" +digest = "=0.11.0-pre.6" [dev-dependencies] -digest = { version = "=0.11.0-pre.4", features = ["dev"] } +digest = { version = "=0.11.0-pre.6", features = ["dev"] } hex-literal = "0.4" [features] diff --git a/md4/Cargo.toml b/md4/Cargo.toml index 2c6fb3180..d4d73d2d5 100644 --- a/md4/Cargo.toml +++ b/md4/Cargo.toml @@ -13,10 +13,10 @@ categories = ["cryptography", "no-std"] rust-version = "1.71" [dependencies] -digest = "=0.11.0-pre.4" +digest = "=0.11.0-pre.6" [dev-dependencies] -digest = { version = "=0.11.0-pre.4", features = ["dev"] } +digest = { version = "=0.11.0-pre.6", features = ["dev"] } hex-literal = "0.4" [features] diff --git a/md5/Cargo.toml b/md5/Cargo.toml index 908f6b3d8..c0e943299 100644 --- a/md5/Cargo.toml +++ b/md5/Cargo.toml @@ -16,11 +16,11 @@ rust-version = "1.72" name = "md5" [dependencies] -digest = "=0.11.0-pre.4" +digest = "=0.11.0-pre.6" cfg-if = "1" [dev-dependencies] -digest = { version = "=0.11.0-pre.4", features = ["dev"] } +digest = { version = "=0.11.0-pre.6", features = ["dev"] } hex-literal = "0.4" [features] diff --git a/md5/src/consts.rs b/md5/src/consts.rs index 67ce879a7..f26b8c4a4 100644 --- a/md5/src/consts.rs +++ b/md5/src/consts.rs @@ -1,7 +1,5 @@ pub(crate) const STATE_INIT: [u32; 4] = [0x6745_2301, 0xEFCD_AB89, 0x98BA_DCFE, 0x1032_5476]; -// TODO: remove `allow` on deprecation of `md5-asm` -#[allow(dead_code)] pub(crate) static RC: [u32; 64] = [ // round 1 0xd76aa478, 0xe8c7b756, 0x242070db, 0xc1bdceee, 0xf57c0faf, 0x4787c62a, 0xa8304613, 0xfd469501, diff --git a/ripemd/Cargo.toml b/ripemd/Cargo.toml index 5ba80b83a..7f5377eb8 100644 --- a/ripemd/Cargo.toml +++ b/ripemd/Cargo.toml @@ -13,10 +13,10 @@ categories = ["cryptography", "no-std"] rust-version = "1.71" [dependencies] -digest = "=0.11.0-pre.4" +digest = "=0.11.0-pre.6" [dev-dependencies] -digest = { version = "=0.11.0-pre.4", features = ["dev"] } +digest = { version = "=0.11.0-pre.6", features = ["dev"] } hex-literal = "0.4" [features] diff --git a/sha1/Cargo.toml b/sha1/Cargo.toml index 1c6c696e8..edfe709c7 100644 --- a/sha1/Cargo.toml +++ b/sha1/Cargo.toml @@ -13,14 +13,14 @@ categories = ["cryptography", "no-std"] rust-version = "1.72" [dependencies] -digest = "=0.11.0-pre.4" +digest = "=0.11.0-pre.6" cfg-if = "1.0" [target.'cfg(any(target_arch = "aarch64", target_arch = "x86", target_arch = "x86_64"))'.dependencies] cpufeatures = "0.2" [dev-dependencies] -digest = { version = "=0.11.0-pre.4", features = ["dev"] } +digest = { version = "=0.11.0-pre.6", features = ["dev"] } hex-literal = "0.4" [features] diff --git a/sha2/Cargo.toml b/sha2/Cargo.toml index b37fcce72..1ab025950 100644 --- a/sha2/Cargo.toml +++ b/sha2/Cargo.toml @@ -16,14 +16,14 @@ categories = ["cryptography", "no-std"] rust-version = "1.72" [dependencies] -digest = "=0.11.0-pre.4" +digest = "=0.11.0-pre.6" cfg-if = "1" [target.'cfg(any(target_arch = "aarch64", target_arch = "x86_64", target_arch = "x86"))'.dependencies] cpufeatures = "0.2" [dev-dependencies] -digest = { version = "=0.11.0-pre.4", features = ["dev"] } +digest = { version = "=0.11.0-pre.6", features = ["dev"] } hex-literal = "0.4" [features] diff --git a/sha3/Cargo.toml b/sha3/Cargo.toml index a2e895d68..91031b7a3 100644 --- a/sha3/Cargo.toml +++ b/sha3/Cargo.toml @@ -17,12 +17,12 @@ categories = ["cryptography", "no-std"] rust-version = "1.71" [dependencies] -digest = "=0.11.0-pre.4" +digest = "=0.11.0-pre.6" keccak = "0.1.4" zeroize = { version = "1.6.0", default-features = false, optional=true } # WARNING: Bumps MSRV to 1.56 [dev-dependencies] -digest = { version = "=0.11.0-pre.4", features = ["dev"] } +digest = { version = "=0.11.0-pre.6", features = ["dev"] } hex-literal = "0.4" [features] diff --git a/shabal/Cargo.toml b/shabal/Cargo.toml index acab8a177..5b4d46810 100644 --- a/shabal/Cargo.toml +++ b/shabal/Cargo.toml @@ -13,10 +13,10 @@ categories = ["cryptography", "no-std"] rust-version = "1.71" [dependencies] -digest = "=0.11.0-pre.4" +digest = "=0.11.0-pre.6" [dev-dependencies] -digest = { version = "=0.11.0-pre.4", features = ["dev"] } +digest = { version = "=0.11.0-pre.6", features = ["dev"] } hex-literal = "0.4" [features] diff --git a/skein/Cargo.toml b/skein/Cargo.toml index f5ceba79d..e1cb38506 100644 --- a/skein/Cargo.toml +++ b/skein/Cargo.toml @@ -13,9 +13,9 @@ keywords = ["crypto", "skein", "hash", "digest"] categories = ["cryptography", "no-std"] [dependencies] -digest = "=0.11.0-pre.4" +digest = "=0.11.0-pre.6" threefish = { version = "0.5.2", default-features = false } [dev-dependencies] -digest = { version = "=0.11.0-pre.4", features = ["dev"] } +digest = { version = "=0.11.0-pre.6", features = ["dev"] } hex-literal = "0.4" diff --git a/sm3/Cargo.toml b/sm3/Cargo.toml index de85298ee..126b4373b 100644 --- a/sm3/Cargo.toml +++ b/sm3/Cargo.toml @@ -13,10 +13,10 @@ categories = ["cryptography", "no-std"] rust-version = "1.71" [dependencies] -digest = "=0.11.0-pre.4" +digest = "=0.11.0-pre.6" [dev-dependencies] -digest = { version = "=0.11.0-pre.4", features = ["dev"] } +digest = { version = "=0.11.0-pre.6", features = ["dev"] } hex-literal = "0.4" [features] diff --git a/streebog/Cargo.toml b/streebog/Cargo.toml index f738d137b..7c81c8b40 100644 --- a/streebog/Cargo.toml +++ b/streebog/Cargo.toml @@ -13,10 +13,10 @@ categories = ["cryptography", "no-std"] rust-version = "1.71" [dependencies] -digest = "=0.11.0-pre.4" +digest = "=0.11.0-pre.6" [dev-dependencies] -digest = { version = "=0.11.0-pre.4", features = ["dev"] } +digest = { version = "=0.11.0-pre.6", features = ["dev"] } hex-literal = "0.4" [features] diff --git a/tiger/Cargo.toml b/tiger/Cargo.toml index f82ae74b2..d81f1ceae 100644 --- a/tiger/Cargo.toml +++ b/tiger/Cargo.toml @@ -13,10 +13,10 @@ categories = ["cryptography", "no-std"] rust-version = "1.71" [dependencies] -digest = "=0.11.0-pre.4" +digest = "=0.11.0-pre.6" [dev-dependencies] -digest = { version = "=0.11.0-pre.4", features = ["dev"] } +digest = { version = "=0.11.0-pre.6", features = ["dev"] } hex-literal = "0.4" [features] diff --git a/whirlpool/Cargo.toml b/whirlpool/Cargo.toml index cda5a06b9..71e7f64e0 100644 --- a/whirlpool/Cargo.toml +++ b/whirlpool/Cargo.toml @@ -13,10 +13,10 @@ categories = ["cryptography", "no-std"] rust-version = "1.71" [dependencies] -digest = "=0.11.0-pre.4" +digest = "=0.11.0-pre.6" [dev-dependencies] -digest = { version = "=0.11.0-pre.4", features = ["dev"] } +digest = { version = "=0.11.0-pre.6", features = ["dev"] } hex-literal = "0.4" [features]