Skip to content

Commit

Permalink
fix: use int.from_bytes (#846)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
busunkim96 and release-please[bot] committed Aug 20, 2021
1 parent d6eea69 commit 466aed9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions google/auth/crypt/es256.py
Expand Up @@ -53,8 +53,8 @@ def verify(self, message, signature):
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)
Expand Down
Binary file modified system_tests/secrets.tar.enc
Binary file not shown.

0 comments on commit 466aed9

Please sign in to comment.