Skip to content

Commit f8246af

Browse files
sebastianasDavid S. Miller
authored andcommitted
[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>
1 parent c5a511f commit f8246af

5 files changed

Lines changed: 6 additions & 5 deletions

File tree

‎arch/s390/crypto/aes_s390.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Copyright IBM Corp. 2005,2007
88
* Author(s): Jan Glauber (jang@de.ibm.com)
99
*
10-
* Derived from "crypto/aes.c"
10+
* Derived from "crypto/aes_generic.c"
1111
*
1212
* This program is free software; you can redistribute it and/or modify it
1313
* under the terms of the GNU General Public License as published by the Free

‎crypto/Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ obj-$(CONFIG_CRYPTO_BLOWFISH) += blowfish.o
3939
obj-$(CONFIG_CRYPTO_TWOFISH) += twofish.o
4040
obj-$(CONFIG_CRYPTO_TWOFISH_COMMON) += twofish_common.o
4141
obj-$(CONFIG_CRYPTO_SERPENT) += serpent.o
42-
obj-$(CONFIG_CRYPTO_AES) += aes.o
42+
obj-$(CONFIG_CRYPTO_AES) += aes_generic.o
4343
obj-$(CONFIG_CRYPTO_CAMELLIA) += camellia.o
4444
obj-$(CONFIG_CRYPTO_CAST5) += cast5.o
4545
obj-$(CONFIG_CRYPTO_CAST6) += cast6.o

crypto/aes.c renamed to crypto/aes_generic.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,4 +453,4 @@ module_exit(aes_fini);
453453

454454
MODULE_DESCRIPTION("Rijndael (AES) Cipher Algorithm");
455455
MODULE_LICENSE("Dual BSD/GPL");
456-
456+
MODULE_ALIAS("aes");

‎drivers/crypto/geode-aes.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -473,6 +473,7 @@ geode_aes_exit(void)
473473
MODULE_AUTHOR("Advanced Micro Devices, Inc.");
474474
MODULE_DESCRIPTION("Geode LX Hardware AES driver");
475475
MODULE_LICENSE("GPL");
476+
MODULE_ALIAS("aes");
476477

477478
module_init(geode_aes_init);
478479
module_exit(geode_aes_exit);

‎drivers/crypto/padlock-aes.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*
66
* Copyright (c) 2004 Michal Ludvig <michal@logix.cz>
77
*
8-
* Key expansion routine taken from crypto/aes.c
8+
* Key expansion routine taken from crypto/aes_generic.c
99
*
1010
* This program is free software; you can redistribute it and/or modify
1111
* it under the terms of the GNU General Public License as published by
@@ -660,4 +660,4 @@ MODULE_DESCRIPTION("VIA PadLock AES algorithm support");
660660
MODULE_LICENSE("GPL");
661661
MODULE_AUTHOR("Michal Ludvig");
662662

663-
MODULE_ALIAS("aes-padlock");
663+
MODULE_ALIAS("aes");

0 commit comments

Comments
 (0)