diff options
author | Bu Sun Kim <8822365+busunkim96@users.noreply.github.com> | 2021-08-20 12:14:15 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-20 11:14:15 -0700 |
commit | 466aed99f5c2ba15d2036fa21cc83b3f0fc22639 (patch) | |
tree | 76dba17093f91c845c349dacab430cac40241778 | |
parent | d6eea6986f78dc9288106bb44ed55efbb842828c (diff) | |
download | google-auth-library-python-466aed99f5c2ba15d2036fa21cc83b3f0fc22639.tar.gz |
fix: use int.from_bytes (#846)
* chore: release 2.0.1 (#845)
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
* chore: update secrest
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
-rw-r--r-- | google/auth/crypt/es256.py | 4 | ||||
-rw-r--r-- | system_tests/secrets.tar.enc | bin | 10323 -> 10322 bytes |
2 files changed, 2 insertions, 2 deletions
diff --git a/google/auth/crypt/es256.py b/google/auth/crypt/es256.py index c6d6176..7465cd6 100644 --- a/google/auth/crypt/es256.py +++ b/google/auth/crypt/es256.py @@ -53,8 +53,8 @@ class ES256Verifier(base.Verifier): sig_bytes = _helpers.to_bytes(signature) if len(sig_bytes) != 64: return False - r = utils.int_from_bytes(sig_bytes[:32], byteorder="big") - s = utils.int_from_bytes(sig_bytes[32:], byteorder="big") + r = int.from_bytes(sig_bytes[:32], byteorder="big") + s = int.from_bytes(sig_bytes[32:], byteorder="big") asn1_sig = encode_dss_signature(r, s) message = _helpers.to_bytes(message) diff --git a/system_tests/secrets.tar.enc b/system_tests/secrets.tar.enc Binary files differindex 62ef5a7..dab541c 100644 --- a/system_tests/secrets.tar.enc +++ b/system_tests/secrets.tar.enc |