Home GnuPG

Add CMAC selftest.
9d9cebb61240Unpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

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.

Details

Provenance
gniibeAuthored on Jan 7 2021, 7:51 AM
Parents
rC6b6bfd57d0a6: hwf-arm: fix incorrect HWCAP2 for SHA1 and SHA2 on AArch32
Branches
Unknown
Tags
Unknown