diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2006-08-21 10:07:53 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2006-09-20 21:41:52 -0400 |
commit | 5cde0af2a9825dd1edaca233bd9590566579ef21 (patch) | |
tree | e396297e3a2436d4a6ac77de63f95f2328c7a0fe /crypto/Kconfig | |
parent | 5c64097aa0f6dc4f27718ef47ca9a12538d62860 (diff) |
[CRYPTO] cipher: Added block cipher type
This patch adds the new type of block ciphers. Unlike current cipher
algorithms which operate on a single block at a time, block ciphers
operate on an arbitrarily long linear area of data. As it is block-based,
it will skip any data remaining at the end which cannot form a block.
The block cipher has one major difference when compared to the existing
block cipher implementation. The sg walking is now performed by the
algorithm rather than the cipher mid-layer. This is needed for drivers
that directly support sg lists. It also improves performance for all
algorithms as it reduces the total number of indirect calls by one.
In future the existing cipher algorithm will be converted to only have
a single-block interface. This will be done after all existing users
have switched over to the new block cipher type.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/Kconfig')
-rw-r--r-- | crypto/Kconfig | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crypto/Kconfig b/crypto/Kconfig index 4ce509dba32..68790ad7308 100644 --- a/crypto/Kconfig +++ b/crypto/Kconfig | |||
@@ -16,6 +16,10 @@ config CRYPTO_ALGAPI | |||
16 | help | 16 | help |
17 | This option provides the API for cryptographic algorithms. | 17 | This option provides the API for cryptographic algorithms. |
18 | 18 | ||
19 | config CRYPTO_BLKCIPHER | ||
20 | tristate | ||
21 | select CRYPTO_ALGAPI | ||
22 | |||
19 | config CRYPTO_MANAGER | 23 | config CRYPTO_MANAGER |
20 | tristate "Cryptographic algorithm manager" | 24 | tristate "Cryptographic algorithm manager" |
21 | select CRYPTO_ALGAPI | 25 | select CRYPTO_ALGAPI |