Skip to main content

Module zeroing

Module zeroing 

Source
Expand description

Safe-Rust memory clearing utilities.

Structs§

ZeroGuard
Guard that invokes explicit initialized-byte clearing when dropped
Zeroizing
A wrapper that clears its initialized value when dropped.

Traits§

Zeroize
Overwrite the initialized representation of a value with its zero value.
ZeroizeOnDrop
Marker for values whose Drop implementation invokes Zeroize.

Functions§

boxed_bytes_from_slice
Copy bytes directly into exact-size owned storage.
boxed_bytes_zeroed
Allocate an exact-size boxed byte slice initialized to zero.
secure_clone_and_zero
Clone a slice into exact-size storage, then explicitly clear the source afterwards.
secure_zero
Explicitly overwrite every initialized byte in a slice.
zeroizing_bytes_from_slice
Copy bytes into exact-size storage that clears itself on drop.

Type Aliases§

ZeroizingBytes
An exact-size byte allocation that clears every initialized byte on drop.