Module zeroize
Available on crate features
crypto and std only.Expand description
Memory-clearing primitives for secret buffers and owned key material.
Re-export of the [zeroize] crate.
Structs§
- Zeroizing
Zeroizingis a wrapper for anyZ: Zeroizetype which implements aDrophandler which zeroizes dropped values.
Traits§
- Default
IsZeroes - Marker trait for types whose
Defaultis the desired zeroization result - TryZeroize
- Fallible trait for representing cases where zeroization may or may not be possible.
- Zeroize
- Trait for securely erasing values from memory.
- Zeroize
OnDrop - Marker trait signifying that this type will
Zeroize::zeroizeitself onDrop.
Functions§
- optimization_
barrier - Observe the referenced data and prevent the compiler from removing previous writes to it.
- zeroize_
flat_ ⚠type - Zeroizes a flat type/struct. Only zeroizes the values that it owns, and it does not work on
dynamically sized values or trait objects. It would be inefficient to use this function on a
type that already implements
ZeroizeOnDrop. - zeroize_
stack - Zeroize
Nbytes of stack space.