awnumar / memguard

Secure software enclave for storage of sensitive information in memory.
Apache License 2.0
2.5k stars 123 forks source link

Missing function WipeBytes #58

Closed bionoren closed 6 years ago

bionoren commented 6 years ago

The documentation for *LockedBuffer.Copy says "You should aim to call WipeBytes on the original slice as soon as possible". However, there is no such function in this library or in the standard library. It sounds like a useful function though. Can you implement it? Or update the documentation to not reference it or to recommend something else?

awnumar commented 6 years ago

Ah that's an oversight on my part. There did used to be a WipeBytes function but it was removed. I'm not sure now if I should re-add it or just update the documentation, but I'll have a think about it.

Thanks for reporting this!