From 07819724b525d69aa5b339149aa529970d60e810 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, 1 Dec 2026 15:15:34 +0300 Subject: [PATCH 1/2] blake2: fix zeroization of `key_block` --- blake2/src/macros.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blake2/src/macros.rs b/blake2/src/macros.rs index ea0f26532..641d143f1 100644 --- a/blake2/src/macros.rs +++ b/blake2/src/macros.rs @@ -460,7 +460,7 @@ macro_rules! blake2_mac_impl { // `self.core` zeroized by its `Drop` impl self.buffer.zeroize(); #[cfg(feature = "reset")] - if let Some(mut key_block) = self.key_block { + if let Some(key_block) = self.key_block.as_mut() { key_block.zeroize(); } } From 4a8ec3f5a9111bc642d52c4c55d40a7cf7798eab 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, 1 Dec 2026 15:20:51 +0300 Subject: [PATCH 2/2] add changelog entry --- blake2/CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/blake2/CHANGELOG.md b/blake2/CHANGELOG.md index 675474d98..022ba5768 100644 --- a/blake2/CHANGELOG.md +++ b/blake2/CHANGELOG.md @@ -5,6 +5,12 @@ 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.11.1 (UNRELEASED) +### Fixed +- Zeroization with enabled `reset` crate feature ([#966]) + +[#966]: https://github.com/RustCrypto/hashes/pull/966 + ## 0.11.0 (2026-08-26) ### Added - `zeroize` support ([#545])