mirror of
https://github.com/saymrwulf/cryptography.git
synced 2026-05-14 20:37:55 +00:00
Merge pull request #708 from public/invalid-sig-errors
Consume errors on InvalidSignature
This commit is contained in:
commit
993d1c79f4
1 changed files with 2 additions and 0 deletions
|
|
@ -784,6 +784,7 @@ class _RSAVerificationContext(object):
|
|||
# occurs.
|
||||
assert res >= 0
|
||||
if res == 0:
|
||||
assert self._backend._consume_errors()
|
||||
raise InvalidSignature
|
||||
|
||||
def _verify_pkcs1(self, rsa_cdata, evp_pkey, evp_md):
|
||||
|
|
@ -800,6 +801,7 @@ class _RSAVerificationContext(object):
|
|||
# occurs.
|
||||
assert res >= 0
|
||||
if res == 0:
|
||||
assert self._backend._consume_errors()
|
||||
raise InvalidSignature
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue