GitHub - sebastien-riou/prince-c-ref: Prince cipher source code in C99 and test vectors with intermediate values (original) (raw)

Build Status

prince-c-ref

Reference implementation of the Prince block cipher, complient to C99. 'Reference' here means straightforward, unoptimized, and checked against the few test vectors provided in the original paper (http://eprint.iacr.org/2012/529.pdf). Some interesting features:

For those who are interested only in the intermediate values, see the file log.txt. Note that a python implementation is available here https://github.com/weedegee/prince.

Documentation

A Doxygen config file is in the "doxygen" folder. You can generate doc by invoking "doxygen config" from that directory. It will generate a host of information about the code. For example the figure below is the call graph of the byte oriented function:alt tag