diff options
author | Jarod Wilson <jarod@redhat.com> | 2009-05-04 07:23:40 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2009-06-02 00:04:36 -0400 |
commit | 5d667322a25ab4ecb91176db118fd663fee4da35 (patch) | |
tree | 0dea05fd2e59b7854370a871fb8f9bb30e5ed94e /crypto/tcrypt.c | |
parent | e44a1b44c3a9794236fe038b89a0fbef5adcd523 (diff) |
crypto: testmgr - Add self-tests for rfc4309(ccm(aes))
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: Jarod Wilson <jarod@redhat.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/tcrypt.c')
-rw-r--r-- | crypto/tcrypt.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crypto/tcrypt.c b/crypto/tcrypt.c index 50d1e35bbff4..0452036b1d45 100644 --- a/crypto/tcrypt.c +++ b/crypto/tcrypt.c | |||
@@ -667,6 +667,10 @@ static void do_test(int m) | |||
667 | tcrypt_test("zlib"); | 667 | tcrypt_test("zlib"); |
668 | break; | 668 | break; |
669 | 669 | ||
670 | case 45: | ||
671 | tcrypt_test("rfc4309(ccm(aes))"); | ||
672 | break; | ||
673 | |||
670 | case 100: | 674 | case 100: |
671 | tcrypt_test("hmac(md5)"); | 675 | tcrypt_test("hmac(md5)"); |
672 | break; | 676 | break; |