diff options
author | Tim Chen <tim.c.chen@linux.intel.com> | 2013-05-01 15:52:50 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2013-05-24 05:55:27 -0400 |
commit | 0b95a7f85718adcbba36407ef88bba0a7379ed03 (patch) | |
tree | 1ae5bf45259fb38a7a6031fbec584c9696a5ce2b /crypto/Kconfig | |
parent | 31d939625a9a20b1badd2d4e6bf6fd39fa523405 (diff) |
crypto: crct10dif - Glue code to cast accelerated CRCT10DIF assembly as a crypto transform
Glue code that plugs the PCLMULQDQ accelerated CRC T10 DIF hash into the
crypto framework. The config CRYPTO_CRCT10DIF_PCLMUL should be turned
on to enable the feature. The crc_t10dif crypto library function will
use this faster algorithm when crct10dif_pclmul module is loaded.
Signed-off-by: Tim Chen <tim.c.chen@linux.intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/Kconfig')
-rw-r--r-- | crypto/Kconfig | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/crypto/Kconfig b/crypto/Kconfig index ceb3611efe44..d1ca6312d798 100644 --- a/crypto/Kconfig +++ b/crypto/Kconfig | |||
@@ -384,6 +384,17 @@ config CRYPTO_CRCT10DIF | |||
384 | a crypto transform. This allows for faster crc t10 diff | 384 | a crypto transform. This allows for faster crc t10 diff |
385 | transforms to be used if they are available. | 385 | transforms to be used if they are available. |
386 | 386 | ||
387 | config CRYPTO_CRCT10DIF_PCLMUL | ||
388 | tristate "CRCT10DIF PCLMULQDQ hardware acceleration" | ||
389 | depends on X86 && 64BIT && CRC_T10DIF | ||
390 | select CRYPTO_HASH | ||
391 | help | ||
392 | For x86_64 processors with SSE4.2 and PCLMULQDQ supported, | ||
393 | CRC T10 DIF PCLMULQDQ computation can be hardware | ||
394 | accelerated PCLMULQDQ instruction. This option will create | ||
395 | 'crct10dif-plcmul' module, which is faster when computing the | ||
396 | crct10dif checksum as compared with the generic table implementation. | ||
397 | |||
387 | config CRYPTO_GHASH | 398 | config CRYPTO_GHASH |
388 | tristate "GHASH digest algorithm" | 399 | tristate "GHASH digest algorithm" |
389 | select CRYPTO_GF128MUL | 400 | select CRYPTO_GF128MUL |