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

Function zeroize_box

zeroize/tests/zeroize.rs:200–204  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

198#[cfg(feature = "alloc")]
199#[test]
200fn zeroize_box() {
201 let mut boxed_arr = Box::new([42u8; 3]);
202 boxed_arr.zeroize();
203 assert_eq!(boxed_arr.as_ref(), &[0u8; 3]);
204}
205
206#[cfg(feature = "alloc")]
207#[test]

Callers

nothing calls this directly

Calls 1

zeroizeMethod · 0.45

Tested by

no test coverage detected