]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC 346617: Test the AES-CCM test vectors from the NIST Known Answer Tests.
authorJohn Baldwin <jhb@FreeBSD.org>
Thu, 23 May 2019 21:57:58 +0000 (21:57 +0000)
committerJohn Baldwin <jhb@FreeBSD.org>
Thu, 23 May 2019 21:57:58 +0000 (21:57 +0000)
commit51850e1e908ad296149201ab319ad6e3bdba77d1
tree55c6d9a5f969add55af664db678e787cb5abe5f9
parentb8ebc618034cda17752e3ac576b770d0d7b79544
MFC 346617: 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.
tests/sys/opencrypto/cryptodev.py
tests/sys/opencrypto/cryptotest.py