diff options
| author | Ingo Molnar <mingo@kernel.org> | 2013-12-17 09:27:08 -0500 |
|---|---|---|
| committer | Ingo Molnar <mingo@kernel.org> | 2013-12-17 09:27:08 -0500 |
| commit | bb799d3b980eb803ca2da4a4eefbd9308f8d988a (patch) | |
| tree | 69fbe0cd6d47b23a50f5e1d87bf7489532fae149 /crypto/ablkcipher.c | |
| parent | 919fc6e34831d1c2b58bfb5ae261dc3facc9b269 (diff) | |
| parent | 319e2e3f63c348a9b66db4667efa73178e18b17d (diff) | |
Merge tag 'v3.13-rc4' into core/locking
Merge Linux 3.13-rc4, to refresh this rather old tree with the latest fixes.
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'crypto/ablkcipher.c')
| -rw-r--r-- | crypto/ablkcipher.c | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/crypto/ablkcipher.c b/crypto/ablkcipher.c index 7d4a8d28277e..40886c489903 100644 --- a/crypto/ablkcipher.c +++ b/crypto/ablkcipher.c | |||
| @@ -16,9 +16,7 @@ | |||
| 16 | #include <crypto/internal/skcipher.h> | 16 | #include <crypto/internal/skcipher.h> |
| 17 | #include <linux/cpumask.h> | 17 | #include <linux/cpumask.h> |
| 18 | #include <linux/err.h> | 18 | #include <linux/err.h> |
| 19 | #include <linux/init.h> | ||
| 20 | #include <linux/kernel.h> | 19 | #include <linux/kernel.h> |
| 21 | #include <linux/module.h> | ||
| 22 | #include <linux/rtnetlink.h> | 20 | #include <linux/rtnetlink.h> |
| 23 | #include <linux/sched.h> | 21 | #include <linux/sched.h> |
| 24 | #include <linux/slab.h> | 22 | #include <linux/slab.h> |
| @@ -30,8 +28,6 @@ | |||
| 30 | 28 | ||
| 31 | #include "internal.h" | 29 | #include "internal.h" |
| 32 | 30 | ||
| 33 | static const char *skcipher_default_geniv __read_mostly; | ||
| 34 | |||
| 35 | struct ablkcipher_buffer { | 31 | struct ablkcipher_buffer { |
| 36 | struct list_head entry; | 32 | struct list_head entry; |
| 37 | struct scatter_walk dst; | 33 | struct scatter_walk dst; |
| @@ -527,8 +523,7 @@ const char *crypto_default_geniv(const struct crypto_alg *alg) | |||
| 527 | alg->cra_blocksize) | 523 | alg->cra_blocksize) |
| 528 | return "chainiv"; | 524 | return "chainiv"; |
| 529 | 525 | ||
| 530 | return alg->cra_flags & CRYPTO_ALG_ASYNC ? | 526 | return "eseqiv"; |
| 531 | "eseqiv" : skcipher_default_geniv; | ||
| 532 | } | 527 | } |
| 533 | 528 | ||
| 534 | static int crypto_givcipher_default(struct crypto_alg *alg, u32 type, u32 mask) | 529 | static int crypto_givcipher_default(struct crypto_alg *alg, u32 type, u32 mask) |
| @@ -709,17 +704,3 @@ err: | |||
| 709 | return ERR_PTR(err); | 704 | return ERR_PTR(err); |
| 710 | } | 705 | } |
| 711 | EXPORT_SYMBOL_GPL(crypto_alloc_ablkcipher); | 706 | EXPORT_SYMBOL_GPL(crypto_alloc_ablkcipher); |
| 712 | |||
| 713 | static int __init skcipher_module_init(void) | ||
| 714 | { | ||
| 715 | skcipher_default_geniv = num_possible_cpus() > 1 ? | ||
| 716 | "eseqiv" : "chainiv"; | ||
| 717 | return 0; | ||
| 718 | } | ||
| 719 | |||
| 720 | static void skcipher_module_exit(void) | ||
| 721 | { | ||
| 722 | } | ||
| 723 | |||
| 724 | module_init(skcipher_module_init); | ||
| 725 | module_exit(skcipher_module_exit); | ||
