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/testmgr.c | |
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/testmgr.c')
-rw-r--r-- | crypto/testmgr.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/crypto/testmgr.c b/crypto/testmgr.c index 380708477b35..f3effb42531e 100644 --- a/crypto/testmgr.c +++ b/crypto/testmgr.c | |||
@@ -1655,6 +1655,9 @@ static const struct alg_test_desc alg_test_descs[] = { | |||
1655 | .test = alg_test_null, | 1655 | .test = alg_test_null, |
1656 | .fips_allowed = 1, | 1656 | .fips_allowed = 1, |
1657 | }, { | 1657 | }, { |
1658 | .alg = "__driver-cbc-blowfish-avx2", | ||
1659 | .test = alg_test_null, | ||
1660 | }, { | ||
1658 | .alg = "__driver-cbc-camellia-aesni", | 1661 | .alg = "__driver-cbc-camellia-aesni", |
1659 | .test = alg_test_null, | 1662 | .test = alg_test_null, |
1660 | }, { | 1663 | }, { |
@@ -1677,6 +1680,9 @@ static const struct alg_test_desc alg_test_descs[] = { | |||
1677 | .test = alg_test_null, | 1680 | .test = alg_test_null, |
1678 | .fips_allowed = 1, | 1681 | .fips_allowed = 1, |
1679 | }, { | 1682 | }, { |
1683 | .alg = "__driver-ecb-blowfish-avx2", | ||
1684 | .test = alg_test_null, | ||
1685 | }, { | ||
1680 | .alg = "__driver-ecb-camellia-aesni", | 1686 | .alg = "__driver-ecb-camellia-aesni", |
1681 | .test = alg_test_null, | 1687 | .test = alg_test_null, |
1682 | }, { | 1688 | }, { |
@@ -1948,6 +1954,9 @@ static const struct alg_test_desc alg_test_descs[] = { | |||
1948 | .test = alg_test_null, | 1954 | .test = alg_test_null, |
1949 | .fips_allowed = 1, | 1955 | .fips_allowed = 1, |
1950 | }, { | 1956 | }, { |
1957 | .alg = "cryptd(__driver-cbc-blowfish-avx2)", | ||
1958 | .test = alg_test_null, | ||
1959 | }, { | ||
1951 | .alg = "cryptd(__driver-cbc-camellia-aesni)", | 1960 | .alg = "cryptd(__driver-cbc-camellia-aesni)", |
1952 | .test = alg_test_null, | 1961 | .test = alg_test_null, |
1953 | }, { | 1962 | }, { |
@@ -1955,6 +1964,9 @@ static const struct alg_test_desc alg_test_descs[] = { | |||
1955 | .test = alg_test_null, | 1964 | .test = alg_test_null, |
1956 | .fips_allowed = 1, | 1965 | .fips_allowed = 1, |
1957 | }, { | 1966 | }, { |
1967 | .alg = "cryptd(__driver-ecb-blowfish-avx2)", | ||
1968 | .test = alg_test_null, | ||
1969 | }, { | ||
1958 | .alg = "cryptd(__driver-ecb-camellia-aesni)", | 1970 | .alg = "cryptd(__driver-ecb-camellia-aesni)", |
1959 | .test = alg_test_null, | 1971 | .test = alg_test_null, |
1960 | }, { | 1972 | }, { |