aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/Kconfig
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2006-09-20 21:44:08 -0400
committerHerbert Xu <herbert@gondor.apana.org.au>2006-09-20 21:44:08 -0400
commitdb131ef9084110d9e82549c0a627e157e8bb99d7 (patch)
tree65330d3557a7dda47fa48876b7ea9cac1461301d /crypto/Kconfig
parent5cde0af2a9825dd1edaca233bd9590566579ef21 (diff)
[CRYPTO] cipher: Added block ciphers for CBC/ECB
This patch adds two block cipher algorithms, CBC and ECB. These are implemented as templates on top of existing single-block cipher algorithms. They invoke the single-block cipher through the new encrypt_one/decrypt_one interface. This also optimises the in-place encryption and decryption to remove the cost of an IV copy each round. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/Kconfig')
-rw-r--r--crypto/Kconfig17
1 files changed, 17 insertions, 0 deletions
diff --git a/crypto/Kconfig b/crypto/Kconfig
index 68790ad7308d..90d467c99c2c 100644
--- a/crypto/Kconfig
+++ b/crypto/Kconfig
@@ -123,6 +123,23 @@ config CRYPTO_TGR192
123 See also: 123 See also:
124 <http://www.cs.technion.ac.il/~biham/Reports/Tiger/>. 124 <http://www.cs.technion.ac.il/~biham/Reports/Tiger/>.
125 125
126config CRYPTO_ECB
127 tristate "ECB support"
128 select CRYPTO_BLKCIPHER
129 default m
130 help
131 ECB: Electronic CodeBook mode
132 This is the simplest block cipher algorithm. It simply encrypts
133 the input block by block.
134
135config CRYPTO_CBC
136 tristate "CBC support"
137 select CRYPTO_BLKCIPHER
138 default m
139 help
140 CBC: Cipher Block Chaining mode
141 This block cipher algorithm is required for IPSec.
142
126config CRYPTO_DES 143config CRYPTO_DES
127 tristate "DES and Triple DES EDE cipher algorithms" 144 tristate "DES and Triple DES EDE cipher algorithms"
128 select CRYPTO_ALGAPI 145 select CRYPTO_ALGAPI