aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/Kconfig
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2008-11-07 02:11:47 -0500
committerHerbert Xu <herbert@gondor.apana.org.au>2008-12-24 19:01:40 -0500
commit69c35efcf1576ab5f00cba83e8ca740923afb6c9 (patch)
treefaf3bba45be45d530e3355c46d6bf2cd99d0e83c /crypto/Kconfig
parent8e3ee85e68c5d5c95451afd3e8f0997eec6f99e5 (diff)
libcrc32c: Move implementation to crypto crc32c
This patch swaps the role of libcrc32c and crc32c. Previously the implementation was in libcrc32c and crc32c was a wrapper. Now the code is in crc32c and libcrc32c just calls the crypto layer. The reason for the change is to tap into the algorithm selection capability of the crypto API so that optimised implementations such as the one utilising Intel's CRC32C instruction can be used where available. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/Kconfig')
-rw-r--r--crypto/Kconfig4
1 files changed, 1 insertions, 3 deletions
diff --git a/crypto/Kconfig b/crypto/Kconfig
index dc20a34ba5ef..aede80246df2 100644
--- a/crypto/Kconfig
+++ b/crypto/Kconfig
@@ -256,12 +256,10 @@ comment "Digest"
256config CRYPTO_CRC32C 256config CRYPTO_CRC32C
257 tristate "CRC32c CRC algorithm" 257 tristate "CRC32c CRC algorithm"
258 select CRYPTO_HASH 258 select CRYPTO_HASH
259 select LIBCRC32C
260 help 259 help
261 Castagnoli, et al Cyclic Redundancy-Check Algorithm. Used 260 Castagnoli, et al Cyclic Redundancy-Check Algorithm. Used
262 by iSCSI for header and data digests and by others. 261 by iSCSI for header and data digests and by others.
263 See Castagnoli93. This implementation uses lib/libcrc32c. 262 See Castagnoli93. Module will be crc32c.
264 Module will be crc32c.
265 263
266config CRYPTO_CRC32C_INTEL 264config CRYPTO_CRC32C_INTEL
267 tristate "CRC32c INTEL hardware acceleration" 265 tristate "CRC32c INTEL hardware acceleration"