aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/testmgr.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/testmgr.c')
-rw-r--r--crypto/testmgr.c369
1 files changed, 45 insertions, 324 deletions
diff --git a/crypto/testmgr.c b/crypto/testmgr.c
index 941d75cd1f7c..edf4a0818773 100644
--- a/crypto/testmgr.c
+++ b/crypto/testmgr.c
@@ -1638,270 +1638,66 @@ static const struct alg_test_desc alg_test_descs[] = {
1638 { 1638 {
1639 .alg = "__cbc-cast5-avx", 1639 .alg = "__cbc-cast5-avx",
1640 .test = alg_test_null, 1640 .test = alg_test_null,
1641 .suite = {
1642 .cipher = {
1643 .enc = {
1644 .vecs = NULL,
1645 .count = 0
1646 },
1647 .dec = {
1648 .vecs = NULL,
1649 .count = 0
1650 }
1651 }
1652 }
1653 }, { 1641 }, {
1654 .alg = "__cbc-cast6-avx", 1642 .alg = "__cbc-cast6-avx",
1655 .test = alg_test_null, 1643 .test = alg_test_null,
1656 .suite = {
1657 .cipher = {
1658 .enc = {
1659 .vecs = NULL,
1660 .count = 0
1661 },
1662 .dec = {
1663 .vecs = NULL,
1664 .count = 0
1665 }
1666 }
1667 }
1668 }, { 1644 }, {
1669 .alg = "__cbc-serpent-avx", 1645 .alg = "__cbc-serpent-avx",
1670 .test = alg_test_null, 1646 .test = alg_test_null,
1671 .suite = {
1672 .cipher = {
1673 .enc = {
1674 .vecs = NULL,
1675 .count = 0
1676 },
1677 .dec = {
1678 .vecs = NULL,
1679 .count = 0
1680 }
1681 }
1682 }
1683 }, { 1647 }, {
1684 .alg = "__cbc-serpent-sse2", 1648 .alg = "__cbc-serpent-sse2",
1685 .test = alg_test_null, 1649 .test = alg_test_null,
1686 .suite = {
1687 .cipher = {
1688 .enc = {
1689 .vecs = NULL,
1690 .count = 0
1691 },
1692 .dec = {
1693 .vecs = NULL,
1694 .count = 0
1695 }
1696 }
1697 }
1698 }, { 1650 }, {
1699 .alg = "__cbc-twofish-avx", 1651 .alg = "__cbc-twofish-avx",
1700 .test = alg_test_null, 1652 .test = alg_test_null,
1701 .suite = {
1702 .cipher = {
1703 .enc = {
1704 .vecs = NULL,
1705 .count = 0
1706 },
1707 .dec = {
1708 .vecs = NULL,
1709 .count = 0
1710 }
1711 }
1712 }
1713 }, { 1653 }, {
1714 .alg = "__driver-cbc-aes-aesni", 1654 .alg = "__driver-cbc-aes-aesni",
1715 .test = alg_test_null, 1655 .test = alg_test_null,
1716 .fips_allowed = 1, 1656 .fips_allowed = 1,
1717 .suite = { 1657 }, {
1718 .cipher = { 1658 .alg = "__driver-cbc-camellia-aesni",
1719 .enc = { 1659 .test = alg_test_null,
1720 .vecs = NULL,
1721 .count = 0
1722 },
1723 .dec = {
1724 .vecs = NULL,
1725 .count = 0
1726 }
1727 }
1728 }
1729 }, { 1660 }, {
1730 .alg = "__driver-cbc-cast5-avx", 1661 .alg = "__driver-cbc-cast5-avx",
1731 .test = alg_test_null, 1662 .test = alg_test_null,
1732 .suite = {
1733 .cipher = {
1734 .enc = {
1735 .vecs = NULL,
1736 .count = 0
1737 },
1738 .dec = {
1739 .vecs = NULL,
1740 .count = 0
1741 }
1742 }
1743 }
1744 }, { 1663 }, {
1745 .alg = "__driver-cbc-cast6-avx", 1664 .alg = "__driver-cbc-cast6-avx",
1746 .test = alg_test_null, 1665 .test = alg_test_null,
1747 .suite = {
1748 .cipher = {
1749 .enc = {
1750 .vecs = NULL,
1751 .count = 0
1752 },
1753 .dec = {
1754 .vecs = NULL,
1755 .count = 0
1756 }
1757 }
1758 }
1759 }, { 1666 }, {
1760 .alg = "__driver-cbc-serpent-avx", 1667 .alg = "__driver-cbc-serpent-avx",
1761 .test = alg_test_null, 1668 .test = alg_test_null,
1762 .suite = {
1763 .cipher = {
1764 .enc = {
1765 .vecs = NULL,
1766 .count = 0
1767 },
1768 .dec = {
1769 .vecs = NULL,
1770 .count = 0
1771 }
1772 }
1773 }
1774 }, { 1669 }, {
1775 .alg = "__driver-cbc-serpent-sse2", 1670 .alg = "__driver-cbc-serpent-sse2",
1776 .test = alg_test_null, 1671 .test = alg_test_null,
1777 .suite = {
1778 .cipher = {
1779 .enc = {
1780 .vecs = NULL,
1781 .count = 0
1782 },
1783 .dec = {
1784 .vecs = NULL,
1785 .count = 0
1786 }
1787 }
1788 }
1789 }, { 1672 }, {
1790 .alg = "__driver-cbc-twofish-avx", 1673 .alg = "__driver-cbc-twofish-avx",
1791 .test = alg_test_null, 1674 .test = alg_test_null,
1792 .suite = {
1793 .cipher = {
1794 .enc = {
1795 .vecs = NULL,
1796 .count = 0
1797 },
1798 .dec = {
1799 .vecs = NULL,
1800 .count = 0
1801 }
1802 }
1803 }
1804 }, { 1675 }, {
1805 .alg = "__driver-ecb-aes-aesni", 1676 .alg = "__driver-ecb-aes-aesni",
1806 .test = alg_test_null, 1677 .test = alg_test_null,
1807 .fips_allowed = 1, 1678 .fips_allowed = 1,
1808 .suite = { 1679 }, {
1809 .cipher = { 1680 .alg = "__driver-ecb-camellia-aesni",
1810 .enc = { 1681 .test = alg_test_null,
1811 .vecs = NULL,
1812 .count = 0
1813 },
1814 .dec = {
1815 .vecs = NULL,
1816 .count = 0
1817 }
1818 }
1819 }
1820 }, { 1682 }, {
1821 .alg = "__driver-ecb-cast5-avx", 1683 .alg = "__driver-ecb-cast5-avx",
1822 .test = alg_test_null, 1684 .test = alg_test_null,
1823 .suite = {
1824 .cipher = {
1825 .enc = {
1826 .vecs = NULL,
1827 .count = 0
1828 },
1829 .dec = {
1830 .vecs = NULL,
1831 .count = 0
1832 }
1833 }
1834 }
1835 }, { 1685 }, {
1836 .alg = "__driver-ecb-cast6-avx", 1686 .alg = "__driver-ecb-cast6-avx",
1837 .test = alg_test_null, 1687 .test = alg_test_null,
1838 .suite = {
1839 .cipher = {
1840 .enc = {
1841 .vecs = NULL,
1842 .count = 0
1843 },
1844 .dec = {
1845 .vecs = NULL,
1846 .count = 0
1847 }
1848 }
1849 }
1850 }, { 1688 }, {
1851 .alg = "__driver-ecb-serpent-avx", 1689 .alg = "__driver-ecb-serpent-avx",
1852 .test = alg_test_null, 1690 .test = alg_test_null,
1853 .suite = {
1854 .cipher = {
1855 .enc = {
1856 .vecs = NULL,
1857 .count = 0
1858 },
1859 .dec = {
1860 .vecs = NULL,
1861 .count = 0
1862 }
1863 }
1864 }
1865 }, { 1691 }, {
1866 .alg = "__driver-ecb-serpent-sse2", 1692 .alg = "__driver-ecb-serpent-sse2",
1867 .test = alg_test_null, 1693 .test = alg_test_null,
1868 .suite = {
1869 .cipher = {
1870 .enc = {
1871 .vecs = NULL,
1872 .count = 0
1873 },
1874 .dec = {
1875 .vecs = NULL,
1876 .count = 0
1877 }
1878 }
1879 }
1880 }, { 1694 }, {
1881 .alg = "__driver-ecb-twofish-avx", 1695 .alg = "__driver-ecb-twofish-avx",
1882 .test = alg_test_null, 1696 .test = alg_test_null,
1883 .suite = {
1884 .cipher = {
1885 .enc = {
1886 .vecs = NULL,
1887 .count = 0
1888 },
1889 .dec = {
1890 .vecs = NULL,
1891 .count = 0
1892 }
1893 }
1894 }
1895 }, { 1697 }, {
1896 .alg = "__ghash-pclmulqdqni", 1698 .alg = "__ghash-pclmulqdqni",
1897 .test = alg_test_null, 1699 .test = alg_test_null,
1898 .fips_allowed = 1, 1700 .fips_allowed = 1,
1899 .suite = {
1900 .hash = {
1901 .vecs = NULL,
1902 .count = 0
1903 }
1904 }
1905 }, { 1701 }, {
1906 .alg = "ansi_cprng", 1702 .alg = "ansi_cprng",
1907 .test = alg_test_cprng, 1703 .test = alg_test_cprng,
@@ -2130,135 +1926,39 @@ static const struct alg_test_desc alg_test_descs[] = {
2130 .alg = "cryptd(__driver-cbc-aes-aesni)", 1926 .alg = "cryptd(__driver-cbc-aes-aesni)",
2131 .test = alg_test_null, 1927 .test = alg_test_null,
2132 .fips_allowed = 1, 1928 .fips_allowed = 1,
2133 .suite = { 1929 }, {
2134 .cipher = { 1930 .alg = "cryptd(__driver-cbc-camellia-aesni)",
2135 .enc = { 1931 .test = alg_test_null,
2136 .vecs = NULL,
2137 .count = 0
2138 },
2139 .dec = {
2140 .vecs = NULL,
2141 .count = 0
2142 }
2143 }
2144 }
2145 }, { 1932 }, {
2146 .alg = "cryptd(__driver-ecb-aes-aesni)", 1933 .alg = "cryptd(__driver-ecb-aes-aesni)",
2147 .test = alg_test_null, 1934 .test = alg_test_null,
2148 .fips_allowed = 1, 1935 .fips_allowed = 1,
2149 .suite = { 1936 }, {
2150 .cipher = { 1937 .alg = "cryptd(__driver-ecb-camellia-aesni)",
2151 .enc = { 1938 .test = alg_test_null,
2152 .vecs = NULL,
2153 .count = 0
2154 },
2155 .dec = {
2156 .vecs = NULL,
2157 .count = 0
2158 }
2159 }
2160 }
2161 }, { 1939 }, {
2162 .alg = "cryptd(__driver-ecb-cast5-avx)", 1940 .alg = "cryptd(__driver-ecb-cast5-avx)",
2163 .test = alg_test_null, 1941 .test = alg_test_null,
2164 .suite = {
2165 .cipher = {
2166 .enc = {
2167 .vecs = NULL,
2168 .count = 0
2169 },
2170 .dec = {
2171 .vecs = NULL,
2172 .count = 0
2173 }
2174 }
2175 }
2176 }, { 1942 }, {
2177 .alg = "cryptd(__driver-ecb-cast6-avx)", 1943 .alg = "cryptd(__driver-ecb-cast6-avx)",
2178 .test = alg_test_null, 1944 .test = alg_test_null,
2179 .suite = {
2180 .cipher = {
2181 .enc = {
2182 .vecs = NULL,
2183 .count = 0
2184 },
2185 .dec = {
2186 .vecs = NULL,
2187 .count = 0
2188 }
2189 }
2190 }
2191 }, { 1945 }, {
2192 .alg = "cryptd(__driver-ecb-serpent-avx)", 1946 .alg = "cryptd(__driver-ecb-serpent-avx)",
2193 .test = alg_test_null, 1947 .test = alg_test_null,
2194 .suite = {
2195 .cipher = {
2196 .enc = {
2197 .vecs = NULL,
2198 .count = 0
2199 },
2200 .dec = {
2201 .vecs = NULL,
2202 .count = 0
2203 }
2204 }
2205 }
2206 }, { 1948 }, {
2207 .alg = "cryptd(__driver-ecb-serpent-sse2)", 1949 .alg = "cryptd(__driver-ecb-serpent-sse2)",
2208 .test = alg_test_null, 1950 .test = alg_test_null,
2209 .suite = {
2210 .cipher = {
2211 .enc = {
2212 .vecs = NULL,
2213 .count = 0
2214 },
2215 .dec = {
2216 .vecs = NULL,
2217 .count = 0
2218 }
2219 }
2220 }
2221 }, { 1951 }, {
2222 .alg = "cryptd(__driver-ecb-twofish-avx)", 1952 .alg = "cryptd(__driver-ecb-twofish-avx)",
2223 .test = alg_test_null, 1953 .test = alg_test_null,
2224 .suite = {
2225 .cipher = {
2226 .enc = {
2227 .vecs = NULL,
2228 .count = 0
2229 },
2230 .dec = {
2231 .vecs = NULL,
2232 .count = 0
2233 }
2234 }
2235 }
2236 }, { 1954 }, {
2237 .alg = "cryptd(__driver-gcm-aes-aesni)", 1955 .alg = "cryptd(__driver-gcm-aes-aesni)",
2238 .test = alg_test_null, 1956 .test = alg_test_null,
2239 .fips_allowed = 1, 1957 .fips_allowed = 1,
2240 .suite = {
2241 .cipher = {
2242 .enc = {
2243 .vecs = NULL,
2244 .count = 0
2245 },
2246 .dec = {
2247 .vecs = NULL,
2248 .count = 0
2249 }
2250 }
2251 }
2252 }, { 1958 }, {
2253 .alg = "cryptd(__ghash-pclmulqdqni)", 1959 .alg = "cryptd(__ghash-pclmulqdqni)",
2254 .test = alg_test_null, 1960 .test = alg_test_null,
2255 .fips_allowed = 1, 1961 .fips_allowed = 1,
2256 .suite = {
2257 .hash = {
2258 .vecs = NULL,
2259 .count = 0
2260 }
2261 }
2262 }, { 1962 }, {
2263 .alg = "ctr(aes)", 1963 .alg = "ctr(aes)",
2264 .test = alg_test_skcipher, 1964 .test = alg_test_skcipher,
@@ -2336,6 +2036,36 @@ static const struct alg_test_desc alg_test_descs[] = {
2336 } 2036 }
2337 } 2037 }
2338 }, { 2038 }, {
2039 .alg = "ctr(des)",
2040 .test = alg_test_skcipher,
2041 .suite = {
2042 .cipher = {
2043 .enc = {
2044 .vecs = des_ctr_enc_tv_template,
2045 .count = DES_CTR_ENC_TEST_VECTORS
2046 },
2047 .dec = {
2048 .vecs = des_ctr_dec_tv_template,
2049 .count = DES_CTR_DEC_TEST_VECTORS
2050 }
2051 }
2052 }
2053 }, {
2054 .alg = "ctr(des3_ede)",
2055 .test = alg_test_skcipher,
2056 .suite = {
2057 .cipher = {
2058 .enc = {
2059 .vecs = des3_ede_ctr_enc_tv_template,
2060 .count = DES3_EDE_CTR_ENC_TEST_VECTORS
2061 },
2062 .dec = {
2063 .vecs = des3_ede_ctr_dec_tv_template,
2064 .count = DES3_EDE_CTR_DEC_TEST_VECTORS
2065 }
2066 }
2067 }
2068 }, {
2339 .alg = "ctr(serpent)", 2069 .alg = "ctr(serpent)",
2340 .test = alg_test_skcipher, 2070 .test = alg_test_skcipher,
2341 .suite = { 2071 .suite = {
@@ -2383,6 +2113,7 @@ static const struct alg_test_desc alg_test_descs[] = {
2383 }, { 2113 }, {
2384 .alg = "deflate", 2114 .alg = "deflate",
2385 .test = alg_test_comp, 2115 .test = alg_test_comp,
2116 .fips_allowed = 1,
2386 .suite = { 2117 .suite = {
2387 .comp = { 2118 .comp = {
2388 .comp = { 2119 .comp = {
@@ -2399,18 +2130,6 @@ static const struct alg_test_desc alg_test_descs[] = {
2399 .alg = "ecb(__aes-aesni)", 2130 .alg = "ecb(__aes-aesni)",
2400 .test = alg_test_null, 2131 .test = alg_test_null,
2401 .fips_allowed = 1, 2132 .fips_allowed = 1,
2402 .suite = {
2403 .cipher = {
2404 .enc = {
2405 .vecs = NULL,
2406 .count = 0
2407 },
2408 .dec = {
2409 .vecs = NULL,
2410 .count = 0
2411 }
2412 }
2413 }
2414 }, { 2133 }, {
2415 .alg = "ecb(aes)", 2134 .alg = "ecb(aes)",
2416 .test = alg_test_skcipher, 2135 .test = alg_test_skcipher,
@@ -2859,6 +2578,7 @@ static const struct alg_test_desc alg_test_descs[] = {
2859 }, { 2578 }, {
2860 .alg = "lzo", 2579 .alg = "lzo",
2861 .test = alg_test_comp, 2580 .test = alg_test_comp,
2581 .fips_allowed = 1,
2862 .suite = { 2582 .suite = {
2863 .comp = { 2583 .comp = {
2864 .comp = { 2584 .comp = {
@@ -3226,6 +2946,7 @@ static const struct alg_test_desc alg_test_descs[] = {
3226 }, { 2946 }, {
3227 .alg = "zlib", 2947 .alg = "zlib",
3228 .test = alg_test_pcomp, 2948 .test = alg_test_pcomp,
2949 .fips_allowed = 1,
3229 .suite = { 2950 .suite = {
3230 .pcomp = { 2951 .pcomp = {
3231 .comp = { 2952 .comp = {