Skip to content

Commit 9f00b26

Browse files
Merge pull request #40 from secure-systems-lab/fix_build_failures
Address build failure
2 parents e471fc6 + ee39866 commit 9f00b26

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

securesystemslib/ecdsa_keys.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,9 +290,11 @@ def verify_signature(public_key, method, signature, data):
290290
raise securesystemslib.exceptions.FormatError('Invalid signature or'
291291
' data: ' + str(e))
292292

293-
# verify() returns either True or raises an 'InvalidSignature' exception.
293+
# verify() raises an 'InvalidSignature' exception if 'signature'
294+
# is invalid.
294295
try:
295-
return verifier.verify()
296+
verifier.verify()
297+
return True
296298

297299
except cryptography.exceptions.InvalidSignature:
298300
return False

0 commit comments

Comments
 (0)