Results 4 comments of cyberia

`Pin` won't help you here -- as I discovered when [asking about it on the Rust user forum](https://users.rust-lang.org/t/pinning-a-boxed-slice-of-an-unpin-type/61183) The problem here is that `SecretKey` is a simple pointer-free struct, and...

The solution that I have ended up using in my own half-complete file encryption project, which uses `libsodium`, is to build my own heap pointer type based around libsodium's `sodium_malloc`...

I suppose, zooming out for a minute, that one class of attack that this kind of memory protection is supposed to prevent is simply not possible in Rust -- in...

Related: https://github.com/colinhacks/zod/issues/153