Skip to content

Commit c5a511f

Browse files
sebastianasDavid S. Miller
authored andcommitted
[CRYPTO] des: Rename des to des-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. Signed-off-by: Sebastian Siewior <sebastian@breakpoint.cc> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
1 parent 7607bd8 commit c5a511f

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

‎crypto/Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ obj-$(CONFIG_CRYPTO_PCBC) += pcbc.o
3333
obj-$(CONFIG_CRYPTO_LRW) += lrw.o
3434
obj-$(CONFIG_CRYPTO_XTS) += xts.o
3535
obj-$(CONFIG_CRYPTO_CRYPTD) += cryptd.o
36-
obj-$(CONFIG_CRYPTO_DES) += des.o
36+
obj-$(CONFIG_CRYPTO_DES) += des_generic.o
3737
obj-$(CONFIG_CRYPTO_FCRYPT) += fcrypt.o
3838
obj-$(CONFIG_CRYPTO_BLOWFISH) += blowfish.o
3939
obj-$(CONFIG_CRYPTO_TWOFISH) += twofish.o

crypto/des.c renamed to crypto/des_generic.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1009,3 +1009,4 @@ module_exit(fini);
10091009
MODULE_LICENSE("GPL");
10101010
MODULE_DESCRIPTION("DES & Triple DES EDE Cipher Algorithms");
10111011
MODULE_AUTHOR("Dag Arne Osvik <da@osvik.no>");
1012+
MODULE_ALIAS("des");

0 commit comments

Comments
 (0)