Function explicit_bzero

Source
pub fn explicit_bzero(buf: &mut Vec<u8>)
Expand description

Securely zero the memory in buf.

This function clears the full capacity of buf by writing zeroes to it, thereby erasing any sensitive data in buf. It should be called to clear any sensitive passphrases once they are no longer in use.

If the zeroize feature is enabled, this internally uses zeroize::Zeroize.