diff options
author | Tim Chen <tim.c.chen@linux.intel.com> | 2013-03-26 16:59:17 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2013-04-25 09:00:57 -0400 |
commit | 8275d1aa642295edd34a11a117080384bb9d65c2 (patch) | |
tree | 60200502662d5fa75b3d4c120cf740a35ea0def2 /crypto | |
parent | d34a460092d857f1616e39eed7eac6f40cea2225 (diff) |
crypto: sha256 - Create module providing optimized SHA256 routines using SSSE3, AVX or AVX2 instructions.
We added glue code and config options to create crypto
module that uses SSE/AVX/AVX2 optimized SHA256 x86_64 assembly routines.
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')
-rw-r--r-- | crypto/Kconfig | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/crypto/Kconfig b/crypto/Kconfig index aed52b2e4a55..8064ef1fedc4 100644 --- a/crypto/Kconfig +++ b/crypto/Kconfig | |||
@@ -470,6 +470,17 @@ config CRYPTO_SHA1_SSSE3 | |||
470 | using Supplemental SSE3 (SSSE3) instructions or Advanced Vector | 470 | using Supplemental SSE3 (SSSE3) instructions or Advanced Vector |
471 | Extensions (AVX), when available. | 471 | Extensions (AVX), when available. |
472 | 472 | ||
473 | config CRYPTO_SHA256_SSSE3 | ||
474 | tristate "SHA256 digest algorithm (SSSE3/AVX/AVX2)" | ||
475 | depends on X86 && 64BIT | ||
476 | select CRYPTO_SHA256 | ||
477 | select CRYPTO_HASH | ||
478 | help | ||
479 | SHA-256 secure hash standard (DFIPS 180-2) implemented | ||
480 | using Supplemental SSE3 (SSSE3) instructions, or Advanced Vector | ||
481 | Extensions version 1 (AVX1), or Advanced Vector Extensions | ||
482 | version 2 (AVX2) instructions, when available. | ||
483 | |||
473 | config CRYPTO_SHA1_SPARC64 | 484 | config CRYPTO_SHA1_SPARC64 |
474 | tristate "SHA1 digest algorithm (SPARC64)" | 485 | tristate "SHA1 digest algorithm (SPARC64)" |
475 | depends on SPARC64 | 486 | depends on SPARC64 |