Function buffer_zeroize

Source
pub fn buffer_zeroize<const GUARD_ID: u32>(buf: &mut [u8])
Expand description

Zeroize a buffer

Pay attention to the GUARD_ID parameter. This should be unique on every call, through the entire hook code. Otherwise you will encounter guard violation during the execution of your hook.