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 May 19, 2023
1 parent 36546a0 commit 04ea8db
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 = { git = "https://github.com/aewag/sponges", branch = "add-zeroize-ascon", default-features = false }

[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 04ea8db

Please sign in to comment.