Trait secrecy::Zeroize [−][src]
pub trait Zeroize { fn zeroize(&mut self); }
Expand description
Trait for securely erasing types from memory
Required methods
Implementations on Foreign Types
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()
.
Implement Zeroize
on arrays of types that impl Zeroize