This can be easily implemented in Rust as a struct doing exactly that.
There's no need to modify the I/O layer, since you'd simply borrow an &[u8]
from the type and pass it, resulting in the I/O layer directly writing into the
locked zeroed-on-destruction memory.
As for crypto, it seems the plan is to not implement it in Rust, but
to bind to libraries such as OpenSSL, libgcrypt, Windows CryptoAPI, etc.
I guess patches would be welcome to implement this.
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev