Struct secmem_alloc::zeroize::LibcZeroizer [−][src]
pub struct LibcZeroizer;
Expand description
This zeroizer uses volatile zeroization functions provided by libc. It should be fast but is only available on certain platforms.
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 LibcZeroizer
impl Send for LibcZeroizer
impl Sync for LibcZeroizer
impl Unpin for LibcZeroizer
impl UnwindSafe for LibcZeroizer
Blanket Implementations
Mutably borrows from an owned value. Read more