Skip to main content

zero_secure

Function zero_secure 

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

Erase every byte through observable stores.

Unlike ordinary filling or zeroing, these writes are retained even when the compiler can prove the destination is not subsequently read. This does not erase copies held elsewhere or guarantee removal from caches or swap.