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'):
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
201201class PSSSigner (Signer ):
You can’t perform that action at this time.
0 commit comments