We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 466aed9 commit b79b554Copy full SHA for b79b554
google/auth/crypt/es256.py
@@ -15,7 +15,6 @@
15
"""ECDSA (ES256) verifier and signer that use the ``cryptography`` library.
16
"""
17
18
-from cryptography import utils
19
import cryptography.exceptions
20
from cryptography.hazmat import backends
21
from cryptography.hazmat.primitives import hashes
@@ -121,7 +120,7 @@ def sign(self, message):
121
120
122
# Convert ASN1 encoded signature to (r||s) raw signature.
123
(r, s) = decode_dss_signature(asn1_signature)
124
- return utils.int_to_bytes(r, 32) + utils.int_to_bytes(s, 32)
+ return r.to_bytes(32, byteorder="big") + s.to_bytes(32, byteorder="big")
125
126
@classmethod
127
def from_string(cls, key, key_id=None):
0 commit comments