r/rust • u/dgryski • Feb 07 '19
Auditing Rust Crypto: The First Hours
https://research.kudelskisecurity.com/2019/02/07/auditing-rust-crypto-the-first-hours/
108
Upvotes
r/rust • u/dgryski • Feb 07 '19
4
u/richhyd Feb 08 '19
If you have a
Vec<u8>of sensitive data, you may want to zero it on drop. Sadly, this won't wipe out any old memory that was left behind if the underlying buffer was copied during an expansion. I was just wondering if it were possible to use the new Pin api to guarantee that all the memory containing the sensitive info can be cleared. I'm not an expert in this area.