aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaro Koskinen <aaro.koskinen@iki.fi>2015-03-08 16:07:47 -0400
committerHerbert Xu <herbert@gondor.apana.org.au>2015-03-10 05:49:34 -0400
commitefdb6f6edb526f160b8db1670b93a07180ac8306 (patch)
tree87b478641a70d4547ed6847f8536aaa4a0312c5b
parentfbaa4dfd51a0bfec1e03d4f887c250993f9dc18d (diff)
crypto: octeon - enable OCTEON SHA1/256/512 module selection
Enable user to select OCTEON SHA1/256/512 modules. Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
-rw-r--r--crypto/Kconfig27
1 files changed, 27 insertions, 0 deletions
diff --git a/crypto/Kconfig b/crypto/Kconfig
index 6918aff74f4d..1afb0f66ad43 100644
--- a/crypto/Kconfig
+++ b/crypto/Kconfig
@@ -554,6 +554,15 @@ config CRYPTO_SHA512_SSSE3
554 Extensions version 1 (AVX1), or Advanced Vector Extensions 554 Extensions version 1 (AVX1), or Advanced Vector Extensions
555 version 2 (AVX2) instructions, when available. 555 version 2 (AVX2) instructions, when available.
556 556
557config CRYPTO_SHA1_OCTEON
558 tristate "SHA1 digest algorithm (OCTEON)"
559 depends on CPU_CAVIUM_OCTEON
560 select CRYPTO_SHA1
561 select CRYPTO_HASH
562 help
563 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2) implemented
564 using OCTEON crypto instructions, when available.
565
557config CRYPTO_SHA1_SPARC64 566config CRYPTO_SHA1_SPARC64
558 tristate "SHA1 digest algorithm (SPARC64)" 567 tristate "SHA1 digest algorithm (SPARC64)"
559 depends on SPARC64 568 depends on SPARC64
@@ -634,6 +643,15 @@ config CRYPTO_SHA256_PPC_SPE
634 SHA224 and SHA256 secure hash standard (DFIPS 180-2) 643 SHA224 and SHA256 secure hash standard (DFIPS 180-2)
635 implemented using powerpc SPE SIMD instruction set. 644 implemented using powerpc SPE SIMD instruction set.
636 645
646config CRYPTO_SHA256_OCTEON
647 tristate "SHA224 and SHA256 digest algorithm (OCTEON)"
648 depends on CPU_CAVIUM_OCTEON
649 select CRYPTO_SHA256
650 select CRYPTO_HASH
651 help
652 SHA-256 secure hash standard (DFIPS 180-2) implemented
653 using OCTEON crypto instructions, when available.
654
637config CRYPTO_SHA256_SPARC64 655config CRYPTO_SHA256_SPARC64
638 tristate "SHA224 and SHA256 digest algorithm (SPARC64)" 656 tristate "SHA224 and SHA256 digest algorithm (SPARC64)"
639 depends on SPARC64 657 depends on SPARC64
@@ -655,6 +673,15 @@ config CRYPTO_SHA512
655 This code also includes SHA-384, a 384 bit hash with 192 bits 673 This code also includes SHA-384, a 384 bit hash with 192 bits
656 of security against collision attacks. 674 of security against collision attacks.
657 675
676config CRYPTO_SHA512_OCTEON
677 tristate "SHA384 and SHA512 digest algorithms (OCTEON)"
678 depends on CPU_CAVIUM_OCTEON
679 select CRYPTO_SHA512
680 select CRYPTO_HASH
681 help
682 SHA-512 secure hash standard (DFIPS 180-2) implemented
683 using OCTEON crypto instructions, when available.
684
658config CRYPTO_SHA512_SPARC64 685config CRYPTO_SHA512_SPARC64
659 tristate "SHA384 and SHA512 digest algorithm (SPARC64)" 686 tristate "SHA384 and SHA512 digest algorithm (SPARC64)"
660 depends on SPARC64 687 depends on SPARC64