pub fn zeroize_bytes(bytes: &mut [u8])
Securely zero a byte slice, preventing the compiler from eliminating the writes.
let mut secret = [42u8; 32]; zeroize::zeroize_bytes(&mut secret); assert_eq!(secret, [0u8; 32]);