diff --git a/Cargo.lock b/Cargo.lock index 95fccdc0..9f84a908 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 6d952f62..0492a585 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 230e30b9..c3e4d869 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 aa3aace0..e2912552 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 a486ddca..e83ff850 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 ecf66089..8b485485 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 45379d54..86900415 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 02fd760a..c8cf72fc 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 e4d6c4ad..5484082c 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 a8561489..a09c95a5 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 aa876f34..f3611b0b 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 2c6fb318..d4d73d2d 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 908f6b3d..c0e94329 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 67ce879a..f26b8c4a 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 5ba80b83..7f5377eb 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 1c6c696e..edfe709c 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 b37fcce7..1ab02595 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 a2e895d6..91031b7a 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 acab8a17..5b4d4681 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 f5ceba79..e1cb3850 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 de85298e..126b4373 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 f738d137..7c81c8b4 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 f82ae74b..d81f1cea 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 cda5a06b..71e7f64e 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]