Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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]
57
fn 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]
64
fn zeroize_on_drop_byte_arrays() {
Callers
nothing calls this directly
Calls
1
zeroize
Method · 0.45
Tested by
no test coverage detected