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 2020from cryptography .hazmat .primitives .keywrap import aes_key_wrap , aes_key_unwrap , InvalidUnwrap
2121from cryptography .hazmat .primitives .padding import PKCS7
2222from cryptography .hazmat .primitives .serialization import load_pem_private_key , load_pem_public_key
23- from cryptography .utils import int_from_bytes , int_to_bytes
23+ from cryptography .utils import int_to_bytes
2424from cryptography .x509 import load_pem_x509_certificate
2525
2626_binding = None
@@ -145,8 +145,8 @@ def _raw_to_der(self, raw_signature):
145145
146146 r_bytes = raw_signature [:component_length ]
147147 s_bytes = raw_signature [component_length :]
148- r = int_from_bytes (r_bytes , "big" )
149- s = int_from_bytes (s_bytes , "big" )
148+ r = int . from_bytes (r_bytes , "big" )
149+ s = int . from_bytes (s_bytes , "big" )
150150 return encode_dss_signature (r , s )
151151
152152 def sign (self , msg ):
You can’t perform that action at this time.
0 commit comments