From ef647cbced04bb6bfda81e4fc21a563bf6b54fa7 Mon Sep 17 00:00:00 2001 From: Alexander Wagner Date: Fri, 19 May 2023 19:18:37 +0200 Subject: [PATCH] ascon-aead: Add ascon sponge Zeroize feature Not zeroizing the state may expose the private key. --- ascon-aead/Cargo.toml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ascon-aead/Cargo.toml b/ascon-aead/Cargo.toml index 70b8eebd..85ed749c 100644 --- a/ascon-aead/Cargo.toml +++ b/ascon-aead/Cargo.toml @@ -20,7 +20,7 @@ subtle = { version = "2", default-features = false } zeroize = { version = "1.6", optional = true, default-features = false, features = [ "derive", ] } -ascon = "0.3" +ascon = "0.4" [dev-dependencies] hex = "0.4" @@ -28,7 +28,7 @@ aead = { version = "0.5", features = ["alloc"] } spectral = { version = "0.6", default-features = false } [features] -default = ["alloc", "getrandom", "zeroize"] +default = ["alloc", "getrandom"] std = ["aead/std", "alloc"] alloc = ["aead/alloc"] arrayvec = ["aead/arrayvec"] @@ -36,6 +36,7 @@ getrandom = ["aead/getrandom", "rand_core"] heapless = ["aead/heapless"] rand_core = ["aead/rand_core"] stream = ["aead/stream"] +sponge-zeroize = ["ascon/zeroize"] [package.metadata.docs.rs] all-features = true