Add CMAC selftest.
* cipher/mac-cmac.c (check_one_mac): New. (selftests_cmac_3des): New. (selftests_cmac_aes): New. (cmac_selftest): New. (cmac_ops): Add cmac_selftest. * src/fips.c (run_mac_selftests): Add GCRY_MAC_CMAC_3DES and GCRY_MAC_CMAC_AES.
This is an attempt to merge RedHat's
libgcrypt-1.8.3-cmac-selftest.patch
Test vectors are from tests/basic.c, which includes ones in RedHat.