]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[CRYPTO] tcrypt: Make gcm available as a standalone test
authorHerbert Xu <herbert@gondor.apana.org.au>
Sun, 2 Dec 2007 03:55:47 +0000 (14:55 +1100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 10 Jan 2008 21:16:30 +0000 (08:16 +1100)
Currently the gcm(aes) tests have to be taken together with all other
ciphers.  This patch makes it available by itself at number 35.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/tcrypt.c

index 387d1053f11a0edaa8bdcca2baaf28fbd0b93ca5..df93595c2c6867b22efa104871465aa18576dda1 100644 (file)
@@ -1548,6 +1548,13 @@ static void do_test(void)
                            SALSA20_STREAM_ENC_TEST_VECTORS);
                break;
 
+       case 35:
+               test_aead("gcm(aes)", ENCRYPT, aes_gcm_enc_tv_template,
+                         AES_GCM_ENC_TEST_VECTORS);
+               test_aead("gcm(aes)", DECRYPT, aes_gcm_dec_tv_template,
+                         AES_GCM_DEC_TEST_VECTORS);
+               break;
+
        case 100:
                test_hash("hmac(md5)", hmac_md5_tv_template,
                          HMAC_MD5_TEST_VECTORS);