symm/: Allow block cipher and hash functions with strange names.
authorMark Wooding <mdw@distorted.org.uk>
Wed, 10 May 2017 18:29:41 +0000 (19:29 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sun, 14 May 2017 13:58:41 +0000 (14:58 +0100)
commitaaae9cab01b8d7a0e6cf0c273182a51fd03a9d61
tree4af6a7c188e811044529ef5a31e6cde3d0a632ac
parent0223a8a4b44cc21969cde92ed4a67684c08fce7e
symm/: Allow block cipher and hash functions with strange names.

This is quite a performance, actually.

  * The `multigen' tool now has a modifier `:f' which makes a filename-
    safe version of a value.

  * The `multigen' input files and `Makefile.am' have been changed to
    use `:f' appropriately.

  * All of the `MUMBLE-def.h' header files have been changed to
    introduce a new macro `MUMBLE_DEFX' with two extra arguments: the
    thing's presentable name (for use in class structures), and a
    filename-safe version of it.  The old `MUMBLE_DEF' macro still
    exists for compatibility (has anyone else written a mode?).

  * Similar changes have been made to the testing machinery in `blkc.h'
    and `hash.h', but this still needs cleaning up somewhat.
16 files changed:
symm/Makefile.am
symm/blkc.h
symm/cbc-def.h
symm/cfb-def.h
symm/counter-def.h
symm/ecb-def.h
symm/ghash-def.h
symm/gthingtab.c.in
symm/hash.h
symm/hmac-def.h
symm/mgf-def.h
symm/mode.c.in
symm/mode.h.in
symm/modes.am.in
symm/multigen
symm/ofb-def.h