From 04ea8db39f405d8adaa382376c984c00f7eddb5f 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..f2ef8efd 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" @@ -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", "zeroize", "sponge-zeroize"] 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