All Projects → orthecreedence → cl-sodium

orthecreedence / cl-sodium

Licence: MIT license
A wrapper around libsodium, providing easy, correct, safe crypto for common lisp.

Programming Languages

common lisp
692 projects
shell
77523 projects
SWIG
194 projects

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].