pub fn secure_zero(data: &mut [u8])Expand description
Securely zero a byte slice.
This uses the zeroize crate to ensure the memory is actually zeroed
and not optimized away by the compiler.
ยงExample
use quantacore::utils::secure_zero;
let mut secret = vec![0x42u8; 32];
secure_zero(&mut secret);
assert!(secret.iter().all(|&b| b == 0));