A wrapper around libsodium, providing easy, correct, safe crypto for common lisp.
Common Lisp Shell
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
scripts
LICENSE
README.md
accessors.lisp
bindings.lisp
cl-sodium.asd
exports.lisp
high-level.lisp
sodium.lisp
wrapper.lisp

README.md

libsodium bindings for Common Lisp

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.

Conventions

Who needs documentation when you follow simple function-naming conventions?

  • The package prefix is cr:
  • Underscores become dashes

See the examples/ folder and also the NaCL documentation (libsodium is a fork of NaCL).

Example

TODO

(re)Generating

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
vim scripts/bindings.i      # update "%include" paths to point at your libsodium headers
./scripts/generate          # must be run in cl-sodium folder

This will generate new bindings in their entirety (it's fully automated).

License

MIT Licensed.