Open burdges opened 5 years ago
@burdges Thanks. Fixed in https://github.com/lovesh/amcl_rust_wrapper/commit/9e86347a7c21a146e364f5c26fb0c621ab6fc795
I think that commit works but actually does not use zeroize. ;)
You could just depend upon Drop of course, but if you impl Zeroize for ..
and then call .zeroize()
form drop, then anyone downstream with opinions about when to zero can use it. Also it looks like zeroize 0.9.3 fixed zeroize_derive
The clear_on_drop crate is no longer maintained and uses fragile techniques. We expected it to break as linker optimizations work their way into rustc, etc. You should expose zeroing with the zeroize and if your dependencies do not yet support zeroing then you can implement the
Zeroize
trait using a function like