freebsd-dev/tests/sys/opencrypto
John Baldwin 151f0ca897 Test the AES-CCM test vectors from the NIST Known Answer Tests.
The CCM test vectors use a slightly different file format in that
there are global key-value pairs as well as section key-value pairs
that need to be used in each test.  In addition, the sections can set
multiple key-value pairs in the section name.  The CCM KAT parser
class is an iterator that returns a dictionary once per test where the
dictionary contains all of the relevant key-value pairs for a given
test (global, section name, section, test-specific).

Note that all of the CCM decrypt tests use nonce and tag lengths that
are not supported by OCF (OCF only supports a 12 byte nonce and 16
byte tag), so none of the decryption vectors are actually tested.

Reviewed by:	ngie
MFC after:	1 month
Sponsored by:	Chelsio Communications
Differential Revision:	https://reviews.freebsd.org/D19978
2019-04-24 00:23:06 +00:00
..
blake2_test.c
blake2-kat.h
cryptodev.py Test the AES-CCM test vectors from the NIST Known Answer Tests. 2019-04-24 00:23:06 +00:00
cryptodevh.py
cryptotest.py Test the AES-CCM test vectors from the NIST Known Answer Tests. 2019-04-24 00:23:06 +00:00
dpkt.py
Makefile Specify using Python2, these .py files have not been converted to use Python3 2019-04-20 07:32:29 +00:00
Makefile.depend
poly1305_test.c
runtests.sh Specify using Python2, these .py files have not been converted to use Python3 2019-04-20 07:32:29 +00:00