Add GMAC to MAC API
authorJussi Kivilinna <jussi.kivilinna@iki.fi>
Thu, 21 Nov 2013 19:34:21 +0000 (21:34 +0200)
committerJussi Kivilinna <jussi.kivilinna@iki.fi>
Thu, 21 Nov 2013 19:34:21 +0000 (21:34 +0200)
commita34448c929b13bfb7b66d69169c89e7319a18b31
treeb53d13266af4d87a0fda5353333f957e3fd0c0e1
parentdbfa651618693da7ea73b4d2d00d4efd411bfb46
Add GMAC to MAC API

* cipher/Makefile.am: Add 'mac-gmac.c'.
* cipher/mac-gmac.c: New.
* cipher/mac-internal.h (gcry_mac_handle): Add 'u.gcm'.
(_gcry_mac_type_spec_gmac_aes, _gcry_mac_type_spec_gmac_twofish)
(_gcry_mac_type_spec_gmac_serpent, _gcry_mac_type_spec_gmac_seed)
(_gcry_mac_type_spec_gmac_camellia): New externs.
* cipher/mac.c (mac_list): Add GMAC specifications.
* doc/gcrypt.texi: Add mention of GMAC.
* src/gcrypt.h.in (gcry_mac_algos): Add GCM algorithms.
* tests/basic.c (check_one_mac): Add support for MAC IVs.
(check_mac): Add support for MAC IVs and add GMAC test vectors.
* tests/bench-slope.c (mac_bench): Iterate algorithm numbers to 499.
* tests/benchmark.c (mac_bench): Iterate algorithm numbers to 499.
--

Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>
cipher/Makefile.am
cipher/mac-gmac.c [new file with mode: 0644]
cipher/mac-internal.h
cipher/mac.c
doc/gcrypt.texi
src/gcrypt.h.in
tests/basic.c
tests/bench-slope.c
tests/benchmark.c