diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2007-12-02 14:55:47 +1100 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2008-01-11 08:16:30 +1100 |
commit | 4e3b67eaaf29d677b00b2f8efdd2b96e538fca99 (patch) | |
tree | 6a0f71498a4fc17483087e5a04a290d55857b4f7 /crypto/tcrypt.c | |
parent | 7e676d8b0348623cec6ea62e8d5edd1af2abd8b0 (diff) | |
download | linux-crypto-4e3b67eaaf29d677b00b2f8efdd2b96e538fca99.tar.gz linux-crypto-4e3b67eaaf29d677b00b2f8efdd2b96e538fca99.zip |
[CRYPTO] tcrypt: Make gcm available as a standalone test
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>
Diffstat (limited to '')
-rw-r--r-- | crypto/tcrypt.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/crypto/tcrypt.c b/crypto/tcrypt.c index 387d1053..df93595c 100644 --- a/crypto/tcrypt.c +++ b/crypto/tcrypt.c @@ -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); |