• Jarod Wilson's avatar
    crypto: testmgr - Add self-tests for rfc4309(ccm(aes)) · 5d667322
    Jarod Wilson authored
    Add an array of encryption and decryption + verification self-tests
    for rfc4309(ccm(aes)).
    
    Test vectors all come from sample FIPS CAVS files provided to
    Red Hat by a testing lab. Unfortunately, all the published sample
    vectors in RFC 3610 and NIST Special Publication 800-38C contain nonce
    lengths that the kernel's rfc4309 implementation doesn't support, so
    while using some public domain vectors would have been preferred, its
    not possible at this time.
    Signed-off-by: default avatarJarod Wilson <jarod@redhat.com>
    Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
    5d667322
testmgr.h 301 KB