pub trait Zeroize {
// Required method
fn zeroize(&mut self);
}
Expand description
Trait to zeroize a memory buffer. Trait for securely erasing types from memory
Required Methods§
Implementations on Foreign Types§
Source§impl Zeroize for CompressedEdwardsY
impl Zeroize for CompressedEdwardsY
Source§impl Zeroize for EdwardsPoint
impl Zeroize for EdwardsPoint
Source§impl<Z> Zeroize for [Z]where
Z: DefaultIsZeroes,
Impl Zeroize
on slices of types that can be zeroized with Default
.
impl<Z> Zeroize for [Z]where
Z: DefaultIsZeroes,
Impl Zeroize
on slices of types that can be zeroized with Default
.
This impl can eventually be optimized using an memset intrinsic,
such as core::intrinsics::volatile_set_memory
. For that reason the blanket
impl on slices is bounded by DefaultIsZeroes
.
To zeroize a mut slice of Z: Zeroize
which does not impl
DefaultIsZeroes
, call iter_mut().zeroize()
.