We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Zeroize
1 parent d5355ef commit 49493dcCopy full SHA for 49493dc
1 file changed
digest/src/buffer_macros/fixed.rs
@@ -39,6 +39,21 @@ macro_rules! buffer_fixed {
39
const OID: $crate::const_oid::ObjectIdentifier =
40
$crate::const_oid::ObjectIdentifier::new_unwrap($oid);
41
}
42
+
43
+ impl$(< $( $lt $( : $clt $(+ $dlt )* )? ),+ >)? Drop for $name$(< $( $lt ),+ >)? {
44
+ #[inline]
45
+ fn drop(&mut self) {
46
+ #[cfg(feature = "zeroize")]
47
+ {
48
+ use $crate::zeroize::Zeroize;
49
+ self.0.zeroize();
50
+ }
51
52
53
54
55
+ impl$(< $( $lt $( : $clt $(+ $dlt )* )? ),+ >)? $crate::zeroize::ZeroizeOnDrop for $name$(< $( $lt ),+ >)? {}
56
57
};
58
59
// Terminates `impl_inner` sequences.
0 commit comments