GitHub - orthecreedence/cl-sodium: A wrapper around libsodium, providing easy, correct, safe crypto for common lisp. (original) (raw)

This is a wrapper of the the libsodiumlibrary 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?

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

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).

License

MIT Licensed.