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

Function zeroize_byte_arrays

zeroize/tests/zeroize.rs:57–61  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

55
56#[test]
57fn zeroize_byte_arrays() {
58 let mut arr = [42u8; 137];
59 arr.zeroize();
60 assert_eq!(arr.as_ref(), [0u8; 137].as_ref());
61}
62
63#[test]
64fn zeroize_on_drop_byte_arrays() {

Callers

nothing calls this directly

Calls 1

zeroizeMethod · 0.45

Tested by

no test coverage detected