Struct secmem_alloc::zeroize::VolatileWriteZeroizer [−][src]
pub struct VolatileWriteZeroizer;
Expand description
This zeroizer uses a volatile write per byte. This zeroization technique is
similar to the zeroize
crate, available for all target platforms on
stable, but extremely slow.
In addition to the volatile write we place a compiler fence right next to the volatile write. This should not be necessary for secure zeroization since the volatile semantics guarenties our writes are not elided, and they can not be delayed since we are deallocating the memory after zeroization. The use of this fence is therefore only a precaution.
Trait Implementations
Returns the “default value” for a type. Read more
Zeroize the memory pointed to by ptr
and of size len
bytes. Read more
Auto Trait Implementations
impl RefUnwindSafe for VolatileWriteZeroizer
impl Send for VolatileWriteZeroizer
impl Sync for VolatileWriteZeroizer
impl Unpin for VolatileWriteZeroizer
impl UnwindSafe for VolatileWriteZeroizer
Blanket Implementations
Mutably borrows from an owned value. Read more