Skip to main content

sanitize_bytes_multi_pass

Function sanitize_bytes_multi_pass 

Source
pub fn sanitize_bytes_multi_pass(bytes: &mut [u8])
Expand description

Clear ordinary mutable bytes with an explicit three-pass volatile pattern.

This API is available with the multi-pass-clear feature. It writes zeros, then 0xFF, then zeros again. For ordinary volatile RAM, the default single-pass volatile zeroing is the normal security boundary; this helper is provided for environments that need multi-pass overwrite evidence for policy or audit compatibility.