MCPcopy
hub / github.com/pyca/cryptography / _skip_if_dsa_not_supported

Function _skip_if_dsa_not_supported

tests/hazmat/primitives/test_dsa.py:41–52  ·  view source on GitHub ↗
(
    backend: typing.Any,
    algorithm: hashes.HashAlgorithm,
    p: int,
    q: int,
    g: int,
)

Source from the content-addressed store, hash-verified

39
40
41def _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
55def test_skip_if_dsa_not_supported(backend):

Callers 3

test_dsa_verificationMethod · 0.85
test_dsa_signingMethod · 0.85

Calls 1

dsa_hash_supportedMethod · 0.80

Tested by

no test coverage detected