Skip to content

Commit 29b4db4

Browse files
committed
make the lama happier
1 parent 1dd13d9 commit 29b4db4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/cryptojwt/jws.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,12 +177,12 @@ def __init__(self, algorithm='SHA256'):
177177

178178
def sign(self, msg, key):
179179
asn1sig = key.sign(msg, ec.ECDSA(self.hash_algorithm()))
180-
(r,s) = decode_dss_signature(asn1sig)
180+
(r, s) = decode_dss_signature(asn1sig)
181181
return int_to_bytes(r) + int_to_bytes(s)
182182

183183
def verify(self, msg, sig, key):
184184
try:
185-
(r,s) = self._split_raw_signature(sig)
185+
(r, s) = self._split_raw_signature(sig)
186186
asn1sig = encode_dss_signature(r, s)
187187
key.verify(asn1sig, msg, ec.ECDSA(self.hash_algorithm()))
188188
except InvalidSignature as err:
@@ -195,7 +195,7 @@ def _split_raw_signature(sig):
195195
c_length = len(sig) // 2
196196
r = int_from_bytes(sig[:c_length], byteorder='big')
197197
s = int_from_bytes(sig[c_length:], byteorder='big')
198-
return (r,s)
198+
return (r, s)
199199

200200

201201
class PSSSigner(Signer):

0 commit comments

Comments
 (0)