summaryrefslogtreecommitdiff
path: root/crypto/Kconfig
diff options
context:
space:
mode:
authorHuang Ying <ying.huang@intel.com>2009-03-29 15:39:02 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2009-06-02 14:04:15 +1000
commitad44a141a2c36d2268d72c407326f9a5f570e482 (patch)
tree56e517d71f08a2106603a73686471a30ec6f17b7 /crypto/Kconfig
parent7ea1b9cb57dc349e0910bce5ad7ac7cdb075bbc7 (diff)
downloadlinux-crypto-ad44a141a2c36d2268d72c407326f9a5f570e482.tar.gz
linux-crypto-ad44a141a2c36d2268d72c407326f9a5f570e482.zip
crypto: fpu - Add template for blkcipher touching FPU
Blkcipher touching FPU need to be enclosed by kernel_fpu_begin() and kernel_fpu_end(). If they are invoked in cipher algorithm implementation, they will be invoked for each block, so that performance will be hurt, because they are "slow" operations. This patch implements "fpu" template, which makes these operations to be invoked for each request. Signed-off-by: Huang Ying <ying.huang@intel.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/Kconfig')
-rw-r--r--crypto/Kconfig5
1 files changed, 5 insertions, 0 deletions
diff --git a/crypto/Kconfig b/crypto/Kconfig
index 74d0e622..66ff22a3 100644
--- a/crypto/Kconfig
+++ b/crypto/Kconfig
@@ -241,6 +241,11 @@ config CRYPTO_XTS
key size 256, 384 or 512 bits. This implementation currently
can't handle a sectorsize which is not a multiple of 16 bytes.
+config CRYPTO_FPU
+ tristate
+ select CRYPTO_BLKCIPHER
+ select CRYPTO_MANAGER
+
comment "Hash modes"
config CRYPTO_HMAC