Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ python:
addons:
apt:
packages:
-
- rustc
- cargo
install:
- pip install codecov
- pip install tox tox-travis
Expand Down
5 changes: 2 additions & 3 deletions src/cryptojwt/jws/dsa.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
from cryptography.hazmat.primitives.asymmetric import ec
from cryptography.hazmat.primitives.asymmetric.utils import decode_dss_signature
from cryptography.hazmat.primitives.asymmetric.utils import encode_dss_signature
from cryptography.utils import int_from_bytes
from cryptography.utils import int_to_bytes

from ..exception import BadSignature
Expand Down Expand Up @@ -102,6 +101,6 @@ def _split_raw_signature(sig):
:return: A 2-tuple
"""
c_length = len(sig) // 2
r = int_from_bytes(sig[:c_length], byteorder="big")
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")
return r, s