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

Interface Zeroize

zeroize/src/lib.rs:253–257  ·  view source on GitHub ↗

Trait for securely erasing values from memory.

Source from the content-addressed store, hash-verified

251
252/// Trait for securely erasing values from memory.
253pub trait Zeroize {
254 /// Zero out this object from memory using Rust intrinsics which ensure the
255 /// zeroization operation is not "optimized away" by the compiler.
256 fn zeroize(&mut self);
257}
258
259/// Marker trait signifying that this type will [`Zeroize::zeroize`] itself on [`Drop`].
260pub 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