aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2007-11-27 06:48:27 -0500
committerHerbert Xu <herbert@gondor.apana.org.au>2008-01-10 16:16:41 -0500
commit653ebd9c8510a7d647ed23e66e1338f848ebdbab (patch)
tree99e1d59a0a944807bf10b59f874045ac8067ba68
parent2589469d7bc69bdfad4e05d88a0d2748f92ef0f3 (diff)
[CRYPTO] blkcipher: Merge ablkcipher and blkcipher into one option/module
With the impending addition of the givcipher type, both blkcipher and ablkcipher algorithms will use it to create givcipher objects. As such it no longer makes sense to split the system between ablkcipher and blkcipher. In particular, both ablkcipher.c and blkcipher.c would need to use the givcipher type which has to reside in ablkcipher.c since it shares much code with it. This patch merges the two Kconfig options as well as the modules into one. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
-rw-r--r--crypto/Kconfig6
-rw-r--r--crypto/Makefile6
-rw-r--r--drivers/crypto/Kconfig2
3 files changed, 6 insertions, 8 deletions
diff --git a/crypto/Kconfig b/crypto/Kconfig
index 1eb4bcdb344f..c4b6c9125582 100644
--- a/crypto/Kconfig
+++ b/crypto/Kconfig
@@ -24,10 +24,6 @@ config CRYPTO_ALGAPI
24 help 24 help
25 This option provides the API for cryptographic algorithms. 25 This option provides the API for cryptographic algorithms.
26 26
27config CRYPTO_ABLKCIPHER
28 tristate
29 select CRYPTO_BLKCIPHER
30
31config CRYPTO_AEAD 27config CRYPTO_AEAD
32 tristate 28 tristate
33 select CRYPTO_ALGAPI 29 select CRYPTO_ALGAPI
@@ -217,7 +213,7 @@ config CRYPTO_GCM
217 213
218config CRYPTO_CRYPTD 214config CRYPTO_CRYPTD
219 tristate "Software async crypto daemon" 215 tristate "Software async crypto daemon"
220 select CRYPTO_ABLKCIPHER 216 select CRYPTO_BLKCIPHER
221 select CRYPTO_MANAGER 217 select CRYPTO_MANAGER
222 help 218 help
223 This is a generic software asynchronous crypto daemon that 219 This is a generic software asynchronous crypto daemon that
diff --git a/crypto/Makefile b/crypto/Makefile
index 83532ac8466d..2a1883fabf42 100644
--- a/crypto/Makefile
+++ b/crypto/Makefile
@@ -8,9 +8,11 @@ crypto_algapi-$(CONFIG_PROC_FS) += proc.o
8crypto_algapi-objs := algapi.o scatterwalk.o $(crypto_algapi-y) 8crypto_algapi-objs := algapi.o scatterwalk.o $(crypto_algapi-y)
9obj-$(CONFIG_CRYPTO_ALGAPI) += crypto_algapi.o 9obj-$(CONFIG_CRYPTO_ALGAPI) += crypto_algapi.o
10 10
11obj-$(CONFIG_CRYPTO_ABLKCIPHER) += ablkcipher.o
12obj-$(CONFIG_CRYPTO_AEAD) += aead.o 11obj-$(CONFIG_CRYPTO_AEAD) += aead.o
13obj-$(CONFIG_CRYPTO_BLKCIPHER) += blkcipher.o 12
13crypto_blkcipher-objs := ablkcipher.o
14crypto_blkcipher-objs += blkcipher.o
15obj-$(CONFIG_CRYPTO_BLKCIPHER) += crypto_blkcipher.o
14 16
15crypto_hash-objs := hash.o 17crypto_hash-objs := hash.o
16obj-$(CONFIG_CRYPTO_HASH) += crypto_hash.o 18obj-$(CONFIG_CRYPTO_HASH) += crypto_hash.o
diff --git a/drivers/crypto/Kconfig b/drivers/crypto/Kconfig
index d848e1b1624b..d8c70403b9da 100644
--- a/drivers/crypto/Kconfig
+++ b/drivers/crypto/Kconfig
@@ -87,7 +87,7 @@ config CRYPTO_DEV_HIFN_795X
87 tristate "Driver HIFN 795x crypto accelerator chips" 87 tristate "Driver HIFN 795x crypto accelerator chips"
88 select CRYPTO_DES 88 select CRYPTO_DES
89 select CRYPTO_ALGAPI 89 select CRYPTO_ALGAPI
90 select CRYPTO_ABLKCIPHER 90 select CRYPTO_BLKCIPHER
91 depends on PCI 91 depends on PCI
92 help 92 help
93 This option allows you to have support for HIFN 795x crypto adapters. 93 This option allows you to have support for HIFN 795x crypto adapters.