MCPcopy Create free account
hub / github.com/RustCrypto/utils / Zeroize

Interface Zeroize

zeroize/src/lib.rs:245–249  ·  view source on GitHub ↗

Trait for securely erasing values from memory.

Source from the content-addressed store, hash-verified

243
244/// Trait for securely erasing values from memory.
245pub trait Zeroize {
246 /// Zero out this object from memory using Rust intrinsics which ensure the
247 /// zeroization operation is not "optimized away" by the compiler.
248 fn zeroize(&mut self);
249}
250
251/// Marker trait signifying that this type will [`Zeroize::zeroize`] itself on [`Drop`].
252pub trait ZeroizeOnDrop {}

Callers

nothing calls this directly

Implementers 5

lib.rssponge-cursor/src/lib.rs
lib.rsblock-buffer/src/lib.rs
lib.rszeroize/src/lib.rs
zeroize_vec_entire_capacityzeroize/tests/zeroize.rs
zeroizing_dyn_traitzeroize/tests/zeroize.rs

Calls

no outgoing calls

Tested by

no test coverage detected