From e0ed3ce52c7002de001a07c4e440d7149e4cf93e Mon Sep 17 00:00:00 2001 From: Sachymetsu Date: Mon, 20 Apr 2026 13:04:24 +0000 Subject: [PATCH] Ensure chacha20 is zeroized for benchmark comparison --- Cargo.lock | 2 ++ Cargo.toml | 2 +- 2 file(s) changed, 3 insertion(s)(+), 1 deletion(s)(-) diff --git a/Cargo.lock b/Cargo.lock --- a/Cargo.lock +++ b/Cargo.lock @@ -106,6 +106,7 @@ "cfg-if", "cipher", "cpufeatures", + "zeroize", ] [[package]] @@ -118,6 +119,7 @@ "chacha20", "cipher", "poly1305", + "zeroize", ] [[package]] diff --git a/Cargo.toml b/Cargo.toml --- a/Cargo.toml +++ b/Cargo.toml @@ -37,7 +37,7 @@ [dev-dependencies] getrandom = { version = "0.4.2", features = ["sys_rng"] } aead = { version = "0.6.0-rc.10", features = ["alloc"] } -chacha20poly1305 = "=0.11.0-rc.3" +chacha20poly1305 = { version = "=0.11.0-rc.3", features = ["zeroize"] } criterion = { version ="0.8.2", features = ["html_reports"] } [[bench]] -- tangled.sh