Skip to content

Commit 52ba867

Browse files
jkivilinherbertx
authored andcommitted
crypto: blowfish - split generic and common c code
Patch splits up the blowfish crypto routine into a common part (key setup) which will be used by blowfish crypto modules (x86_64 assembly and generic-c). Also fixes errors/warnings reported by checkpatch. Signed-off-by: Jussi Kivilinna <jussi.kivilinna@mbnet.fi> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
1 parent b2bac6a commit 52ba867

5 files changed

Lines changed: 448 additions & 355 deletions

File tree

‎crypto/Kconfig‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -600,6 +600,7 @@ config CRYPTO_ARC4
600600
config CRYPTO_BLOWFISH
601601
tristate "Blowfish cipher algorithm"
602602
select CRYPTO_ALGAPI
603+
select CRYPTO_BLOWFISH_COMMON
603604
help
604605
Blowfish cipher algorithm, by Bruce Schneier.
605606

@@ -610,6 +611,15 @@ config CRYPTO_BLOWFISH
610611
See also:
611612
<http://www.schneier.com/blowfish.html>
612613

614+
config CRYPTO_BLOWFISH_COMMON
615+
tristate
616+
help
617+
Common parts of the Blowfish cipher algorithm shared by the
618+
generic c and the assembler implementations.
619+
620+
See also:
621+
<http://www.schneier.com/blowfish.html>
622+
613623
config CRYPTO_CAMELLIA
614624
tristate "Camellia cipher algorithms"
615625
depends on CRYPTO

‎crypto/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ obj-$(CONFIG_CRYPTO_CRYPTD) += cryptd.o
6161
obj-$(CONFIG_CRYPTO_DES) += des_generic.o
6262
obj-$(CONFIG_CRYPTO_FCRYPT) += fcrypt.o
6363
obj-$(CONFIG_CRYPTO_BLOWFISH) += blowfish.o
64+
obj-$(CONFIG_CRYPTO_BLOWFISH_COMMON) += blowfish_common.o
6465
obj-$(CONFIG_CRYPTO_TWOFISH) += twofish_generic.o
6566
obj-$(CONFIG_CRYPTO_TWOFISH_COMMON) += twofish_common.o
6667
obj-$(CONFIG_CRYPTO_SERPENT) += serpent.o

0 commit comments

Comments
 (0)