HomeFreeBSD

Test the AES-CCM test vectors from the NIST Known Answer Tests.

Description

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

Details

Provenance
jhbAuthored on
Reviewer
ngie
Differential Revision
D19978: Test the AES-CCM test vectors from the NIST Known Answer Tests.
Parents
rS346616: Run the plain SHA digest tests from NIST.
Branches
Unknown
Tags
Unknown