Skip to content

Commit c640781

Browse files
authored
ascon-hash: Add Zeroize feature (#480)
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.
1 parent cfda39f commit c640781

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ascon-hash/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ rust-version = "1.56"
1919

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

2424
[dev-dependencies]
2525
spectral = { version = "0.6", default-features = false }
@@ -28,6 +28,7 @@ hex = "0.4"
2828
[features]
2929
default = ["std"]
3030
std = ["digest/std"]
31+
zeroize = ["ascon/zeroize"] # TODO: enable zeroize in the future for block-buffer v0.11
3132

3233
[package.metadata.docs.rs]
3334
all-features = true

0 commit comments

Comments
 (0)