diff options
author | Jussi Kivilinna <jussi.kivilinna@iki.fi> | 2013-04-13 06:46:45 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2013-04-25 09:09:04 -0400 |
commit | 604880107010a1e5794552d184cd5471ea31b973 (patch) | |
tree | ed37e3b3e8454f758daab88a2fb9cb5f043ca8ad /crypto/Kconfig | |
parent | ad8b7c3e92868dd86c54d9d5321000bbb4096f0d (diff) |
crypto: blowfish - add AVX2/x86_64 implementation of blowfish cipher
Patch adds AVX2/x86-64 implementation of Blowfish cipher, requiring 32 parallel
blocks for input (256 bytes). Table look-ups are performed using vpgatherdd
instruction directly from vector registers and thus should be faster than
earlier implementations.
Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/Kconfig')
-rw-r--r-- | crypto/Kconfig | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/crypto/Kconfig b/crypto/Kconfig index 0e7a23723b45..6b9564f91168 100644 --- a/crypto/Kconfig +++ b/crypto/Kconfig | |||
@@ -820,6 +820,24 @@ config CRYPTO_BLOWFISH_X86_64 | |||
820 | See also: | 820 | See also: |
821 | <http://www.schneier.com/blowfish.html> | 821 | <http://www.schneier.com/blowfish.html> |
822 | 822 | ||
823 | config CRYPTO_BLOWFISH_AVX2_X86_64 | ||
824 | tristate "Blowfish cipher algorithm (x86_64/AVX2)" | ||
825 | depends on X86 && 64BIT | ||
826 | select CRYPTO_ALGAPI | ||
827 | select CRYPTO_CRYPTD | ||
828 | select CRYPTO_ABLK_HELPER_X86 | ||
829 | select CRYPTO_BLOWFISH_COMMON | ||
830 | select CRYPTO_BLOWFISH_X86_64 | ||
831 | help | ||
832 | Blowfish cipher algorithm (x86_64/AVX2), by Bruce Schneier. | ||
833 | |||
834 | This is a variable key length cipher which can use keys from 32 | ||
835 | bits to 448 bits in length. It's fast, simple and specifically | ||
836 | designed for use on "large microprocessors". | ||
837 | |||
838 | See also: | ||
839 | <http://www.schneier.com/blowfish.html> | ||
840 | |||
823 | config CRYPTO_CAMELLIA | 841 | config CRYPTO_CAMELLIA |
824 | tristate "Camellia cipher algorithms" | 842 | tristate "Camellia cipher algorithms" |
825 | depends on CRYPTO | 843 | depends on CRYPTO |