We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 545e53a commit d4a2428Copy full SHA for d4a2428
1 file changed
src/cryptojwt/jws/dsa.py
@@ -3,7 +3,6 @@
3
from cryptography.hazmat.primitives.asymmetric import ec
4
from cryptography.hazmat.primitives.asymmetric.utils import decode_dss_signature
5
from cryptography.hazmat.primitives.asymmetric.utils import encode_dss_signature
6
-from cryptography.utils import int_from_bytes
7
from cryptography.utils import int_to_bytes
8
9
from ..exception import BadSignature
@@ -102,6 +101,6 @@ def _split_raw_signature(sig):
102
101
:return: A 2-tuple
103
"""
104
c_length = len(sig) // 2
105
- r = int_from_bytes(sig[:c_length], byteorder="big")
106
- s = int_from_bytes(sig[c_length:], byteorder="big")
+ r = int.from_bytes(sig[:c_length], byteorder="big")
+ s = int.from_bytes(sig[c_length:], byteorder="big")
107
return r, s
0 commit comments