diff options
author | Mikko Herranen <mh1@iki.fi> | 2007-11-26 09:24:11 -0500 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2008-01-10 16:16:23 -0500 |
commit | 28db8e3e38e593d22e2c69942bb1ca7be2a35f05 (patch) | |
tree | 65ef9ee8544001278a71340f44f9a3227b54a4d8 /crypto/tcrypt.c | |
parent | e3a4ea4fd2e5f154ae9233f1ce30e7564e5cbcfc (diff) |
[CRYPTO] gcm: New algorithm
Add GCM/GMAC support to cryptoapi.
GCM (Galois/Counter Mode) is an AEAD mode of operations for any block cipher
with a block size of 16. The typical example is AES-GCM.
Signed-off-by: Mikko Herranen <mh1@iki.fi>
Reviewed-by: Mika Kukkonen <mika.kukkonen@nsn.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/tcrypt.c')
-rw-r--r-- | crypto/tcrypt.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/crypto/tcrypt.c b/crypto/tcrypt.c index b343d81d20c9..1e12b86bc951 100644 --- a/crypto/tcrypt.c +++ b/crypto/tcrypt.c | |||
@@ -13,6 +13,7 @@ | |||
13 | * Software Foundation; either version 2 of the License, or (at your option) | 13 | * Software Foundation; either version 2 of the License, or (at your option) |
14 | * any later version. | 14 | * any later version. |
15 | * | 15 | * |
16 | * 2007-11-13 Added GCM tests | ||
16 | * 2007-11-13 Added AEAD support | 17 | * 2007-11-13 Added AEAD support |
17 | * 2007-11-06 Added SHA-224 and SHA-224-HMAC tests | 18 | * 2007-11-06 Added SHA-224 and SHA-224-HMAC tests |
18 | * 2006-12-07 Added SHA384 HMAC and SHA512 HMAC tests | 19 | * 2006-12-07 Added SHA384 HMAC and SHA512 HMAC tests |
@@ -1208,6 +1209,10 @@ static void do_test(void) | |||
1208 | AES_CTR_ENC_TEST_VECTORS); | 1209 | AES_CTR_ENC_TEST_VECTORS); |
1209 | test_cipher("ctr(aes,4,8,4)", DECRYPT, aes_ctr_dec_tv_template, | 1210 | test_cipher("ctr(aes,4,8,4)", DECRYPT, aes_ctr_dec_tv_template, |
1210 | AES_CTR_DEC_TEST_VECTORS); | 1211 | AES_CTR_DEC_TEST_VECTORS); |
1212 | test_aead("gcm(aes)", ENCRYPT, aes_gcm_enc_tv_template, | ||
1213 | AES_GCM_ENC_TEST_VECTORS); | ||
1214 | test_aead("gcm(aes)", DECRYPT, aes_gcm_dec_tv_template, | ||
1215 | AES_GCM_DEC_TEST_VECTORS); | ||
1211 | 1216 | ||
1212 | //CAST5 | 1217 | //CAST5 |
1213 | test_cipher("ecb(cast5)", ENCRYPT, cast5_enc_tv_template, | 1218 | test_cipher("ecb(cast5)", ENCRYPT, cast5_enc_tv_template, |