Skip to content

Commit

Permalink
Impl ZeroizeOnDrop for Siv
Browse files Browse the repository at this point in the history
  • Loading branch information
newpavlov committed Oct 27, 2024
1 parent 851a5a4 commit 7123547
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions aes-siv/src/siv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,14 @@ where
}
}

#[cfg(feature = "zeroize")]
impl<C, M> zeroize::ZeroizeOnDrop for Siv<C, M>
where
C: BlockSizeUser<BlockSize = U16> + BlockCipherEncrypt + KeyInit + KeySizeUser,
M: Mac<OutputSize = U16>,
{
}

/// "S2V" is a vectorized pseudorandom function (sometimes referred to as a
/// vector MAC or "vMAC") which performs a "dbl"-and-xor operation on the
/// outputs of a pseudo-random function (CMAC or PMAC).
Expand Down

0 comments on commit 7123547

Please sign in to comment.