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

Function zeroize_box

zeroize/tests/zeroize.rs:212–216  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

210#[cfg(feature = "alloc")]
211#[test]
212fn zeroize_box() {
213 let mut boxed_arr = Box::new([42u8; 3]);
214 boxed_arr.zeroize();
215 assert_eq!(boxed_arr.as_ref(), &[0u8; 3]);
216}
217
218#[cfg(feature = "alloc")]
219#[test]

Callers

nothing calls this directly

Calls 1

zeroizeMethod · 0.45

Tested by

no test coverage detected