(
backend: typing.Any,
algorithm: hashes.HashAlgorithm,
p: int,
q: int,
g: int,
)
| 39 | |
| 40 | |
| 41 | def _skip_if_dsa_not_supported( |
| 42 | backend: typing.Any, |
| 43 | algorithm: hashes.HashAlgorithm, |
| 44 | p: int, |
| 45 | q: int, |
| 46 | g: int, |
| 47 | ) -> None: |
| 48 | if not backend.dsa_hash_supported(algorithm): |
| 49 | pytest.skip( |
| 50 | f"{backend} does not support the provided args. " |
| 51 | f"p: {p.bit_length()}, hash: {algorithm.name}" |
| 52 | ) |
| 53 | |
| 54 | |
| 55 | def test_skip_if_dsa_not_supported(backend): |
no test coverage detected