Extending the Toolkit

Preserving the a common interface for cryptographic routines is a good idea. This chapter explains how to write new modules for the Toolkit.

The basic process is as follows:

  1. Add a new .c file containing an implementation of the new algorithm. This file must define 3 or 4 standard functions, a few constants, and a C struct encapsulating the state variables required by the algorithm.

  2. Add the new algorithm to setup.py.

  3. Send a copy of the code to me, if you like; code for new algorithms will be gratefully accepted.



Subsections