serpent: Ad-hoc debugging facility
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 25 Jul 2013 17:30:48 +0000 (18:30 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 25 Jul 2013 17:30:48 +0000 (18:30 +0100)
commit980d1ab2235744190faa17dd9ed038cc7f2576f5
treeb8b72ce2e43a56d597e8cbc5ec2ca2baf7c17c87
parentaf43f0b77a10716921d13c047d1d3c39570cae17
serpent: Ad-hoc debugging facility

Provide an ad-hoc debugging facility in serpent.c.

If the "#if 0" is changed to "#if 1", the key material, plaintext and
ciphertext of all Serpent operations is printed in hex to stderr.

We provide a new header file hexdebug.h to facilitate this.  And we
use this new header file in the "#if 0" debugging in transform_setkey.

No functional change.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
hexdebug.h [new file with mode: 0644]
serpent.c
transform.c