• Home
  • Raw
  • Download

Lines Matching full:pytest

11 import pytest
137 pytest.skip(
142 @pytest.mark.requires_backend_interface(interface=RSABackend)
144 with pytest.raises(pytest.skip.Exception):
172 @pytest.mark.requires_backend_interface(interface=RSABackend)
174 @pytest.mark.parametrize(
184 pytest.skip("Key size not FIPS compliant: {}".format(key_size))
186 pytest.skip(
197 with pytest.raises(ValueError):
202 with pytest.raises(ValueError):
207 with pytest.raises(ValueError):
213 with pytest.raises(ValueError):
218 with pytest.raises(ValueError):
223 @pytest.mark.parametrize(
259 @pytest.mark.parametrize(
266 @pytest.mark.supported(
291 @pytest.mark.parametrize(
298 @pytest.mark.supported(
328 @pytest.mark.parametrize(
332 @pytest.mark.supported(
353 with pytest.raises(ValueError):
363 @pytest.mark.supported(
393 @pytest.mark.requires_backend_interface(interface=RSABackend)
395 @pytest.mark.supported(
401 @pytest.mark.parametrize(
430 @pytest.mark.supported(
439 @pytest.mark.parametrize(
488 @pytest.mark.parametrize(
503 @pytest.mark.supported(
526 @pytest.mark.supported(
535 @pytest.mark.supported(
541 with pytest.raises(ValueError):
551 @pytest.mark.supported(
562 with pytest.raises(ValueError):
571 @pytest.mark.supported(
579 with pytest.warns(CryptographyDeprecationWarning):
583 with pytest.raises(AlreadyFinalized):
585 with pytest.raises(AlreadyFinalized):
595 with pytest.raises(TypeError):
598 @pytest.mark.supported(
615 @pytest.mark.supported(
623 with pytest.raises(ValueError):
628 @pytest.mark.supported(
647 @pytest.mark.supported(
665 @pytest.mark.supported(
671 @pytest.mark.supported(
684 @pytest.mark.supported(
698 with pytest.raises(ValueError):
701 @pytest.mark.supported(
709 with pytest.raises(TypeError), pytest.warns(
716 @pytest.mark.supported(
724 with pytest.raises(TypeError), pytest.warns(
740 with pytest.raises(TypeError):
746 with pytest.raises(ValueError):
752 @pytest.mark.requires_backend_interface(interface=RSABackend)
754 @pytest.mark.supported(
760 @pytest.mark.parametrize(
796 @pytest.mark.supported(
808 with pytest.raises(InvalidSignature):
819 with pytest.raises(InvalidSignature):
851 with pytest.raises(InvalidSignature):
859 @pytest.mark.supported(
871 with pytest.raises(InvalidSignature):
876 @pytest.mark.supported(
882 @pytest.mark.parametrize(
907 @pytest.mark.supported(
930 with pytest.raises(InvalidSignature):
941 @pytest.mark.supported(
966 with pytest.raises(InvalidSignature):
977 @pytest.mark.supported(
1000 with pytest.raises(InvalidSignature):
1021 with pytest.raises(TypeError):
1032 @pytest.mark.supported(
1045 with pytest.warns(CryptographyDeprecationWarning):
1051 with pytest.raises(AlreadyFinalized):
1053 with pytest.raises(AlreadyFinalized):
1064 @pytest.mark.supported(
1074 with pytest.raises(TypeError), pytest.warns(
1082 with pytest.raises(TypeError):
1085 @pytest.mark.supported(
1104 @pytest.mark.supported(
1113 @pytest.mark.supported(
1124 with pytest.raises(ValueError):
1135 @pytest.mark.supported(
1158 with pytest.raises(InvalidSignature):
1200 with pytest.raises(ValueError):
1204 @pytest.mark.requires_backend_interface(interface=RSABackend)
1206 test_rsa_pss_mgf1_sha1 = pytest.mark.supported(
1233 test_rsa_pss_mgf1_sha224 = pytest.mark.supported(
1260 test_rsa_pss_mgf1_sha256 = pytest.mark.supported(
1287 test_rsa_pss_mgf1_sha384 = pytest.mark.supported(
1314 test_rsa_pss_mgf1_sha512 = pytest.mark.supported(
1342 @pytest.mark.requires_backend_interface(interface=RSABackend)
1344 test_rsa_pkcs1v15_verify_sha1 = pytest.mark.supported(
1364 test_rsa_pkcs1v15_verify_sha224 = pytest.mark.supported(
1384 test_rsa_pkcs1v15_verify_sha256 = pytest.mark.supported(
1404 test_rsa_pkcs1v15_verify_sha384 = pytest.mark.supported(
1424 test_rsa_pkcs1v15_verify_sha512 = pytest.mark.supported(
1447 with pytest.raises(TypeError):
1451 with pytest.raises(TypeError):
1457 with pytest.raises(ValueError):
1478 with pytest.raises(TypeError):
1490 with pytest.raises(TypeError):
1494 @pytest.mark.requires_backend_interface(interface=RSABackend)
1496 @pytest.mark.supported(
1502 @pytest.mark.parametrize(
1534 @pytest.mark.supported(
1542 with pytest.raises(ValueError):
1545 @pytest.mark.supported(
1553 with pytest.raises(ValueError):
1556 @pytest.mark.supported(
1568 with pytest.raises(ValueError):
1571 @pytest.mark.supported(
1581 @pytest.mark.parametrize(
1615 @pytest.mark.supported(
1627 @pytest.mark.parametrize("vector", _build_oaep_sha2_vectors())
1651 @pytest.mark.supported(
1678 with pytest.raises(ValueError):
1688 @pytest.mark.supported(
1716 with pytest.raises(ValueError):
1737 @pytest.mark.requires_backend_interface(interface=RSABackend)
1739 @pytest.mark.supported(
1749 @pytest.mark.parametrize(
1783 @pytest.mark.supported(
1795 @pytest.mark.parametrize(
1829 @pytest.mark.supported(
1835 @pytest.mark.parametrize(
1863 @pytest.mark.parametrize(
1892 with pytest.raises(ValueError):
1896 with pytest.raises(ValueError):
1905 with pytest.raises(TypeError):
1921 @pytest.mark.requires_backend_interface(interface=RSABackend)
1960 with pytest.raises(TypeError):
1963 with pytest.raises(TypeError):
1966 @pytest.mark.parametrize(
1981 with pytest.raises(TypeError):
1992 @pytest.mark.parametrize(
2005 with pytest.raises(ValueError):
2008 @pytest.mark.parametrize(
2033 with pytest.raises(ValueError):
2115 @pytest.mark.parametrize(
2139 with pytest.raises(ValueError):
2143 @pytest.mark.requires_backend_interface(interface=RSABackend)
2144 @pytest.mark.requires_backend_interface(interface=PEMSerializationBackend)
2146 @pytest.mark.parametrize(
2176 @pytest.mark.parametrize(
2187 with pytest.raises(ValueError):
2190 @pytest.mark.parametrize(
2213 @pytest.mark.parametrize(
2250 @pytest.mark.skip_fips(
2253 @pytest.mark.parametrize(
2288 with pytest.raises(ValueError):
2297 with pytest.raises(TypeError):
2306 with pytest.raises(TypeError):
2315 with pytest.raises(TypeError):
2324 with pytest.raises(ValueError):
2332 @pytest.mark.requires_backend_interface(interface=RSABackend)
2333 @pytest.mark.requires_backend_interface(interface=PEMSerializationBackend)
2335 @pytest.mark.parametrize(
2396 with pytest.raises(ValueError):
2400 with pytest.raises(ValueError):
2404 with pytest.raises(ValueError):
2409 with pytest.raises(ValueError):
2417 with pytest.raises(TypeError):
2422 with pytest.raises(TypeError):
2425 @pytest.mark.parametrize(
2452 with pytest.raises(ValueError):