awnumar / memguard

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

Add Buffer() method. #29

Closed awnumar closed 6 years ago

awnumar commented 6 years ago

The recent finaliser addition involved moving the LockedBuffer's own methods into a separate struct. This messed with the documentation generated by godoc, so this PR aims to rectify that.

We add an explicit Buffer() method that functions identically to the old .Buffer syntax.