awnumar / memguard

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

NewImmutableFromBytes() was deprecated? #139

Closed satoshisound closed 3 years ago

satoshisound commented 3 years ago

I'm working with another project that was using memguard but NewImmutableFromBytes() is missing from the latest version of memguard (as far as I can see). Can someone show me how to patch this with similar functionality using existing memguard primitives?

awnumar commented 3 years ago

LockedBuffers that are initialised with data at creation time are immutable by default. So the NewBufferFromBytes function is equivalent.