pub trait Zeroize {
// Required method
fn zeroize(&mut self);
}
Expand description
Trait for securely erasing values from memory.
Required Methods§
Implementations on Foreign Types§
source§impl<A: Zeroize, B: Zeroize, C: Zeroize, D: Zeroize, E: Zeroize, F: Zeroize> Zeroize for (A, B, C, D, E, F)
impl<A: Zeroize, B: Zeroize, C: Zeroize, D: Zeroize, E: Zeroize, F: Zeroize> Zeroize for (A, B, C, D, E, F)
source§impl<A: Zeroize, B: Zeroize, C: Zeroize, D: Zeroize, E: Zeroize, F: Zeroize, G: Zeroize> Zeroize for (A, B, C, D, E, F, G)
impl<A: Zeroize, B: Zeroize, C: Zeroize, D: Zeroize, E: Zeroize, F: Zeroize, G: Zeroize> Zeroize for (A, B, C, D, E, F, G)
source§impl<A: Zeroize> Zeroize for (A,)
impl<A: Zeroize> Zeroize for (A,)
Generic implementation of Zeroize for tuples up to 10 parameters.
source§impl<Z> Zeroize for PhantomData<Z>
impl<Z> Zeroize for PhantomData<Z>
PhantomData
is always zero sized so provide a Zeroize
implementation.
source§impl<A: Zeroize, B: Zeroize, C: Zeroize, D: Zeroize, E: Zeroize, F: Zeroize, G: Zeroize, H: Zeroize> Zeroize for (A, B, C, D, E, F, G, H)
impl<A: Zeroize, B: Zeroize, C: Zeroize, D: Zeroize, E: Zeroize, F: Zeroize, G: Zeroize, H: Zeroize> Zeroize for (A, B, C, D, E, F, G, H)
source§impl<A: Zeroize, B: Zeroize, C: Zeroize, D: Zeroize, E: Zeroize, F: Zeroize, G: Zeroize, H: Zeroize, I: Zeroize, J: Zeroize> Zeroize for (A, B, C, D, E, F, G, H, I, J)
impl<A: Zeroize, B: Zeroize, C: Zeroize, D: Zeroize, E: Zeroize, F: Zeroize, G: Zeroize, H: Zeroize, I: Zeroize, J: Zeroize> Zeroize for (A, B, C, D, E, F, G, H, I, J)
source§impl<Z> Zeroize for [Z]where
Z: DefaultIsZeroes,
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()
.
source§impl<A: Zeroize, B: Zeroize, C: Zeroize, D: Zeroize, E: Zeroize, F: Zeroize, G: Zeroize, H: Zeroize, I: Zeroize> Zeroize for (A, B, C, D, E, F, G, H, I)
impl<A: Zeroize, B: Zeroize, C: Zeroize, D: Zeroize, E: Zeroize, F: Zeroize, G: Zeroize, H: Zeroize, I: Zeroize> Zeroize for (A, B, C, D, E, F, G, H, I)
source§impl Zeroize for PhantomPinned
impl Zeroize for PhantomPinned
PhantomPinned
is zero sized so provide a Zeroize implementation.
source§impl<Z> Zeroize for [MaybeUninit<Z>]
impl<Z> Zeroize for [MaybeUninit<Z>]
Impl Zeroize
on slices of MaybeUninit
types.
This impl can eventually be optimized using an memset intrinsic,
such as core::intrinsics::volatile_set_memory
.
This fills the slice with zeroes.
Note that this ignore invariants that Z
might have, because
MaybeUninit
removes all invariants.