Skip to content

Commit

Permalink
ascon-hash: Add Zeroize feature (#480)
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 authored Oct 23, 2023
1 parent cfda39f commit c640781
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"] # TODO: enable zeroize in the future for block-buffer v0.11

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

0 comments on commit c640781

Please sign in to comment.