Skip to content

Commit

Permalink
ascon-hash: Add Zeroize feature
Browse files Browse the repository at this point in the history
Not zeroizing the state allows to recover any squeezed output. This is
because the `ascon` permutations can be inversed. Hence, access to the
complete state allows to perform this operation.
  • Loading branch information
aewag committed Oct 23, 2023
1 parent 91dfb20 commit 47a8262
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ascon-hash/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ rust-version = "1.56"

[dependencies]
digest = { version = "0.10", default-features = false, features = ["core-api"] }
ascon = "0.3"
ascon = { version = "0.4", default-features = false }

[dev-dependencies]
spectral = { version = "0.6", default-features = false }
Expand All @@ -28,6 +28,7 @@ hex = "0.4"
[features]
default = ["std"]
std = ["digest/std"]
zeroize = ["ascon/zeroize"]

[package.metadata.docs.rs]
all-features = true
Expand Down

0 comments on commit 47a8262

Please sign in to comment.