symm/blkc.h, symm/hash.h: Factor out pieces of the test machinery.
authorMark Wooding <mdw@distorted.org.uk>
Wed, 10 May 2017 19:26:41 +0000 (20:26 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sun, 14 May 2017 13:58:41 +0000 (14:58 +0100)
commit4328f7469ba7f9539368a21107005009aa9d3a43
treeeae665fef6a785a202c4c51b64d8bfb7dc02b791
parentaaae9cab01b8d7a0e6cf0c273182a51fd03a9d61
symm/blkc.h, symm/hash.h: Factor out pieces of the test machinery.

This will allow a source file to include tests for a hash function or
block cipher /and/ other kinds of tests.  Possibly even for another hash
function or block cipher.

This was mostly done already for block ciphers: the remaining piece
involved making a macro to populate the test table.  But hash functions
haven't been as fortunate.

Fix the new definitions to allow non-identifier names for hashes and
block ciphers, to match the mode definitions.
symm/blkc.h
symm/hash.h