From cae70938d0b450afe8c60ae7a91a24c5046bb2fe 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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ascon-aead/Cargo.toml b/ascon-aead/Cargo.toml index 70b8eebd..02fb2bab 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 = { git = "https://github.com/aewag/sponges", branch = "add-zeroize-ascon", default-features = false } [dev-dependencies] hex = "0.4" @@ -36,6 +36,7 @@ getrandom = ["aead/getrandom", "rand_core"] heapless = ["aead/heapless"] rand_core = ["aead/rand_core"] stream = ["aead/stream"] +zeroize = ["dep:zeroize", "ascon/zeroize"] [package.metadata.docs.rs] all-features = true