diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2019-01-24 10:48:19 -0500 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2019-01-24 09:48:19 -0600 |
commit | d2e85573d6bcdd23a9c719dacf182165bafa22c9 (patch) | |
tree | 40218173ef68bdddcaa8b1a27cdb057c25f7be07 /tests/wycheproof | |
parent | 5c07d7a87c54a8532b49ba41febe8d526e5734d8 (diff) | |
download | cryptography-d2e85573d6bcdd23a9c719dacf182165bafa22c9.tar.gz cryptography-d2e85573d6bcdd23a9c719dacf182165bafa22c9.tar.bz2 cryptography-d2e85573d6bcdd23a9c719dacf182165bafa22c9.zip |
Run wycheproof RSA tests on LibreSSL>=2.8 (#4737)
* Run wycheproof RSA tests on LibreSSL>=2.8
* Define it this way
* These are errors on libressl
Diffstat (limited to 'tests/wycheproof')
-rw-r--r-- | tests/wycheproof/test_rsa.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/wycheproof/test_rsa.py b/tests/wycheproof/test_rsa.py index 3d35f42d..112805b4 100644 --- a/tests/wycheproof/test_rsa.py +++ b/tests/wycheproof/test_rsa.py @@ -29,8 +29,10 @@ def should_verify(backend, wycheproof): if wycheproof.acceptable: if ( - backend._lib.CRYPTOGRAPHY_OPENSSL_110_OR_GREATER and - wycheproof.has_flag("MissingNull") + ( + backend._lib.CRYPTOGRAPHY_OPENSSL_110_OR_GREATER or + backend._lib.CRYPTOGRAPHY_LIBRESSL_28_OR_GREATER + ) and wycheproof.has_flag("MissingNull") ): return False return True @@ -41,10 +43,8 @@ def should_verify(backend, wycheproof): @pytest.mark.requires_backend_interface(interface=RSABackend) @pytest.mark.supported( only_if=lambda backend: ( - # TODO: this also skips on LibreSSL, which is ok for now, since these - # don't pass on Libre, but we'll need to fix this when LibreSSL 2.8 is - # released. - not backend._lib.CRYPTOGRAPHY_OPENSSL_LESS_THAN_102 + not backend._lib.CRYPTOGRAPHY_OPENSSL_LESS_THAN_102 or + backend._lib.CRYPTOGRAPHY_LIBRESSL_28_OR_GREATER ), skip_message=( "Many of these tests fail on OpenSSL < 1.0.2 and since upstream isn't" |