[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>
This commit is contained in:
@@ -1548,6 +1548,13 @@ static void do_test(void)
|
|||||||
SALSA20_STREAM_ENC_TEST_VECTORS);
|
SALSA20_STREAM_ENC_TEST_VECTORS);
|
||||||
break;
|
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:
|
case 100:
|
||||||
test_hash("hmac(md5)", hmac_md5_tv_template,
|
test_hash("hmac(md5)", hmac_md5_tv_template,
|
||||||
HMAC_MD5_TEST_VECTORS);
|
HMAC_MD5_TEST_VECTORS);
|
||||||
|
Reference in New Issue
Block a user