Skip to content

Commit cc61a52

Browse files
committed
Fix ZeroizeOnDrop check
1 parent b51624c commit cc61a52

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ascon-hash/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ struct HashCore<P: HashParameters> {
7777
impl<P: HashParameters> digest::zeroize::ZeroizeOnDrop for HashCore<P> {}
7878

7979
#[allow(dead_code)]
80+
#[cfg(feature = "zeroize")]
8081
const _: () = {
8182
// State is the only field in AsconCore
8283
fn check_core(v: &State) {
@@ -210,6 +211,7 @@ impl SerializableState for AsconCore {
210211
impl digest::zeroize::ZeroizeOnDrop for AsconCore {}
211212

212213
#[allow(dead_code)]
214+
#[cfg(feature = "zeroize")]
213215
const _: () = {
214216
// HashCore is the only field in AsconCore
215217
fn check_core(v: &HashCore<Parameters>) {

0 commit comments

Comments
 (0)