diff options
author | Jussi Kivilinna <jussi.kivilinna@iki.fi> | 2013-06-08 05:17:42 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2013-06-21 02:44:28 -0400 |
commit | 3d387ef08c40382315b8e9baa4bc9a07f7c49fce (patch) | |
tree | 55a6bfe4187bcff29a533dd9eaabae6374a42635 /crypto | |
parent | acfffdb803b6ab5d520bf9a816bfb155ba3a263d (diff) |
Revert "crypto: blowfish - add AVX2/x86_64 implementation of blowfish cipher"
This reverts commit 604880107010a1e5794552d184cd5471ea31b973.
Instruction (vpgatherdd) that this implementation relied on turned out to be
slow performer on real hardware (i5-4570). The previous 4-way blowfish
implementation is therefore faster and this implementation should be removed.
Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/Kconfig | 18 | ||||
-rw-r--r-- | crypto/testmgr.c | 12 |
2 files changed, 0 insertions, 30 deletions
diff --git a/crypto/Kconfig b/crypto/Kconfig index d1ca6312d798..4ef0ee715171 100644 --- a/crypto/Kconfig +++ b/crypto/Kconfig | |||
@@ -839,24 +839,6 @@ config CRYPTO_BLOWFISH_X86_64 | |||
839 | See also: | 839 | See also: |
840 | <http://www.schneier.com/blowfish.html> | 840 | <http://www.schneier.com/blowfish.html> |
841 | 841 | ||
842 | config CRYPTO_BLOWFISH_AVX2_X86_64 | ||
843 | tristate "Blowfish cipher algorithm (x86_64/AVX2)" | ||
844 | depends on X86 && 64BIT | ||
845 | select CRYPTO_ALGAPI | ||
846 | select CRYPTO_CRYPTD | ||
847 | select CRYPTO_ABLK_HELPER_X86 | ||
848 | select CRYPTO_BLOWFISH_COMMON | ||
849 | select CRYPTO_BLOWFISH_X86_64 | ||
850 | help | ||
851 | Blowfish cipher algorithm (x86_64/AVX2), by Bruce Schneier. | ||
852 | |||
853 | This is a variable key length cipher which can use keys from 32 | ||
854 | bits to 448 bits in length. It's fast, simple and specifically | ||
855 | designed for use on "large microprocessors". | ||
856 | |||
857 | See also: | ||
858 | <http://www.schneier.com/blowfish.html> | ||
859 | |||
860 | config CRYPTO_CAMELLIA | 842 | config CRYPTO_CAMELLIA |
861 | tristate "Camellia cipher algorithms" | 843 | tristate "Camellia cipher algorithms" |
862 | depends on CRYPTO | 844 | depends on CRYPTO |
diff --git a/crypto/testmgr.c b/crypto/testmgr.c index f19a392ade78..27f111876523 100644 --- a/crypto/testmgr.c +++ b/crypto/testmgr.c | |||
@@ -1661,9 +1661,6 @@ static const struct alg_test_desc alg_test_descs[] = { | |||
1661 | .test = alg_test_null, | 1661 | .test = alg_test_null, |
1662 | .fips_allowed = 1, | 1662 | .fips_allowed = 1, |
1663 | }, { | 1663 | }, { |
1664 | .alg = "__driver-cbc-blowfish-avx2", | ||
1665 | .test = alg_test_null, | ||
1666 | }, { | ||
1667 | .alg = "__driver-cbc-camellia-aesni", | 1664 | .alg = "__driver-cbc-camellia-aesni", |
1668 | .test = alg_test_null, | 1665 | .test = alg_test_null, |
1669 | }, { | 1666 | }, { |
@@ -1695,9 +1692,6 @@ static const struct alg_test_desc alg_test_descs[] = { | |||
1695 | .test = alg_test_null, | 1692 | .test = alg_test_null, |
1696 | .fips_allowed = 1, | 1693 | .fips_allowed = 1, |
1697 | }, { | 1694 | }, { |
1698 | .alg = "__driver-ecb-blowfish-avx2", | ||
1699 | .test = alg_test_null, | ||
1700 | }, { | ||
1701 | .alg = "__driver-ecb-camellia-aesni", | 1695 | .alg = "__driver-ecb-camellia-aesni", |
1702 | .test = alg_test_null, | 1696 | .test = alg_test_null, |
1703 | }, { | 1697 | }, { |
@@ -1988,9 +1982,6 @@ static const struct alg_test_desc alg_test_descs[] = { | |||
1988 | .test = alg_test_null, | 1982 | .test = alg_test_null, |
1989 | .fips_allowed = 1, | 1983 | .fips_allowed = 1, |
1990 | }, { | 1984 | }, { |
1991 | .alg = "cryptd(__driver-cbc-blowfish-avx2)", | ||
1992 | .test = alg_test_null, | ||
1993 | }, { | ||
1994 | .alg = "cryptd(__driver-cbc-camellia-aesni)", | 1985 | .alg = "cryptd(__driver-cbc-camellia-aesni)", |
1995 | .test = alg_test_null, | 1986 | .test = alg_test_null, |
1996 | }, { | 1987 | }, { |
@@ -2004,9 +1995,6 @@ static const struct alg_test_desc alg_test_descs[] = { | |||
2004 | .test = alg_test_null, | 1995 | .test = alg_test_null, |
2005 | .fips_allowed = 1, | 1996 | .fips_allowed = 1, |
2006 | }, { | 1997 | }, { |
2007 | .alg = "cryptd(__driver-ecb-blowfish-avx2)", | ||
2008 | .test = alg_test_null, | ||
2009 | }, { | ||
2010 | .alg = "cryptd(__driver-ecb-camellia-aesni)", | 1998 | .alg = "cryptd(__driver-ecb-camellia-aesni)", |
2011 | .test = alg_test_null, | 1999 | .test = alg_test_null, |
2012 | }, { | 2000 | }, { |