aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Siewior <sebastian@breakpoint.cc>2007-10-05 04:52:01 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-10-10 19:55:49 -0400
commitf8246af005d56b73f4f04304fc5b6fd9878af4ef (patch)
treed935971920749a7e99b7224e413b110a3ba07b10
parentc5a511f1cd6f90a98ad11dd97e2313c7c787deb2 (diff)
[CRYPTO] aes: Rename aes to aes-generic
Loading the crypto algorithm by the alias instead of by module directly has the advantage that all possible implementations of this algorithm are loaded automatically and the crypto API can choose the best one depending on its priority. Additionally it ensures that the generic implementation as well as the HW driver (if available) is loaded in case the HW driver needs the generic version as fallback in corner cases. Signed-off-by: Sebastian Siewior <sebastian@breakpoint.cc> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
-rw-r--r--arch/s390/crypto/aes_s390.c2
-rw-r--r--crypto/Makefile2
-rw-r--r--crypto/aes_generic.c (renamed from crypto/aes.c)2
-rw-r--r--drivers/crypto/geode-aes.c1
-rw-r--r--drivers/crypto/padlock-aes.c4
5 files changed, 6 insertions, 5 deletions
diff --git a/arch/s390/crypto/aes_s390.c b/arch/s390/crypto/aes_s390.c
index 3660ca6a3306..512669691ad0 100644
--- a/arch/s390/crypto/aes_s390.c
+++ b/arch/s390/crypto/aes_s390.c
@@ -7,7 +7,7 @@
7 * Copyright IBM Corp. 2005,2007 7 * Copyright IBM Corp. 2005,2007
8 * Author(s): Jan Glauber (jang@de.ibm.com) 8 * Author(s): Jan Glauber (jang@de.ibm.com)
9 * 9 *
10 * Derived from "crypto/aes.c" 10 * Derived from "crypto/aes_generic.c"
11 * 11 *
12 * This program is free software; you can redistribute it and/or modify it 12 * This program is free software; you can redistribute it and/or modify it
13 * under the terms of the GNU General Public License as published by the Free 13 * under the terms of the GNU General Public License as published by the Free
diff --git a/crypto/Makefile b/crypto/Makefile
index a624cbc188fc..b6ef5e4f1ab4 100644
--- a/crypto/Makefile
+++ b/crypto/Makefile
@@ -39,7 +39,7 @@ obj-$(CONFIG_CRYPTO_BLOWFISH) += blowfish.o
39obj-$(CONFIG_CRYPTO_TWOFISH) += twofish.o 39obj-$(CONFIG_CRYPTO_TWOFISH) += twofish.o
40obj-$(CONFIG_CRYPTO_TWOFISH_COMMON) += twofish_common.o 40obj-$(CONFIG_CRYPTO_TWOFISH_COMMON) += twofish_common.o
41obj-$(CONFIG_CRYPTO_SERPENT) += serpent.o 41obj-$(CONFIG_CRYPTO_SERPENT) += serpent.o
42obj-$(CONFIG_CRYPTO_AES) += aes.o 42obj-$(CONFIG_CRYPTO_AES) += aes_generic.o
43obj-$(CONFIG_CRYPTO_CAMELLIA) += camellia.o 43obj-$(CONFIG_CRYPTO_CAMELLIA) += camellia.o
44obj-$(CONFIG_CRYPTO_CAST5) += cast5.o 44obj-$(CONFIG_CRYPTO_CAST5) += cast5.o
45obj-$(CONFIG_CRYPTO_CAST6) += cast6.o 45obj-$(CONFIG_CRYPTO_CAST6) += cast6.o
diff --git a/crypto/aes.c b/crypto/aes_generic.c
index e2440773878c..9401dca85e87 100644
--- a/crypto/aes.c
+++ b/crypto/aes_generic.c
@@ -453,4 +453,4 @@ module_exit(aes_fini);
453 453
454MODULE_DESCRIPTION("Rijndael (AES) Cipher Algorithm"); 454MODULE_DESCRIPTION("Rijndael (AES) Cipher Algorithm");
455MODULE_LICENSE("Dual BSD/GPL"); 455MODULE_LICENSE("Dual BSD/GPL");
456 456MODULE_ALIAS("aes");
diff --git a/drivers/crypto/geode-aes.c b/drivers/crypto/geode-aes.c
index 6a86958b577f..f9a34abbf4fa 100644
--- a/drivers/crypto/geode-aes.c
+++ b/drivers/crypto/geode-aes.c
@@ -473,6 +473,7 @@ geode_aes_exit(void)
473MODULE_AUTHOR("Advanced Micro Devices, Inc."); 473MODULE_AUTHOR("Advanced Micro Devices, Inc.");
474MODULE_DESCRIPTION("Geode LX Hardware AES driver"); 474MODULE_DESCRIPTION("Geode LX Hardware AES driver");
475MODULE_LICENSE("GPL"); 475MODULE_LICENSE("GPL");
476MODULE_ALIAS("aes");
476 477
477module_init(geode_aes_init); 478module_init(geode_aes_init);
478module_exit(geode_aes_exit); 479module_exit(geode_aes_exit);
diff --git a/drivers/crypto/padlock-aes.c b/drivers/crypto/padlock-aes.c
index d4501dc7e650..abbcff0762b1 100644
--- a/drivers/crypto/padlock-aes.c
+++ b/drivers/crypto/padlock-aes.c
@@ -5,7 +5,7 @@
5 * 5 *
6 * Copyright (c) 2004 Michal Ludvig <michal@logix.cz> 6 * Copyright (c) 2004 Michal Ludvig <michal@logix.cz>
7 * 7 *
8 * Key expansion routine taken from crypto/aes.c 8 * Key expansion routine taken from crypto/aes_generic.c
9 * 9 *
10 * This program is free software; you can redistribute it and/or modify 10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by 11 * it under the terms of the GNU General Public License as published by
@@ -660,4 +660,4 @@ MODULE_DESCRIPTION("VIA PadLock AES algorithm support");
660MODULE_LICENSE("GPL"); 660MODULE_LICENSE("GPL");
661MODULE_AUTHOR("Michal Ludvig"); 661MODULE_AUTHOR("Michal Ludvig");
662 662
663MODULE_ALIAS("aes-padlock"); 663MODULE_ALIAS("aes");