Expand description
Safe-Rust memory clearing utilities.
Structs§
- Zero
Guard - 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.
- Zeroize
OnDrop - Marker for values whose
Dropimplementation invokesZeroize.
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§
- Zeroizing
Bytes - An exact-size byte allocation that clears every initialized byte on drop.