Skip to main content

Module zeroize

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
Zeroizing is a wrapper for any Z: Zeroize type which implements a Drop handler which zeroizes dropped values.

Traits§

DefaultIsZeroes
Marker trait for types whose Default is 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.
ZeroizeOnDrop
Marker trait signifying that this type will Zeroize::zeroize itself on Drop.

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 N bytes of stack space.