opnsense-src/tests/sys/opencrypto
John Baldwin 668770dc7d crypto: Test all of the AES-CCM KAT vectors.
Previously, only test vectors which used the default nonce and tag
sizes (12 and 16, respectively) were tested.  This now tests all of
the vectors.  This exposed some additional issues around requests with
an empty payload (which wasn't supported) and an empty AAD (which
falls back to CIOCCRYPT instead of CIOCCRYPTAEAD).

- Make use of the 'ivlen' and 'maclen' fields for CIOGSESSION2 to
  test AES-CCM vectors with non-default nonce and tag lengths.

- Permit requests with an empty payload.

- Permit an input MAC for requests without AAD.

Reviewed by:	markj
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D32121
2021-10-06 14:08:48 -07:00
..
blake2-kat.h Import Blake2 algorithms (blake2b, blake2s) from libb2 2018-03-21 16:18:14 +00:00
blake2_test.c Remove uses of CRIOGET in OCF tests after r368005. 2020-11-25 01:31:00 +00:00
cryptodev.py crypto: Test all of the AES-CCM KAT vectors. 2021-10-06 14:08:48 -07:00
cryptodevh.py cdefs.h: Remove __GNUCLIKE___OFFSETOF, it's unused 2021-05-06 16:34:55 -06:00
cryptotest.py crypto: Test all of the AES-CCM KAT vectors. 2021-10-06 14:08:48 -07:00
Makefile Do a sweep and remove most WARNS=6 settings 2020-10-01 01:10:51 +00:00
Makefile.depend DIRDEPS_BUILD: Connect MK_TESTS. 2016-03-09 22:46:01 +00:00
poly1305_test.c Remove uses of CRIOGET in OCF tests after r368005. 2020-11-25 01:31:00 +00:00
runtests.sh ossl: port to arm64 2020-12-04 21:12:17 +00:00