From 6fbfc6167bb38b7f99b48af07dbe99587c8ddbff Mon Sep 17 00:00:00 2001 From: Tony Arcieri Date: Wed, 4 Nov 2026 20:26:23 -0700 Subject: [PATCH] Bump `ctutils` to v0.4.8; MSRV 1.87 This release, and releases before it, include important security fixes --- .github/workflows/argon2.yml | 6 +++--- .github/workflows/balloon-hash.yml | 4 ++-- .github/workflows/bcrypt-pbkdf.yml | 4 ++-- .github/workflows/password-auth.yml | 4 ++-- .github/workflows/pbkdf2.yml | 4 ++-- .github/workflows/scrypt.yml | 4 ++-- .github/workflows/security-audit.yml | 1 - .github/workflows/sha-crypt.yml | 4 ++-- .github/workflows/yescrypt.yml | 8 ++++---- Cargo.lock | 8 ++++---- README.md | 16 ++++++++-------- argon2/Cargo.toml | 2 +- argon2/README.md | 2 +- balloon-hash/Cargo.toml | 2 +- balloon-hash/README.md | 2 +- bcrypt-pbkdf/Cargo.toml | 2 +- bcrypt-pbkdf/README.md | 2 +- password-auth/Cargo.toml | 2 +- password-auth/README.md | 2 +- pbkdf2/Cargo.toml | 2 +- pbkdf2/README.md | 2 +- scrypt/Cargo.toml | 4 ++-- scrypt/README.md | 2 +- sha-crypt/Cargo.toml | 4 ++-- yescrypt/Cargo.toml | 4 ++-- yescrypt/README.md | 2 +- yescrypt/src/util.rs | 2 +- 27 files changed, 50 insertions(+), 51 deletions(-) diff --git a/.github/workflows/argon2.yml b/.github/workflows/argon2.yml index 1a5ea2b0..8ae5004e 100644 --- a/.github/workflows/argon2.yml +++ b/.github/workflows/argon2.yml @@ -23,7 +23,7 @@ jobs: strategy: matrix: rust: - - 1.85.0 # MSRV + - 1.87.0 # MSRV - stable target: - thumbv7em-none-eabi @@ -52,7 +52,7 @@ jobs: include: # 32-bit Linux - target: i686-unknown-linux-gnu - rust: 1.85.0 # MSRV + rust: 1.87.0 # MSRV deps: sudo apt update && sudo apt install gcc-multilib - target: i686-unknown-linux-gnu rust: stable @@ -60,7 +60,7 @@ jobs: # 64-bit Linux - target: x86_64-unknown-linux-gnu - rust: 1.85.0 # MSRV + rust: 1.87.0 # MSRV - target: x86_64-unknown-linux-gnu rust: stable steps: diff --git a/.github/workflows/balloon-hash.yml b/.github/workflows/balloon-hash.yml index a292c3e6..fc2a1996 100644 --- a/.github/workflows/balloon-hash.yml +++ b/.github/workflows/balloon-hash.yml @@ -23,7 +23,7 @@ jobs: strategy: matrix: rust: - - 1.85.0 # MSRV + - 1.87.0 # MSRV - stable target: - thumbv7em-none-eabi @@ -49,7 +49,7 @@ jobs: strategy: matrix: rust: - - 1.85.0 # MSRV + - 1.87.0 # MSRV - stable steps: - uses: actions/checkout@v7 diff --git a/.github/workflows/bcrypt-pbkdf.yml b/.github/workflows/bcrypt-pbkdf.yml index 94d87f5c..11cc1f7d 100644 --- a/.github/workflows/bcrypt-pbkdf.yml +++ b/.github/workflows/bcrypt-pbkdf.yml @@ -23,7 +23,7 @@ jobs: strategy: matrix: rust: - - 1.85.0 # MSRV + - 1.87.0 # MSRV - stable target: - thumbv7em-none-eabi @@ -47,7 +47,7 @@ jobs: strategy: matrix: rust: - - 1.85.0 # MSRV + - 1.87.0 # MSRV - stable steps: - uses: actions/checkout@v7 diff --git a/.github/workflows/password-auth.yml b/.github/workflows/password-auth.yml index 7a6df5ce..cef432be 100644 --- a/.github/workflows/password-auth.yml +++ b/.github/workflows/password-auth.yml @@ -26,7 +26,7 @@ jobs: strategy: matrix: rust: - - 1.85.0 # MSRV + - 1.87.0 # MSRV - stable steps: - uses: actions/checkout@v7 @@ -47,7 +47,7 @@ jobs: strategy: matrix: rust: - - 1.85.0 # MSRV + - 1.87.0 # MSRV - stable steps: - uses: actions/checkout@v7 diff --git a/.github/workflows/pbkdf2.yml b/.github/workflows/pbkdf2.yml index 7155b9f3..a8fbefd4 100644 --- a/.github/workflows/pbkdf2.yml +++ b/.github/workflows/pbkdf2.yml @@ -23,7 +23,7 @@ jobs: strategy: matrix: rust: - - 1.85.0 # MSRV + - 1.87.0 # MSRV - stable target: - thumbv7em-none-eabi @@ -47,7 +47,7 @@ jobs: strategy: matrix: rust: - - 1.85.0 # MSRV + - 1.87.0 # MSRV - stable steps: - uses: actions/checkout@v7 diff --git a/.github/workflows/scrypt.yml b/.github/workflows/scrypt.yml index 08ab2402..d2802792 100644 --- a/.github/workflows/scrypt.yml +++ b/.github/workflows/scrypt.yml @@ -23,7 +23,7 @@ jobs: strategy: matrix: rust: - - 1.85.0 # MSRV + - 1.87.0 # MSRV - stable target: - thumbv7em-none-eabi @@ -49,7 +49,7 @@ jobs: strategy: matrix: rust: - - 1.85.0 # MSRV + - 1.87.0 # MSRV - stable steps: - uses: actions/checkout@v7 diff --git a/.github/workflows/security-audit.yml b/.github/workflows/security-audit.yml index 98077f15..d27ecaf1 100644 --- a/.github/workflows/security-audit.yml +++ b/.github/workflows/security-audit.yml @@ -16,7 +16,6 @@ jobs: security_audit: name: Security Audit runs-on: ubuntu-latest - if: false # TODO(tarcieri): re-enable after upgrading dependencies steps: - uses: actions/checkout@v7 - uses: RustCrypto/actions/cargo-cache@master diff --git a/.github/workflows/sha-crypt.yml b/.github/workflows/sha-crypt.yml index 0b9232dd..e736468b 100644 --- a/.github/workflows/sha-crypt.yml +++ b/.github/workflows/sha-crypt.yml @@ -23,7 +23,7 @@ jobs: strategy: matrix: rust: - - 1.85.0 # MSRV + - 1.87.0 # MSRV - stable target: - thumbv7em-none-eabi @@ -48,7 +48,7 @@ jobs: strategy: matrix: rust: - - 1.85.0 # MSRV + - 1.87.0 # MSRV - stable steps: - uses: actions/checkout@v7 diff --git a/.github/workflows/yescrypt.yml b/.github/workflows/yescrypt.yml index 7bdab61c..a7c6ee59 100644 --- a/.github/workflows/yescrypt.yml +++ b/.github/workflows/yescrypt.yml @@ -28,7 +28,7 @@ jobs: strategy: matrix: rust: - - 1.85.0 # MSRV + - 1.87.0 # MSRV - stable target: - thumbv7em-none-eabi @@ -51,7 +51,7 @@ jobs: include: # 32-bit Linux - target: i686-unknown-linux-gnu - rust: 1.85.0 # MSRV + rust: 1.87.0 # MSRV deps: sudo apt update && sudo apt install gcc-multilib - target: i686-unknown-linux-gnu rust: stable @@ -59,7 +59,7 @@ jobs: # 64-bit Linux - target: x86_64-unknown-linux-gnu - rust: 1.85.0 # MSRV + rust: 1.87.0 # MSRV - target: x86_64-unknown-linux-gnu rust: stable steps: @@ -91,7 +91,7 @@ jobs: matrix: include: - target: powerpc-unknown-linux-gnu - rust: 1.85.0 # MSRV + rust: 1.87.0 # MSRV - target: powerpc-unknown-linux-gnu rust: stable runs-on: ubuntu-latest diff --git a/Cargo.lock b/Cargo.lock index 604ac9ca..fb1c3056 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -175,9 +175,9 @@ checksum = "61803da095bee82a81bb1a452ecc25d3b2f1416d1897eb86430c6159ef717c17" [[package]] name = "crypto-bigint" -version = "0.7.5" +version = "0.7.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1a52aa3fcda4e6302a9f48734f234d35d4721b96f8fe07d073f07ce9df4f0271" +checksum = "9c035cb64cba03dad2fb921f3e218785e8cf9a41790da5eb3a1400f62fa2be11" dependencies = [ "cpubits", "ctutils", @@ -196,9 +196,9 @@ dependencies = [ [[package]] name = "ctutils" -version = "0.4.2" +version = "0.4.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7d5515a3834141de9eafb9717ad39eea8247b5674e6066c404e8c4b365d2a29e" +checksum = "261af4dc7a06ea8a527a8717d8cbba3417530d6ea14e1edb3de6b67806be474f" dependencies = [ "cmov", ] diff --git a/README.md b/README.md index e66fea4f..3964986c 100644 --- a/README.md +++ b/README.md @@ -10,13 +10,13 @@ Collection of password hashing algorithms, otherwise known as password-based key | Algorithm | Crate | Crates.io | Documentation | MSRV | |----------------|------------------|---------------------------------------------------------------------------------------------------------|---------------|-------------------------| -| [Argon2] | [`argon2`] | [![crates.io](https://img.shields.io/crates/v/argon2.svg)](https://crates.io/crates/argon2) | [![Documentation](https://docs.rs/argon2/badge.svg)](https://docs.rs/argon2) | ![MSRV 1.85][msrv-1.85] | -| [Balloon] | [`balloon‑hash`] | [![crates.io](https://img.shields.io/crates/v/balloon-hash.svg)](https://crates.io/crates/balloon-hash) | [![Documentation](https://docs.rs/balloon-hash/badge.svg)](https://docs.rs/balloon-hash) | ![MSRV 1.85][msrv-1.85] | -| [bcrypt‑pbkdf] | [`bcrypt‑pbkdf`] | [![crates.io](https://img.shields.io/crates/v/bcrypt-pbkdf.svg)](https://crates.io/crates/bcrypt-pbkdf) | [![Documentation](https://docs.rs/bcrypt-pbkdf/badge.svg)](https://docs.rs/bcrypt-pbkdf) | ![MSRV 1.85][msrv-1.85] | -| [PBKDF2] | [`pbkdf2`] | [![crates.io](https://img.shields.io/crates/v/pbkdf2.svg)](https://crates.io/crates/pbkdf2) | [![Documentation](https://docs.rs/pbkdf2/badge.svg)](https://docs.rs/pbkdf2) | ![MSRV 1.85][msrv-1.85] | -| [scrypt] | [`scrypt`] | [![crates.io](https://img.shields.io/crates/v/scrypt.svg)](https://crates.io/crates/scrypt) | [![Documentation](https://docs.rs/scrypt/badge.svg)](https://docs.rs/scrypt) | ![MSRV 1.85][msrv-1.85] | -| [SHA-crypt] | [`sha‑crypt`] | [![crates.io](https://img.shields.io/crates/v/sha-crypt.svg)](https://crates.io/crates/sha-crypt) | [![Documentation](https://docs.rs/sha-crypt/badge.svg)](https://docs.rs/sha-crypt) | ![MSRV 1.85][msrv-1.85] | -| [yescrypt] | [`yescrypt`] | [![crates.io](https://img.shields.io/crates/v/yescrypt.svg)](https://crates.io/crates/yescrypt) | [![Documentation](https://docs.rs/yescrypt/badge.svg)](https://docs.rs/yescrypt) | ![MSRV 1.85][msrv-1.85] | +| [Argon2] | [`argon2`] | [![crates.io](https://img.shields.io/crates/v/argon2.svg)](https://crates.io/crates/argon2) | [![Documentation](https://docs.rs/argon2/badge.svg)](https://docs.rs/argon2) | ![MSRV 1.87][msrv-1.87] | +| [Balloon] | [`balloon‑hash`] | [![crates.io](https://img.shields.io/crates/v/balloon-hash.svg)](https://crates.io/crates/balloon-hash) | [![Documentation](https://docs.rs/balloon-hash/badge.svg)](https://docs.rs/balloon-hash) | ![MSRV 1.87][msrv-1.87] | +| [bcrypt‑pbkdf] | [`bcrypt‑pbkdf`] | [![crates.io](https://img.shields.io/crates/v/bcrypt-pbkdf.svg)](https://crates.io/crates/bcrypt-pbkdf) | [![Documentation](https://docs.rs/bcrypt-pbkdf/badge.svg)](https://docs.rs/bcrypt-pbkdf) | ![MSRV 1.87][msrv-1.87] | +| [PBKDF2] | [`pbkdf2`] | [![crates.io](https://img.shields.io/crates/v/pbkdf2.svg)](https://crates.io/crates/pbkdf2) | [![Documentation](https://docs.rs/pbkdf2/badge.svg)](https://docs.rs/pbkdf2) | ![MSRV 1.87][msrv-1.87] | +| [scrypt] | [`scrypt`] | [![crates.io](https://img.shields.io/crates/v/scrypt.svg)](https://crates.io/crates/scrypt) | [![Documentation](https://docs.rs/scrypt/badge.svg)](https://docs.rs/scrypt) | ![MSRV 1.87][msrv-1.87] | +| [SHA-crypt] | [`sha‑crypt`] | [![crates.io](https://img.shields.io/crates/v/sha-crypt.svg)](https://crates.io/crates/sha-crypt) | [![Documentation](https://docs.rs/sha-crypt/badge.svg)](https://docs.rs/sha-crypt) | ![MSRV 1.87][msrv-1.87] | +| [yescrypt] | [`yescrypt`] | [![crates.io](https://img.shields.io/crates/v/yescrypt.svg)](https://crates.io/crates/yescrypt) | [![Documentation](https://docs.rs/yescrypt/badge.svg)](https://docs.rs/yescrypt) | ![MSRV 1.87][msrv-1.87] | Please see the [OWASP Password Storage Cheat Sheet] for assistance in selecting an appropriate algorithm for your use case. @@ -81,7 +81,7 @@ Unless you explicitly state otherwise, any contribution intentionally submitted [license-image]: https://img.shields.io/badge/license-Apache2.0/MIT-blue.svg [deps-image]: https://deps.rs/repo/github/RustCrypto/password-hashes/status.svg [deps-link]: https://deps.rs/repo/github/RustCrypto/password-hashes -[msrv-1.85]: https://img.shields.io/badge/rustc-1.85.0+-blue.svg +[msrv-1.87]: https://img.shields.io/badge/rustc-1.87.0+-blue.svg [//]: # (crates) diff --git a/argon2/Cargo.toml b/argon2/Cargo.toml index 38020a28..5e23afcf 100644 --- a/argon2/Cargo.toml +++ b/argon2/Cargo.toml @@ -14,7 +14,7 @@ keywords = ["crypto", "hashing", "password", "phf"] categories = ["authentication", "cryptography", "no-std"] readme = "README.md" edition = "2024" -rust-version = "1.85" +rust-version = "1.87" [dependencies] base64ct = "1.7" diff --git a/argon2/README.md b/argon2/README.md index 0f269912..97b46e86 100644 --- a/argon2/README.md +++ b/argon2/README.md @@ -47,7 +47,7 @@ dual licensed as above, without any additional terms or conditions. [build-image]: https://github.com/RustCrypto/password-hashes/actions/workflows/argon2.yml/badge.svg [build-link]: https://github.com/RustCrypto/password-hashes/actions/workflows/argon2.yml [license-image]: https://img.shields.io/badge/license-Apache2.0/MIT-blue.svg -[rustc-image]: https://img.shields.io/badge/rustc-1.85+-blue.svg +[rustc-image]: https://img.shields.io/badge/rustc-1.87+-blue.svg [chat-image]: https://img.shields.io/badge/zulip-join_chat-blue.svg [chat-link]: https://rustcrypto.zulipchat.com/#narrow/stream/260046-password-hashes diff --git a/balloon-hash/Cargo.toml b/balloon-hash/Cargo.toml index 738abae6..44d8d950 100644 --- a/balloon-hash/Cargo.toml +++ b/balloon-hash/Cargo.toml @@ -11,7 +11,7 @@ keywords = ["crypto", "hashing", "password", "phf"] categories = ["authentication", "cryptography", "no-std"] readme = "README.md" edition = "2024" -rust-version = "1.85" +rust-version = "1.87" [dependencies] digest = { version = "0.11", default-features = false } diff --git a/balloon-hash/README.md b/balloon-hash/README.md index e623b359..25aea1df 100644 --- a/balloon-hash/README.md +++ b/balloon-hash/README.md @@ -44,7 +44,7 @@ dual licensed as above, without any additional terms or conditions. [docs-image]: https://docs.rs/balloon-hash/badge.svg [docs-link]: https://docs.rs/balloon-hash/ [license-image]: https://img.shields.io/badge/license-Apache2.0/MIT-blue.svg -[rustc-image]: https://img.shields.io/badge/rustc-1.85+-blue.svg +[rustc-image]: https://img.shields.io/badge/rustc-1.87+-blue.svg [chat-image]: https://img.shields.io/badge/zulip-join_chat-blue.svg [chat-link]: https://rustcrypto.zulipchat.com/#narrow/stream/260046-password-hashes [build-image]: https://github.com/RustCrypto/password-hashes/actions/workflows/balloon-hash.yml/badge.svg diff --git a/bcrypt-pbkdf/Cargo.toml b/bcrypt-pbkdf/Cargo.toml index 53efecb1..578f148f 100644 --- a/bcrypt-pbkdf/Cargo.toml +++ b/bcrypt-pbkdf/Cargo.toml @@ -11,7 +11,7 @@ repository = "https://github.com/RustCrypto/password-hashes" keywords = ["crypto", "hashing", "password", "phf"] categories = ["authentication", "cryptography", "no-std"] edition = "2024" -rust-version = "1.85" +rust-version = "1.87" [dependencies] blowfish = { version = "0.10", features = ["bcrypt"] } diff --git a/bcrypt-pbkdf/README.md b/bcrypt-pbkdf/README.md index 1fce1eee..61260741 100644 --- a/bcrypt-pbkdf/README.md +++ b/bcrypt-pbkdf/README.md @@ -44,7 +44,7 @@ dual licensed as above, without any additional terms or conditions. [build-image]: https://github.com/RustCrypto/password-hashes/actions/workflows/bcrypt-pbkdf.yml/badge.svg [build-link]: https://github.com/RustCrypto/password-hashes/actions/workflows/bcrypt-pbkdf.yml [license-image]: https://img.shields.io/badge/license-Apache2.0/MIT-blue.svg -[rustc-image]: https://img.shields.io/badge/rustc-1.85+-blue.svg +[rustc-image]: https://img.shields.io/badge/rustc-1.87+-blue.svg [chat-image]: https://img.shields.io/badge/zulip-join_chat-blue.svg [chat-link]: https://rustcrypto.zulipchat.com/#narrow/stream/260046-password-hashes diff --git a/password-auth/Cargo.toml b/password-auth/Cargo.toml index 7a5e642d..b72f673e 100644 --- a/password-auth/Cargo.toml +++ b/password-auth/Cargo.toml @@ -14,7 +14,7 @@ keywords = ["crypto", "password", "hashing"] categories = ["authentication", "cryptography", "no-std"] readme = "README.md" edition = "2024" -rust-version = "1.85" +rust-version = "1.87" [dependencies] getrandom = { version = "0.4", default-features = false } diff --git a/password-auth/README.md b/password-auth/README.md index 58ebcaad..c2dcacc1 100644 --- a/password-auth/README.md +++ b/password-auth/README.md @@ -71,7 +71,7 @@ dual licensed as above, without any additional terms or conditions. [build-image]: https://github.com/RustCrypto/password-hashes/actions/workflows/password-auth.yml/badge.svg [build-link]: https://github.com/RustCrypto/password-hashes/actions/workflows/password-auth.yml [license-image]: https://img.shields.io/badge/license-Apache2.0/MIT-blue.svg -[rustc-image]: https://img.shields.io/badge/rustc-1.85+-blue.svg +[rustc-image]: https://img.shields.io/badge/rustc-1.87+-blue.svg [chat-image]: https://img.shields.io/badge/zulip-join_chat-blue.svg [chat-link]: https://rustcrypto.zulipchat.com/#narrow/stream/260046-password-hashes diff --git a/pbkdf2/Cargo.toml b/pbkdf2/Cargo.toml index e5c61394..865e0554 100644 --- a/pbkdf2/Cargo.toml +++ b/pbkdf2/Cargo.toml @@ -11,7 +11,7 @@ keywords = ["crypto", "hashing", "password", "phf"] categories = ["authentication", "cryptography", "no-std"] readme = "README.md" edition = "2024" -rust-version = "1.85" +rust-version = "1.87" [dependencies] digest = { version = "0.11", features = ["mac"] } diff --git a/pbkdf2/README.md b/pbkdf2/README.md index 9ba867ac..e5fde2fa 100644 --- a/pbkdf2/README.md +++ b/pbkdf2/README.md @@ -34,7 +34,7 @@ dual licensed as above, without any additional terms or conditions. [build-image]: https://github.com/RustCrypto/password-hashes/actions/workflows/pbkdf2.yml/badge.svg [build-link]: https://github.com/RustCrypto/password-hashes/actions/workflows/pbkdf2.yml [license-image]: https://img.shields.io/badge/license-Apache2.0/MIT-blue.svg -[rustc-image]: https://img.shields.io/badge/rustc-1.85+-blue.svg +[rustc-image]: https://img.shields.io/badge/rustc-1.87+-blue.svg [chat-image]: https://img.shields.io/badge/zulip-join_chat-blue.svg [chat-link]: https://rustcrypto.zulipchat.com/#narrow/stream/260046-password-hashes [build-image]: https://github.com/RustCrypto/password-hashes/workflows/pbkdf2/badge.svg?branch=master&event=push diff --git a/scrypt/Cargo.toml b/scrypt/Cargo.toml index 3123142f..c308296a 100644 --- a/scrypt/Cargo.toml +++ b/scrypt/Cargo.toml @@ -11,7 +11,7 @@ repository = "https://github.com/RustCrypto/password-hashes" keywords = ["crypto", "hashing", "password", "phf"] categories = ["authentication", "cryptography", "no-std"] edition = "2024" -rust-version = "1.85" +rust-version = "1.87" [dependencies] cfg-if = "1.0" @@ -21,7 +21,7 @@ sha2 = { version = "0.11", default-features = false } rayon = { version = "1.11", optional = true } # optional dependencies -ctutils = { version = "0.4", optional = true } +ctutils = { version = "0.4.8", optional = true } kdf = { version = "0.1", optional = true } mcf = { version = "0.6", optional = true } password-hash = { version = "0.6", optional = true, default-features = false } diff --git a/scrypt/README.md b/scrypt/README.md index 1a8762bb..a9d4f3ce 100644 --- a/scrypt/README.md +++ b/scrypt/README.md @@ -34,7 +34,7 @@ dual licensed as above, without any additional terms or conditions. [build-image]: https://github.com/RustCrypto/password-hashes/actions/workflows/scrypt.yml/badge.svg [build-link]: https://github.com/RustCrypto/password-hashes/actions/workflows/scrypt.yml [license-image]: https://img.shields.io/badge/license-Apache2.0/MIT-blue.svg -[rustc-image]: https://img.shields.io/badge/rustc-1.85+-blue.svg +[rustc-image]: https://img.shields.io/badge/rustc-1.87+-blue.svg [chat-image]: https://img.shields.io/badge/zulip-join_chat-blue.svg [chat-link]: https://rustcrypto.zulipchat.com/#narrow/stream/260046-password-hashes diff --git a/sha-crypt/Cargo.toml b/sha-crypt/Cargo.toml index db6aa00f..ede77211 100644 --- a/sha-crypt/Cargo.toml +++ b/sha-crypt/Cargo.toml @@ -15,14 +15,14 @@ keywords = ["crypto", "hashing", "password", "phf"] categories = ["authentication", "cryptography", "no-std"] readme = "README.md" edition = "2024" -rust-version = "1.85" +rust-version = "1.87" [dependencies] sha2 = { version = "0.11", default-features = false } base64ct = { version = "1.8", default-features = false } # optional dependencies -ctutils = { version = "0.4", optional = true } +ctutils = { version = "0.4.8", optional = true } mcf = { version = "0.6", optional = true, default-features = false, features = ["base64"] } password-hash = { version = "0.6", optional = true, default-features = false } diff --git a/yescrypt/Cargo.toml b/yescrypt/Cargo.toml index 372fa59c..b28750b5 100644 --- a/yescrypt/Cargo.toml +++ b/yescrypt/Cargo.toml @@ -11,10 +11,10 @@ keywords = ["crypto", "hashing", "password", "phf"] categories = ["authentication", "cryptography", "no-std"] readme = "README.md" edition = "2024" -rust-version = "1.85" +rust-version = "1.87" [dependencies] -ctutils = "0.4" +ctutils = "0.4.8" hmac = { version = "0.13", default-features = false } pbkdf2 = { version = "0.13", default-features = false, features = ["hmac"] } salsa20 = { version = "0.11", default-features = false } diff --git a/yescrypt/README.md b/yescrypt/README.md index 230113bb..f9b4e539 100644 --- a/yescrypt/README.md +++ b/yescrypt/README.md @@ -54,7 +54,7 @@ dual licensed as above, without any additional terms or conditions. [build-image]: https://github.com/RustCrypto/password-hashes/actions/workflows/yescrypt.yml/badge.svg [build-link]: https://github.com/RustCrypto/password-hashes/actions/workflows/yescrypt.yml [license-image]: https://img.shields.io/badge/license-Apache2.0/MIT-blue.svg -[rustc-image]: https://img.shields.io/badge/rustc-1.85+-blue.svg +[rustc-image]: https://img.shields.io/badge/rustc-1.87+-blue.svg [chat-image]: https://img.shields.io/badge/zulip-join_chat-blue.svg [chat-link]: https://rustcrypto.zulipchat.com/#narrow/stream/260046-password-hashes diff --git a/yescrypt/src/util.rs b/yescrypt/src/util.rs index aa971aa8..9056ad73 100644 --- a/yescrypt/src/util.rs +++ b/yescrypt/src/util.rs @@ -64,7 +64,7 @@ pub(crate) fn slice_as_chunks_mut(slice: &mut [T]) -> (&mut [ #[must_use] unsafe fn slice_as_chunks_unchecked_mut(slice: &mut [T]) -> &mut [[T; N]] { assert!( - N != 0 && slice.len() % N == 0, + N != 0 && slice.len().is_multiple_of(N), "slice::as_chunks_unchecked requires `N != 0` and the slice to split exactly into `N`-element chunks" );