From ac0dd0c088cd2691b8eca242b7e4d3fa045136b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D1=80=D1=82=D1=91=D0=BC=20=D0=9F=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=BE=D0=B2=20=5BArtyom=20Pavlov=5D?= Date: Tue, 24 Feb 2026 05:34:05 +0300 Subject: [PATCH 1/4] Bump `digest` to v0.11.1 --- Cargo.lock | 17 ++++++++--------- Cargo.toml | 1 + 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 85fb2bc6..197e2808 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -68,9 +68,9 @@ checksum = "89af0b093cc13baa4e51e64e65ec2422f7e73aea0e612e5ad3872986671622f1" [[package]] name = "block-buffer" -version = "0.11.0" +version = "0.12.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "96eb4cdd6cf1b31d671e9efe75c5d1ec614776856cefbe109ca373554a6d514f" +checksum = "cdd35008169921d80bc60d3d0ab416eecb028c4cd653352907921d95084790be" dependencies = [ "hybrid-array", "zeroize", @@ -123,9 +123,8 @@ dependencies = [ [[package]] name = "digest" -version = "0.11.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f8bf3682cdec91817be507e4aa104314898b95b84d74f3d43882210101a545b6" +version = "0.11.1" +source = "git+https://github.com/RustCrypto/traits?branch=block_sizes#8359276d485a3cae7c47f969d267a66245fa669b" dependencies = [ "blobby", "block-buffer", @@ -361,9 +360,9 @@ dependencies = [ [[package]] name = "syn" -version = "2.0.115" +version = "2.0.117" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6e614ed320ac28113fa64972c4262d5dbc89deacdfd00c34a3e4cea073243c12" +checksum = "e665b8803e7b1d2a727f4023456bbbbe74da67099c585258af0ad9c5013b9b99" dependencies = [ "proc-macro2", "quote", @@ -395,9 +394,9 @@ checksum = "562d481066bde0658276a35467c4af00bdc6ee726305698a55b86e61d7ad82bb" [[package]] name = "unicode-ident" -version = "1.0.23" +version = "1.0.24" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "537dd038a89878be9b64dd4bd1b260315c1bb94f4d784956b81e27a088d9a09e" +checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75" [[package]] name = "whirlpool" diff --git a/Cargo.toml b/Cargo.toml index e8ee1fca..ee6b96a1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -36,3 +36,4 @@ sha3 = { path = "sha3" } whirlpool = { path = "whirlpool" } keccak = { git = "https://github.com/RustCrypto/sponges" } +digest = { git = "https://github.com/RustCrypto/traits", branch = "block_sizes" } From ab096e885fef503982bae6a0d597dd1859a895e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D1=80=D1=82=D1=91=D0=BC=20=D0=9F=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=BE=D0=B2=20=5BArtyom=20Pavlov=5D?= Date: Tue, 24 Feb 2026 05:36:22 +0300 Subject: [PATCH 2/4] patch `crypto-common` --- Cargo.lock | 5 ++--- Cargo.toml | 1 + 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 197e2808..66976dda 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -105,9 +105,8 @@ dependencies = [ [[package]] name = "crypto-common" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "211f05e03c7d03754740fd9e585de910a095d6b99f8bcfffdef8319fa02a8331" +version = "0.2.1" +source = "git+https://github.com/RustCrypto/traits?branch=block_sizes#8359276d485a3cae7c47f969d267a66245fa669b" dependencies = [ "hybrid-array", ] diff --git a/Cargo.toml b/Cargo.toml index ee6b96a1..e2fb892f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -36,4 +36,5 @@ sha3 = { path = "sha3" } whirlpool = { path = "whirlpool" } keccak = { git = "https://github.com/RustCrypto/sponges" } +crypto-common = { git = "https://github.com/RustCrypto/traits", branch = "block_sizes" } digest = { git = "https://github.com/RustCrypto/traits", branch = "block_sizes" } From 178f25c22cf7085ffb30d4ace4a5cf53997f5826 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D1=80=D1=82=D1=91=D0=BC=20=D0=9F=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=BE=D0=B2=20=5BArtyom=20Pavlov=5D?= Date: Tue, 24 Feb 2026 05:40:11 +0300 Subject: [PATCH 3/4] Fix `sha3` and `bash-hash` --- bash-hash/src/variants.rs | 2 +- sha3/src/block_api.rs | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/bash-hash/src/variants.rs b/bash-hash/src/variants.rs index 8279bcd5..c479bff1 100644 --- a/bash-hash/src/variants.rs +++ b/bash-hash/src/variants.rs @@ -1,4 +1,4 @@ -use digest::{array::ArraySize, common::BlockSizes, typenum}; +use digest::{array::ArraySize, block_buffer::BlockSizes, typenum}; /// Sealed trait to prevent external implementations. pub trait Sealed {} diff --git a/sha3/src/block_api.rs b/sha3/src/block_api.rs index d8b24356..4a416ba6 100644 --- a/sha3/src/block_api.rs +++ b/sha3/src/block_api.rs @@ -7,10 +7,8 @@ use digest::{ AlgorithmName, Block, BlockSizeUser, Buffer, BufferKindUser, Eager, ExtendableOutputCore, FixedOutputCore, OutputSizeUser, Reset, UpdateCore, XofReaderCore, }, - common::{ - BlockSizes, - hazmat::{DeserializeStateError, SerializableState, SerializedState}, - }, + block_buffer::BlockSizes, + common::hazmat::{DeserializeStateError, SerializableState, SerializedState}, typenum::{IsLessOrEqual, True, U0, U200}, }; use keccak::KeccakP1600; From 3fc38b3018e2f9f5a6d6a17fc288af918eca0f1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D1=80=D1=82=D1=91=D0=BC=20=D0=9F=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=BE=D0=B2=20=5BArtyom=20Pavlov=5D?= Date: Wed, 25 Feb 2026 18:21:54 +0300 Subject: [PATCH 4/4] Use published versions of `crypto-common` and `digest` --- Cargo.lock | 6 ++++-- Cargo.toml | 2 -- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 66976dda..3ade81c8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -106,7 +106,8 @@ dependencies = [ [[package]] name = "crypto-common" version = "0.2.1" -source = "git+https://github.com/RustCrypto/traits?branch=block_sizes#8359276d485a3cae7c47f969d267a66245fa669b" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "77727bb15fa921304124b128af125e7e3b968275d1b108b379190264f4423710" dependencies = [ "hybrid-array", ] @@ -123,7 +124,8 @@ dependencies = [ [[package]] name = "digest" version = "0.11.1" -source = "git+https://github.com/RustCrypto/traits?branch=block_sizes#8359276d485a3cae7c47f969d267a66245fa669b" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "285743a676ccb6b3e116bc14cc69319b957867930ae9c4822f8e0f54509d7243" dependencies = [ "blobby", "block-buffer", diff --git a/Cargo.toml b/Cargo.toml index e2fb892f..e8ee1fca 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -36,5 +36,3 @@ sha3 = { path = "sha3" } whirlpool = { path = "whirlpool" } keccak = { git = "https://github.com/RustCrypto/sponges" } -crypto-common = { git = "https://github.com/RustCrypto/traits", branch = "block_sizes" } -digest = { git = "https://github.com/RustCrypto/traits", branch = "block_sizes" }