mirror of
https://github.com/certbot/certbot.git
synced 2026-08-03 08:03:10 +02:00
Remove bool() cast from Signature.verify
This commit is contained in:
@@ -109,8 +109,8 @@ class Signature(util.ACMEObject):
|
|||||||
|
|
||||||
"""
|
"""
|
||||||
hashed = Crypto.Hash.SHA256.new(self.nonce + msg)
|
hashed = Crypto.Hash.SHA256.new(self.nonce + msg)
|
||||||
return bool(Crypto.Signature.PKCS1_v1_5.new(self.jwk.key).verify(
|
return Crypto.Signature.PKCS1_v1_5.new(self.jwk.key).verify(
|
||||||
hashed, self.sig))
|
hashed, self.sig)
|
||||||
|
|
||||||
def to_json(self):
|
def to_json(self):
|
||||||
return {
|
return {
|
||||||
|
|||||||
Reference in New Issue
Block a user