aboutsummaryrefslogtreecommitdiffstats
path: root/tests/wycheproof
diff options
context:
space:
mode:
Diffstat (limited to 'tests/wycheproof')
-rw-r--r--tests/wycheproof/test_rsa.py12
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"