Lines Matching full:pytest
12 import pytest
63 pytest.skip("Traditional OpenSSL format blocked in FIPS mode")
65 pytest.skip("Encrypted PEM_Serialization blocked in FIPS mode")
69 @pytest.mark.requires_backend_interface(interface=RSABackend)
70 @pytest.mark.parametrize(
90 @pytest.mark.requires_backend_interface(interface=RSABackend)
91 @pytest.mark.parametrize(
120 @pytest.mark.requires_backend_interface(interface=DERSerializationBackend)
122 @pytest.mark.requires_backend_interface(interface=RSABackend)
123 @pytest.mark.parametrize(
144 @pytest.mark.requires_backend_interface(interface=DSABackend)
145 @pytest.mark.parametrize(
166 @pytest.mark.parametrize(
169 @pytest.mark.requires_backend_interface(interface=RSABackend)
174 with pytest.raises(TypeError):
183 @pytest.mark.parametrize(
190 @pytest.mark.requires_backend_interface(interface=EllipticCurveBackend)
206 @pytest.mark.parametrize(
209 @pytest.mark.requires_backend_interface(interface=RSABackend)
214 with pytest.raises(ValueError):
223 @pytest.mark.parametrize(
226 @pytest.mark.requires_backend_interface(interface=RSABackend)
231 with pytest.raises(TypeError):
240 @pytest.mark.parametrize(
246 @pytest.mark.requires_backend_interface(interface=RSABackend)
250 with pytest.raises(TypeError):
262 with pytest.raises(ValueError):
265 with pytest.raises(ValueError):
291 with pytest.raises(ValueError):
294 with pytest.raises(ValueError):
313 with pytest.raises(ValueError):
316 with pytest.raises(ValueError):
321 @pytest.mark.parametrize(
333 @pytest.mark.requires_backend_interface(interface=RSABackend)
346 with pytest.raises(ValueError):
349 @pytest.mark.parametrize(
360 @pytest.mark.requires_backend_interface(interface=DSABackend)
370 @pytest.mark.requires_backend_interface(interface=EllipticCurveBackend)
388 with pytest.raises(ValueError):
392 @pytest.mark.requires_backend_interface(interface=PEMSerializationBackend)
394 @pytest.mark.parametrize(
433 @pytest.mark.parametrize(
455 @pytest.mark.parametrize(
464 @pytest.mark.requires_backend_interface(interface=EllipticCurveBackend)
480 @pytest.mark.parametrize(
502 @pytest.mark.parametrize(
521 @pytest.mark.requires_backend_interface(interface=EllipticCurveBackend)
537 @pytest.mark.skip_fips(
584 @pytest.mark.parametrize(
595 with pytest.raises(TypeError):
616 with pytest.raises(ValueError):
621 @pytest.mark.parametrize(
632 with pytest.raises(TypeError):
640 @pytest.mark.parametrize(
651 with pytest.raises(ValueError):
659 @pytest.mark.parametrize(
672 with pytest.raises(TypeError):
683 with pytest.raises(ValueError):
686 with pytest.raises(ValueError):
694 with pytest.raises(ValueError):
700 with pytest.raises(ValueError):
718 with pytest.raises(ValueError):
721 with pytest.raises(ValueError):
747 with pytest.raises(ValueError):
750 with pytest.raises(ValueError):
773 with pytest.raises(ValueError):
798 with pytest.raises(ValueError):
801 with pytest.raises(ValueError):
832 with pytest.raises(ValueError):
835 with pytest.raises(ValueError):
952 @pytest.mark.parametrize(
956 with pytest.raises(ValueError):
964 @pytest.mark.parametrize(
968 with pytest.raises(ValueError):
977 @pytest.mark.requires_backend_interface(interface=RSABackend)
982 with pytest.raises(UnsupportedAlgorithm):
988 with pytest.raises(ValueError):
994 with pytest.raises(ValueError):
1000 with pytest.raises(ValueError):
1005 with pytest.raises(ValueError):
1033 with pytest.raises(ValueError):
1049 with pytest.raises(ValueError):
1090 @pytest.mark.requires_backend_interface(interface=DSABackend)
1095 with pytest.raises(ValueError):
1128 with pytest.raises(ValueError):
1147 with pytest.raises(ValueError):
1204 @pytest.mark.requires_backend_interface(interface=EllipticCurveBackend)
1304 with pytest.raises(ValueError):
1313 with pytest.raises(ValueError):
1324 with pytest.raises(NotImplementedError):
1334 with pytest.raises(ValueError):
1338 @pytest.mark.supported(
1371 with pytest.raises(ValueError):
1379 with pytest.raises(ValueError):
1385 with pytest.raises(ValueError):
1389 with pytest.raises(ValueError):
1393 @pytest.mark.supported(
1436 @pytest.mark.parametrize(
1467 with pytest.raises(ValueError):
1473 with pytest.raises(ValueError):
1481 @pytest.mark.supported(
1524 @pytest.mark.parametrize(
1547 with pytest.raises(ValueError):
1553 with pytest.raises(ValueError):
1562 with pytest.raises(ValueError):
1566 with pytest.raises(ValueError):
1572 @pytest.mark.supported(
1615 @pytest.mark.parametrize(
1638 with pytest.raises(ValueError):
1644 with pytest.raises(ValueError):
1653 with pytest.raises(ValueError):
1657 with pytest.raises(ValueError):
1663 @pytest.mark.supported(
1706 @pytest.mark.parametrize(
1729 with pytest.raises(ValueError):
1735 with pytest.raises(ValueError):
1744 with pytest.raises(ValueError):
1749 with pytest.raises(ValueError):
1760 @pytest.mark.skip_fips(reason="non-FIPS parameters")
1789 with pytest.raises(ValueError):
1792 @pytest.mark.skip_fips(reason="non-FIPS parameters")
1818 with pytest.raises(ValueError):
1822 @pytest.mark.requires_backend_interface(interface=RSABackend)
1823 @pytest.mark.requires_backend_interface(interface=DSABackend)
1824 @pytest.mark.requires_backend_interface(interface=EllipticCurveBackend)
1826 @pytest.mark.parametrize(
1841 pytest.skip("Requires OpenSSL with Ed25519 support")
1887 with pytest.raises(ValueError):
1890 @pytest.mark.parametrize(
1905 pytest.skip("Requires OpenSSL with Ed25519 support")
1907 pytest.skip("Requires bcrypt module")
1989 @pytest.mark.supported(
2044 with pytest.raises(ValueError):
2046 with pytest.raises(ValueError):
2049 @pytest.mark.supported(
2059 with pytest.raises(UnsupportedAlgorithm):
2063 with pytest.raises(UnsupportedAlgorithm):
2072 with pytest.raises(ValueError):
2139 with pytest.raises(UnsupportedAlgorithm):
2144 with pytest.raises(UnsupportedAlgorithm):
2149 with pytest.raises(ValueError):
2154 with pytest.raises(ValueError):
2159 with pytest.raises(ValueError):
2165 with pytest.raises(UnsupportedAlgorithm):
2170 with pytest.raises(ValueError):
2177 with pytest.raises(ValueError):
2188 with pytest.raises(ValueError):
2197 with pytest.raises(ValueError):
2206 with pytest.raises(ValueError):
2221 with pytest.raises(ValueError):
2231 with pytest.raises(ValueError):
2237 with pytest.raises(ValueError):
2242 with pytest.raises(ValueError):
2263 with pytest.raises(ValueError):
2269 with pytest.raises(ValueError):
2274 with pytest.raises(ValueError):
2277 with pytest.raises(ValueError):
2280 @pytest.mark.supported(
2288 with pytest.raises(ValueError):
2296 with pytest.raises(ValueError):
2302 with pytest.raises(ValueError):
2308 with pytest.raises(ValueError):
2316 with pytest.raises(ValueError):
2323 @pytest.mark.parametrize(
2346 with pytest.raises(ValueError):