tedu/reop — pull request #10 by jedisct1 (2014-07-03 04:04:04+00:00)
Title: Simplify code

- Use `detached` versions of `crypto_box` and `crypto_secretbox`. It removes code and doesn't require heap allocations and moving data around
- Sodium's function to get random numbers already use `arc4random` on OpenBSD
- Use `sodium_mlock` and `sodium_munlock` to protect secret keys (zeroing memory is not required, `sodium_munlock` does it)