Function secure_clone_and_zero

Source
pub fn secure_clone_and_zero(data: &mut [u8]) -> Vec<u8> 
Expand description

Securely clone a slice, zeroing the source afterwards

This function clones the contents of the slice and then securely zeroes the original slice.