Skip to content

Commit

Permalink
ascon-aead: Add ascon sponge Zeroize feature
Browse files Browse the repository at this point in the history
Not zeroizing the state may expose the private key.
  • Loading branch information
aewag committed Oct 23, 2023
1 parent 36546a0 commit 98d529f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ascon-aead/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,22 +20,23 @@ 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"
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"]
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
Expand Down

0 comments on commit 98d529f

Please sign in to comment.