File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -177,12 +177,12 @@ def __init__(self, algorithm='SHA256'):
177
177
178
178
def sign (self , msg , key ):
179
179
asn1sig = key .sign (msg , ec .ECDSA (self .hash_algorithm ()))
180
- (r ,s ) = decode_dss_signature (asn1sig )
180
+ (r , s ) = decode_dss_signature (asn1sig )
181
181
return int_to_bytes (r ) + int_to_bytes (s )
182
182
183
183
def verify (self , msg , sig , key ):
184
184
try :
185
- (r ,s ) = self ._split_raw_signature (sig )
185
+ (r , s ) = self ._split_raw_signature (sig )
186
186
asn1sig = encode_dss_signature (r , s )
187
187
key .verify (asn1sig , msg , ec .ECDSA (self .hash_algorithm ()))
188
188
except InvalidSignature as err :
@@ -195,7 +195,7 @@ def _split_raw_signature(sig):
195
195
c_length = len (sig ) // 2
196
196
r = int_from_bytes (sig [:c_length ], byteorder = 'big' )
197
197
s = int_from_bytes (sig [c_length :], byteorder = 'big' )
198
- return (r ,s )
198
+ return (r , s )
199
199
200
200
201
201
class PSSSigner (Signer ):
You can’t perform that action at this time.
0 commit comments