This is a wrapper of the the libsodium library as well as a very thin layer of abstraction to make things a bit more lispy than running raw C functions.
The goal of this project is to provide easy, correct, safe crypto for common lisp. It relies entirely on libsodium for all cryptographic tasks.
Who needs documentation when you follow simple function-naming conventions?
- The package prefix is
- Underscores become dashes
See the examples/ folder and also the NaCL documentation (libsodium is a fork of NaCL).
If a new version of libsodium comes out, you can regenerate these bindings by doing the following (if you have swig installed):
cd /path/to/cl-sodium # SODIUM_HEADERS defaults to /usr/include, and should be the directory # containing the sodium/ directory with the headers. SODIUM_HEADERS=/opt/include ./scripts/generate.sh # must be run in cl-sodium folder
This will generate new bindings in their entirety (it's fully automated).