diff options
Diffstat (limited to 'crypto/testmgr.c')
-rw-r--r-- | crypto/testmgr.c | 95 |
1 files changed, 93 insertions, 2 deletions
diff --git a/crypto/testmgr.c b/crypto/testmgr.c index efd8b20e13dc..5823735cf381 100644 --- a/crypto/testmgr.c +++ b/crypto/testmgr.c | |||
@@ -1645,19 +1645,31 @@ static const struct alg_test_desc alg_test_descs[] = { | |||
1645 | .alg = "__cbc-serpent-avx", | 1645 | .alg = "__cbc-serpent-avx", |
1646 | .test = alg_test_null, | 1646 | .test = alg_test_null, |
1647 | }, { | 1647 | }, { |
1648 | .alg = "__cbc-serpent-avx2", | ||
1649 | .test = alg_test_null, | ||
1650 | }, { | ||
1648 | .alg = "__cbc-serpent-sse2", | 1651 | .alg = "__cbc-serpent-sse2", |
1649 | .test = alg_test_null, | 1652 | .test = alg_test_null, |
1650 | }, { | 1653 | }, { |
1651 | .alg = "__cbc-twofish-avx", | 1654 | .alg = "__cbc-twofish-avx", |
1652 | .test = alg_test_null, | 1655 | .test = alg_test_null, |
1653 | }, { | 1656 | }, { |
1657 | .alg = "__cbc-twofish-avx2", | ||
1658 | .test = alg_test_null, | ||
1659 | }, { | ||
1654 | .alg = "__driver-cbc-aes-aesni", | 1660 | .alg = "__driver-cbc-aes-aesni", |
1655 | .test = alg_test_null, | 1661 | .test = alg_test_null, |
1656 | .fips_allowed = 1, | 1662 | .fips_allowed = 1, |
1657 | }, { | 1663 | }, { |
1664 | .alg = "__driver-cbc-blowfish-avx2", | ||
1665 | .test = alg_test_null, | ||
1666 | }, { | ||
1658 | .alg = "__driver-cbc-camellia-aesni", | 1667 | .alg = "__driver-cbc-camellia-aesni", |
1659 | .test = alg_test_null, | 1668 | .test = alg_test_null, |
1660 | }, { | 1669 | }, { |
1670 | .alg = "__driver-cbc-camellia-aesni-avx2", | ||
1671 | .test = alg_test_null, | ||
1672 | }, { | ||
1661 | .alg = "__driver-cbc-cast5-avx", | 1673 | .alg = "__driver-cbc-cast5-avx", |
1662 | .test = alg_test_null, | 1674 | .test = alg_test_null, |
1663 | }, { | 1675 | }, { |
@@ -1667,19 +1679,31 @@ static const struct alg_test_desc alg_test_descs[] = { | |||
1667 | .alg = "__driver-cbc-serpent-avx", | 1679 | .alg = "__driver-cbc-serpent-avx", |
1668 | .test = alg_test_null, | 1680 | .test = alg_test_null, |
1669 | }, { | 1681 | }, { |
1682 | .alg = "__driver-cbc-serpent-avx2", | ||
1683 | .test = alg_test_null, | ||
1684 | }, { | ||
1670 | .alg = "__driver-cbc-serpent-sse2", | 1685 | .alg = "__driver-cbc-serpent-sse2", |
1671 | .test = alg_test_null, | 1686 | .test = alg_test_null, |
1672 | }, { | 1687 | }, { |
1673 | .alg = "__driver-cbc-twofish-avx", | 1688 | .alg = "__driver-cbc-twofish-avx", |
1674 | .test = alg_test_null, | 1689 | .test = alg_test_null, |
1675 | }, { | 1690 | }, { |
1691 | .alg = "__driver-cbc-twofish-avx2", | ||
1692 | .test = alg_test_null, | ||
1693 | }, { | ||
1676 | .alg = "__driver-ecb-aes-aesni", | 1694 | .alg = "__driver-ecb-aes-aesni", |
1677 | .test = alg_test_null, | 1695 | .test = alg_test_null, |
1678 | .fips_allowed = 1, | 1696 | .fips_allowed = 1, |
1679 | }, { | 1697 | }, { |
1698 | .alg = "__driver-ecb-blowfish-avx2", | ||
1699 | .test = alg_test_null, | ||
1700 | }, { | ||
1680 | .alg = "__driver-ecb-camellia-aesni", | 1701 | .alg = "__driver-ecb-camellia-aesni", |
1681 | .test = alg_test_null, | 1702 | .test = alg_test_null, |
1682 | }, { | 1703 | }, { |
1704 | .alg = "__driver-ecb-camellia-aesni-avx2", | ||
1705 | .test = alg_test_null, | ||
1706 | }, { | ||
1683 | .alg = "__driver-ecb-cast5-avx", | 1707 | .alg = "__driver-ecb-cast5-avx", |
1684 | .test = alg_test_null, | 1708 | .test = alg_test_null, |
1685 | }, { | 1709 | }, { |
@@ -1689,12 +1713,18 @@ static const struct alg_test_desc alg_test_descs[] = { | |||
1689 | .alg = "__driver-ecb-serpent-avx", | 1713 | .alg = "__driver-ecb-serpent-avx", |
1690 | .test = alg_test_null, | 1714 | .test = alg_test_null, |
1691 | }, { | 1715 | }, { |
1716 | .alg = "__driver-ecb-serpent-avx2", | ||
1717 | .test = alg_test_null, | ||
1718 | }, { | ||
1692 | .alg = "__driver-ecb-serpent-sse2", | 1719 | .alg = "__driver-ecb-serpent-sse2", |
1693 | .test = alg_test_null, | 1720 | .test = alg_test_null, |
1694 | }, { | 1721 | }, { |
1695 | .alg = "__driver-ecb-twofish-avx", | 1722 | .alg = "__driver-ecb-twofish-avx", |
1696 | .test = alg_test_null, | 1723 | .test = alg_test_null, |
1697 | }, { | 1724 | }, { |
1725 | .alg = "__driver-ecb-twofish-avx2", | ||
1726 | .test = alg_test_null, | ||
1727 | }, { | ||
1698 | .alg = "__ghash-pclmulqdqni", | 1728 | .alg = "__ghash-pclmulqdqni", |
1699 | .test = alg_test_null, | 1729 | .test = alg_test_null, |
1700 | .fips_allowed = 1, | 1730 | .fips_allowed = 1, |
@@ -1913,6 +1943,27 @@ static const struct alg_test_desc alg_test_descs[] = { | |||
1913 | } | 1943 | } |
1914 | } | 1944 | } |
1915 | }, { | 1945 | }, { |
1946 | .alg = "cmac(aes)", | ||
1947 | .test = alg_test_hash, | ||
1948 | .suite = { | ||
1949 | .hash = { | ||
1950 | .vecs = aes_cmac128_tv_template, | ||
1951 | .count = CMAC_AES_TEST_VECTORS | ||
1952 | } | ||
1953 | } | ||
1954 | }, { | ||
1955 | .alg = "cmac(des3_ede)", | ||
1956 | .test = alg_test_hash, | ||
1957 | .suite = { | ||
1958 | .hash = { | ||
1959 | .vecs = des3_ede_cmac64_tv_template, | ||
1960 | .count = CMAC_DES3_EDE_TEST_VECTORS | ||
1961 | } | ||
1962 | } | ||
1963 | }, { | ||
1964 | .alg = "compress_null", | ||
1965 | .test = alg_test_null, | ||
1966 | }, { | ||
1916 | .alg = "crc32c", | 1967 | .alg = "crc32c", |
1917 | .test = alg_test_crc32c, | 1968 | .test = alg_test_crc32c, |
1918 | .fips_allowed = 1, | 1969 | .fips_allowed = 1, |
@@ -1927,16 +1978,31 @@ static const struct alg_test_desc alg_test_descs[] = { | |||
1927 | .test = alg_test_null, | 1978 | .test = alg_test_null, |
1928 | .fips_allowed = 1, | 1979 | .fips_allowed = 1, |
1929 | }, { | 1980 | }, { |
1981 | .alg = "cryptd(__driver-cbc-blowfish-avx2)", | ||
1982 | .test = alg_test_null, | ||
1983 | }, { | ||
1930 | .alg = "cryptd(__driver-cbc-camellia-aesni)", | 1984 | .alg = "cryptd(__driver-cbc-camellia-aesni)", |
1931 | .test = alg_test_null, | 1985 | .test = alg_test_null, |
1932 | }, { | 1986 | }, { |
1987 | .alg = "cryptd(__driver-cbc-camellia-aesni-avx2)", | ||
1988 | .test = alg_test_null, | ||
1989 | }, { | ||
1990 | .alg = "cryptd(__driver-cbc-serpent-avx2)", | ||
1991 | .test = alg_test_null, | ||
1992 | }, { | ||
1933 | .alg = "cryptd(__driver-ecb-aes-aesni)", | 1993 | .alg = "cryptd(__driver-ecb-aes-aesni)", |
1934 | .test = alg_test_null, | 1994 | .test = alg_test_null, |
1935 | .fips_allowed = 1, | 1995 | .fips_allowed = 1, |
1936 | }, { | 1996 | }, { |
1997 | .alg = "cryptd(__driver-ecb-blowfish-avx2)", | ||
1998 | .test = alg_test_null, | ||
1999 | }, { | ||
1937 | .alg = "cryptd(__driver-ecb-camellia-aesni)", | 2000 | .alg = "cryptd(__driver-ecb-camellia-aesni)", |
1938 | .test = alg_test_null, | 2001 | .test = alg_test_null, |
1939 | }, { | 2002 | }, { |
2003 | .alg = "cryptd(__driver-ecb-camellia-aesni-avx2)", | ||
2004 | .test = alg_test_null, | ||
2005 | }, { | ||
1940 | .alg = "cryptd(__driver-ecb-cast5-avx)", | 2006 | .alg = "cryptd(__driver-ecb-cast5-avx)", |
1941 | .test = alg_test_null, | 2007 | .test = alg_test_null, |
1942 | }, { | 2008 | }, { |
@@ -1946,12 +2012,18 @@ static const struct alg_test_desc alg_test_descs[] = { | |||
1946 | .alg = "cryptd(__driver-ecb-serpent-avx)", | 2012 | .alg = "cryptd(__driver-ecb-serpent-avx)", |
1947 | .test = alg_test_null, | 2013 | .test = alg_test_null, |
1948 | }, { | 2014 | }, { |
2015 | .alg = "cryptd(__driver-ecb-serpent-avx2)", | ||
2016 | .test = alg_test_null, | ||
2017 | }, { | ||
1949 | .alg = "cryptd(__driver-ecb-serpent-sse2)", | 2018 | .alg = "cryptd(__driver-ecb-serpent-sse2)", |
1950 | .test = alg_test_null, | 2019 | .test = alg_test_null, |
1951 | }, { | 2020 | }, { |
1952 | .alg = "cryptd(__driver-ecb-twofish-avx)", | 2021 | .alg = "cryptd(__driver-ecb-twofish-avx)", |
1953 | .test = alg_test_null, | 2022 | .test = alg_test_null, |
1954 | }, { | 2023 | }, { |
2024 | .alg = "cryptd(__driver-ecb-twofish-avx2)", | ||
2025 | .test = alg_test_null, | ||
2026 | }, { | ||
1955 | .alg = "cryptd(__driver-gcm-aes-aesni)", | 2027 | .alg = "cryptd(__driver-gcm-aes-aesni)", |
1956 | .test = alg_test_null, | 2028 | .test = alg_test_null, |
1957 | .fips_allowed = 1, | 2029 | .fips_allowed = 1, |
@@ -2127,6 +2199,9 @@ static const struct alg_test_desc alg_test_descs[] = { | |||
2127 | } | 2199 | } |
2128 | } | 2200 | } |
2129 | }, { | 2201 | }, { |
2202 | .alg = "digest_null", | ||
2203 | .test = alg_test_null, | ||
2204 | }, { | ||
2130 | .alg = "ecb(__aes-aesni)", | 2205 | .alg = "ecb(__aes-aesni)", |
2131 | .test = alg_test_null, | 2206 | .test = alg_test_null, |
2132 | .fips_allowed = 1, | 2207 | .fips_allowed = 1, |
@@ -2237,6 +2312,9 @@ static const struct alg_test_desc alg_test_descs[] = { | |||
2237 | } | 2312 | } |
2238 | } | 2313 | } |
2239 | }, { | 2314 | }, { |
2315 | .alg = "ecb(cipher_null)", | ||
2316 | .test = alg_test_null, | ||
2317 | }, { | ||
2240 | .alg = "ecb(des)", | 2318 | .alg = "ecb(des)", |
2241 | .test = alg_test_skcipher, | 2319 | .test = alg_test_skcipher, |
2242 | .fips_allowed = 1, | 2320 | .fips_allowed = 1, |
@@ -2696,8 +2774,6 @@ static const struct alg_test_desc alg_test_descs[] = { | |||
2696 | } | 2774 | } |
2697 | } | 2775 | } |
2698 | }, { | 2776 | }, { |
2699 | |||
2700 | |||
2701 | .alg = "rfc4309(ccm(aes))", | 2777 | .alg = "rfc4309(ccm(aes))", |
2702 | .test = alg_test_aead, | 2778 | .test = alg_test_aead, |
2703 | .fips_allowed = 1, | 2779 | .fips_allowed = 1, |
@@ -2714,6 +2790,21 @@ static const struct alg_test_desc alg_test_descs[] = { | |||
2714 | } | 2790 | } |
2715 | } | 2791 | } |
2716 | }, { | 2792 | }, { |
2793 | .alg = "rfc4543(gcm(aes))", | ||
2794 | .test = alg_test_aead, | ||
2795 | .suite = { | ||
2796 | .aead = { | ||
2797 | .enc = { | ||
2798 | .vecs = aes_gcm_rfc4543_enc_tv_template, | ||
2799 | .count = AES_GCM_4543_ENC_TEST_VECTORS | ||
2800 | }, | ||
2801 | .dec = { | ||
2802 | .vecs = aes_gcm_rfc4543_dec_tv_template, | ||
2803 | .count = AES_GCM_4543_DEC_TEST_VECTORS | ||
2804 | }, | ||
2805 | } | ||
2806 | } | ||
2807 | }, { | ||
2717 | .alg = "rmd128", | 2808 | .alg = "rmd128", |
2718 | .test = alg_test_hash, | 2809 | .test = alg_test_hash, |
2719 | .suite = { | 2810 | .suite = { |