Skip to content

Commit 82da89c

Browse files
committed
skip legacy hashes as they brake python compiled against openssl 3.0
1 parent f4b80fc commit 82da89c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/ecdsa/test_malformed_sigs.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,14 @@
1313
"sha384",
1414
"sha512",
1515
]
16+
# skip algorithms broken by change to OpenSSL 3.0 and early versions
17+
# of hashlib that list algorithms that require the legacy provider to work
18+
# https://bugs.python.org/issue38820
19+
algorithms_available = [
20+
i
21+
for i in algorithms_available
22+
if i not in ("mdc2", "md2", "md4", "whirlpool", "ripemd160")
23+
]
1624
from functools import partial
1725
import pytest
1826
import sys

0 commit comments

Comments
 (0)