Also, it's nice and tiny and easy to link statically into small programs.
After that, the API is the same as for NaCl proper, except that anywhere you'd pass a byte array in the C API, you should use a blob instead.
The following procedures are exported:
crypto-verify-16 crypto-verify-32 crypto-stream crypto-stream-xor crypto-onetimeauth crypto-onetimeauth-verify crypto-secretbox crypto-secretbox-open crypto-scalarmult crypto-scalarmult-base crypto-box-keypair crypto-box-beforenm crypto-box-afternm crypto-box crypto-box-open crypto-hash crypto-sign-keypair crypto-sign crypto-sign-open
- I'm a whistleblower on the run from the US government, and my very life depends on strong crypto. Should I use this library?
- I'm not being hunted by the US government, but cryptographic security is still incredibly important to me. Should I use this library?
- I just want to play with some cryptographic primitives in Scheme. Should I use this library?
By all means, yes.
- This is stupid, who can I blame?
Evan Hanson email@example.com.
Public domain, same as NaCl (and presumably TweetNaCl).