HomeFreeBSD

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

Description

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.

Details

Provenance
jhbAuthored on
Parents
rS348202: MFC 346649: Don't panic for empty CCM requests.
Branches
Unknown
Tags
Unknown