diff options
author | Jussi Kivilinna <jussi.kivilinna@mbnet.fi> | 2012-12-28 05:05:04 -0500 |
---|---|---|
committer | Steffen Klassert <steffen.klassert@secunet.com> | 2013-01-08 01:04:47 -0500 |
commit | 0024dc5371b41abb30217bbcaa708d35f49fe273 (patch) | |
tree | 9a751c7a2dd61716e81fded1afebc8f2acffbabd | |
parent | 69d3150cfc2075d1693d17dc711de61bf4e4a6c4 (diff) |
crypto: aesni-intel - remove rfc3686(ctr(aes)), utilize rfc3686 from ctr-module instead
rfc3686 in CTR module is now able of using asynchronous ctr(aes) from
aesni-intel, so rfc3686(ctr(aes)) in aesni-intel is no longer needed.
Signed-off-by: Jussi Kivilinna <jussi.kivilinna@mbnet.fi>
Acked-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
-rw-r--r-- | arch/x86/crypto/aesni-intel_glue.c | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/arch/x86/crypto/aesni-intel_glue.c b/arch/x86/crypto/aesni-intel_glue.c index 1b9c22bea8a7..a0795da22c02 100644 --- a/arch/x86/crypto/aesni-intel_glue.c +++ b/arch/x86/crypto/aesni-intel_glue.c | |||
@@ -40,10 +40,6 @@ | |||
40 | #include <linux/workqueue.h> | 40 | #include <linux/workqueue.h> |
41 | #include <linux/spinlock.h> | 41 | #include <linux/spinlock.h> |
42 | 42 | ||
43 | #if defined(CONFIG_CRYPTO_CTR) || defined(CONFIG_CRYPTO_CTR_MODULE) | ||
44 | #define HAS_CTR | ||
45 | #endif | ||
46 | |||
47 | #if defined(CONFIG_CRYPTO_PCBC) || defined(CONFIG_CRYPTO_PCBC_MODULE) | 43 | #if defined(CONFIG_CRYPTO_PCBC) || defined(CONFIG_CRYPTO_PCBC_MODULE) |
48 | #define HAS_PCBC | 44 | #define HAS_PCBC |
49 | #endif | 45 | #endif |
@@ -395,12 +391,6 @@ static int ablk_ctr_init(struct crypto_tfm *tfm) | |||
395 | return ablk_init_common(tfm, "__driver-ctr-aes-aesni"); | 391 | return ablk_init_common(tfm, "__driver-ctr-aes-aesni"); |
396 | } | 392 | } |
397 | 393 | ||
398 | #ifdef HAS_CTR | ||
399 | static int ablk_rfc3686_ctr_init(struct crypto_tfm *tfm) | ||
400 | { | ||
401 | return ablk_init_common(tfm, "rfc3686(__driver-ctr-aes-aesni)"); | ||
402 | } | ||
403 | #endif | ||
404 | #endif | 394 | #endif |
405 | 395 | ||
406 | #ifdef HAS_PCBC | 396 | #ifdef HAS_PCBC |
@@ -1158,33 +1148,6 @@ static struct crypto_alg aesni_algs[] = { { | |||
1158 | .maxauthsize = 16, | 1148 | .maxauthsize = 16, |
1159 | }, | 1149 | }, |
1160 | }, | 1150 | }, |
1161 | #ifdef HAS_CTR | ||
1162 | }, { | ||
1163 | .cra_name = "rfc3686(ctr(aes))", | ||
1164 | .cra_driver_name = "rfc3686-ctr-aes-aesni", | ||
1165 | .cra_priority = 400, | ||
1166 | .cra_flags = CRYPTO_ALG_TYPE_ABLKCIPHER | CRYPTO_ALG_ASYNC, | ||
1167 | .cra_blocksize = 1, | ||
1168 | .cra_ctxsize = sizeof(struct async_helper_ctx), | ||
1169 | .cra_alignmask = 0, | ||
1170 | .cra_type = &crypto_ablkcipher_type, | ||
1171 | .cra_module = THIS_MODULE, | ||
1172 | .cra_init = ablk_rfc3686_ctr_init, | ||
1173 | .cra_exit = ablk_exit, | ||
1174 | .cra_u = { | ||
1175 | .ablkcipher = { | ||
1176 | .min_keysize = AES_MIN_KEY_SIZE + | ||
1177 | CTR_RFC3686_NONCE_SIZE, | ||
1178 | .max_keysize = AES_MAX_KEY_SIZE + | ||
1179 | CTR_RFC3686_NONCE_SIZE, | ||
1180 | .ivsize = CTR_RFC3686_IV_SIZE, | ||
1181 | .setkey = ablk_set_key, | ||
1182 | .encrypt = ablk_encrypt, | ||
1183 | .decrypt = ablk_decrypt, | ||
1184 | .geniv = "seqiv", | ||
1185 | }, | ||
1186 | }, | ||
1187 | #endif | ||
1188 | #endif | 1151 | #endif |
1189 | #ifdef HAS_PCBC | 1152 | #ifdef HAS_PCBC |
1190 | }, { | 1153 | }, { |