/cl-mbedtls

CFFI bindings for mbedTLS

Primary LanguageCommon LispGNU General Public License v3.0GPL-3.0

cl-mbedtls

CFFI bindings for mbedTLS

Description

cl-mbedtls provides CFFI bindings for mbedTLS, a secure networking and encryption library. cl-mbedtls is still work in progress. It currently provides enough features to run PolarSeal. Supports SBCL and CCL.

Installation

  • Configure & build mbedTLS

    • Download and unpack mbedTLS

    • Enable MBEDTLS_THREADING_PTHREAD and MBEDTLS_THREADING_C in include/mbedtls/config.h

    • Build mbedTLS using

      $ cmake -DUSE_SHARED_MBEDTLS_LIBRARY=On .
      $ make
      $ sudo make install
      
  • Install dependencies

  • Build and load cl-mbedtls

    • Run make in the cl-mbedtls folder

      This should generate the ctypes executable, mbed-ctypes.cl and libmbed_aux.so

    • Load with ASDF:

      (asdf:load-system :cl-mbedtls)
      

ToDo

  • Fix memory leaks
  • Improve installation process
  • Add documentation
  • Add hashing APIs