From 8c0d48ecafc8acf5816f5a8a4957bab6dc1b69a3 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: Mon, 25 May 2026 12:40:56 +0300 Subject: [PATCH 1/5] Fix minimal versions --- Cargo.lock | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index c112554c..17a4106a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -91,9 +91,9 @@ checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801" [[package]] name = "cipher" -version = "0.5.1" +version = "0.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e34d8227fe1ba289043aeb13792056ff80fd6de1a9f49137a5f499de8e8c78ea" +checksum = "e8cf2a2c93cd704877c0858356ed03480ff301ee950b43f1cbe4573b088bfa6c" dependencies = [ "blobby", "block-buffer", @@ -104,9 +104,9 @@ dependencies = [ [[package]] name = "cpubits" -version = "0.1.0" +version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5ef0c543070d296ea414df2dd7625d1b24866ce206709d8a4a424f28377f5861" +checksum = "15b85f9c39137c3a891689859392b1bd49812121d0d61c9caf00d46ed5ce06ae" [[package]] name = "cpufeatures" @@ -119,9 +119,9 @@ dependencies = [ [[package]] name = "crypto-common" -version = "0.2.1" +version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "77727bb15fa921304124b128af125e7e3b968275d1b108b379190264f4423710" +checksum = "ce6e4c961d6cd6c9a86db418387425e8bdeaf05b3c8bc1411e6dca4c252f1453" dependencies = [ "hybrid-array", ] @@ -150,9 +150,9 @@ checksum = "e712f64ec3850b98572bffac52e2c6f282b29fe6c5fa6d42334b30be438d95c1" [[package]] name = "hybrid-array" -version = "0.4.10" +version = "0.4.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3944cf8cf766b40e2a1a333ee5e9b563f854d5fa49d6a8ca2764e97c6eddb214" +checksum = "9155a582abd142abc056962c29e3ce5ff2ad5469f4246b537ed42c5deba857da" dependencies = [ "typenum", "zeroize", @@ -185,9 +185,9 @@ dependencies = [ [[package]] name = "libc" -version = "0.2.184" +version = "0.2.186" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "48f5d2a454e16a5ea0f4ced81bd44e4cfc7bd3a507b61887c99fd3538b28e4af" +checksum = "68ab91017fe16c622486840e4c83c9a37afeff978bd239b5293d61ece587de66" [[package]] name = "magma" @@ -261,9 +261,9 @@ dependencies = [ [[package]] name = "typenum" -version = "1.19.0" +version = "1.20.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "562d481066bde0658276a35467c4af00bdc6ee726305698a55b86e61d7ad82bb" +checksum = "40ce102ab67701b8526c123c1bab5cbe42d7040ccfd0f64af1a385808d2f43de" [[package]] name = "xtea" From 4d59489bf8a8df26e7650df68cda5e9f7deba5bf 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: Mon, 25 May 2026 12:46:01 +0300 Subject: [PATCH 2/5] aes: bump zeroize to v1.8 --- aes/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aes/Cargo.toml b/aes/Cargo.toml index ae20675f..3d63cafa 100644 --- a/aes/Cargo.toml +++ b/aes/Cargo.toml @@ -15,7 +15,7 @@ categories = ["cryptography", "no-std"] [dependencies] cipher = "0.5" cpubits = "0.1" -zeroize = { version = "1.5.6", optional = true, default-features = false, features = ["aarch64"] } +zeroize = { version = "1.8", optional = true, default-features = false, features = ["aarch64"] } [target.'cfg(any(target_arch = "aarch64", target_arch = "x86_64", target_arch = "x86"))'.dependencies] cpufeatures = "0.3" From 740639ed575b8aa1905351775663ea00059a6747 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: Mon, 25 May 2026 12:51:55 +0300 Subject: [PATCH 3/5] Fix warnings in aarch64 backend --- aes/src/armv8/encdec.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/aes/src/armv8/encdec.rs b/aes/src/armv8/encdec.rs index 7b990b07..8be50020 100644 --- a/aes/src/armv8/encdec.rs +++ b/aes/src/armv8/encdec.rs @@ -69,6 +69,7 @@ pub(super) unsafe fn encrypt_par( blocks: InOut<'_, '_, Array>, ) { #[inline(always)] + #[target_feature(enable = "aes")] unsafe fn par_round( key: uint8x16_t, blocks: &mut Array, @@ -127,6 +128,7 @@ pub(super) unsafe fn decrypt_par( blocks: InOut<'_, '_, Array>, ) { #[inline(always)] + #[target_feature(enable = "aes")] unsafe fn par_round( key: uint8x16_t, blocks: &mut Array, From feae42e5d32d895d6b6d3b59335e79af121af507 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: Mon, 25 May 2026 12:54:09 +0300 Subject: [PATCH 4/5] Update changelog --- aes/CHANGELOG.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/aes/CHANGELOG.md b/aes/CHANGELOG.md index 9ec7de50..b86200ed 100644 --- a/aes/CHANGELOG.md +++ b/aes/CHANGELOG.md @@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## 0.9.1 (UNRELEASED) +### Fixed +- Minimal version of `zeroize` dependency ([#562]) +- Build warnings on AArch64 targets ([#562]) + +[#562]: https://github.com/RustCrypto/block-ciphers/pull/562 + ## 0.9.0 (2026-04-10) ### Changed - Bump `cipher` dependency to v0.5 From e723e0ac33577f0cc0a246b2ce1ebb183db41457 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: Mon, 25 May 2026 12:56:37 +0300 Subject: [PATCH 5/5] rm `#[inline(always)]` --- aes/src/armv8/encdec.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/aes/src/armv8/encdec.rs b/aes/src/armv8/encdec.rs index 8be50020..913e95cf 100644 --- a/aes/src/armv8/encdec.rs +++ b/aes/src/armv8/encdec.rs @@ -68,7 +68,6 @@ pub(super) unsafe fn encrypt_par( keys: &[uint8x16_t; KEYS], blocks: InOut<'_, '_, Array>, ) { - #[inline(always)] #[target_feature(enable = "aes")] unsafe fn par_round( key: uint8x16_t, @@ -127,7 +126,6 @@ pub(super) unsafe fn decrypt_par( keys: &[uint8x16_t; KEYS], blocks: InOut<'_, '_, Array>, ) { - #[inline(always)] #[target_feature(enable = "aes")] unsafe fn par_round( key: uint8x16_t,