Skip to main content

secure_zero

Function secure_zero 

Source
pub fn secure_zero(data: &mut [u8])
Expand description

Securely zeroize a mutable byte slice using volatile writes.

This ensures the compiler cannot optimize away the zeroization.