diff options
author | Joachim Fritschi <jfritschi@freenet.de> | 2006-06-20 06:37:23 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2006-09-20 21:16:27 -0400 |
commit | 2729bb427f686e47970406d6bde6b11892885f29 (patch) | |
tree | 6c17bab6970fc4bcc92c0de76d174e35d8043844 /crypto/Kconfig | |
parent | 799111020c66c41aef621a3b53ad112543754124 (diff) |
[CRYPTO] twofish: Split out common c code
This patch splits up the twofish crypto routine into a common part ( key
setup ) which will be uses by all twofish crypto modules ( generic-c , i586
assembler and x86_64 assembler ) and generic-c part. It also creates a new
header file which will be used by all 3 modules.
This eliminates all code duplication.
Correctness was verified with the tcrypt module and automated test scripts.
Signed-off-by: Joachim Fritschi <jfritschi@freenet.de>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/Kconfig')
-rw-r--r-- | crypto/Kconfig | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/crypto/Kconfig b/crypto/Kconfig index ba133d55704..5472f693e6e 100644 --- a/crypto/Kconfig +++ b/crypto/Kconfig | |||
@@ -131,6 +131,7 @@ config CRYPTO_BLOWFISH | |||
131 | config CRYPTO_TWOFISH | 131 | config CRYPTO_TWOFISH |
132 | tristate "Twofish cipher algorithm" | 132 | tristate "Twofish cipher algorithm" |
133 | depends on CRYPTO | 133 | depends on CRYPTO |
134 | select CRYPTO_TWOFISH_COMMON | ||
134 | help | 135 | help |
135 | Twofish cipher algorithm. | 136 | Twofish cipher algorithm. |
136 | 137 | ||
@@ -142,6 +143,13 @@ config CRYPTO_TWOFISH | |||
142 | See also: | 143 | See also: |
143 | <http://www.schneier.com/twofish.html> | 144 | <http://www.schneier.com/twofish.html> |
144 | 145 | ||
146 | config CRYPTO_TWOFISH_COMMON | ||
147 | tristate | ||
148 | depends on CRYPTO | ||
149 | help | ||
150 | Common parts of the Twofish cipher algorithm shared by the | ||
151 | generic c and the assembler implementations. | ||
152 | |||
145 | config CRYPTO_SERPENT | 153 | config CRYPTO_SERPENT |
146 | tristate "Serpent cipher algorithm" | 154 | tristate "Serpent cipher algorithm" |
147 | depends on CRYPTO | 155 | depends on CRYPTO |