From 3cbe11a45195a4dcf6f3c385eac2965d1ab1fb72 Mon Sep 17 00:00:00 2001 From: Paul Kehrer Date: Wed, 30 Apr 2014 16:28:08 -0500 Subject: remove hash check in verifier as this isn't a proper restriction --- tests/hazmat/primitives/test_dsa.py | 25 ------------------------- 1 file changed, 25 deletions(-) (limited to 'tests/hazmat/primitives/test_dsa.py') diff --git a/tests/hazmat/primitives/test_dsa.py b/tests/hazmat/primitives/test_dsa.py index e9c9ca24..3f65fd5a 100644 --- a/tests/hazmat/primitives/test_dsa.py +++ b/tests/hazmat/primitives/test_dsa.py @@ -766,31 +766,6 @@ class TestDSAVerification(object): with pytest.raises(AlreadyFinalized): verifier.update(b"more data") - @pytest.mark.parametrize( - "vector", - load_vectors_from_file( - os.path.join( - "asymmetric", "DSA", "FIPS_186-3", "SigVer.rsp"), - load_fips_dsa_sig_vectors - ) - ) - def test_dsa_verifier_invalid_digest_algorithm(self, vector, backend): - digest_algorithm = vector['digest_algorithm'].replace("-", "") - algorithm = self._algorithms_dict[digest_algorithm] - if (not backend.dsa_parameters_supported(vector['p'], vector['q']) - or not backend.dsa_hash_supported(algorithm)): - pytest.skip( - "{0} does not support the provided parameters".format(backend) - ) - - public_key = dsa.DSAPublicKey( - vector['p'], vector['q'], vector['g'], vector['y'] - ) - sig = der_encode_dsa_signature(vector['r'], vector['s']) - with raises_unsupported_algorithm( - _Reasons.UNSUPPORTED_HASH): - public_key.verifier(sig, hashes.MD5(), backend) - def test_dsa_verifier_invalid_backend(self, backend): pretend_backend = object() params = dsa.DSAParameters.generate(1024, backend) -- cgit v1.2.3