Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

Commit

Permalink
Merge 339d80e into f4e597f
Browse files Browse the repository at this point in the history
  • Loading branch information
Rock Huang committed Feb 21, 2020
2 parents f4e597f + 339d80e commit 077abe4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions adb/sign_cryptography.py
Expand Up @@ -25,10 +25,10 @@ class CryptographySigner(adb_protocol.AuthSigner):
"""AuthSigner using cryptography.io."""

def __init__(self, rsa_key_path):
with open(rsa_key_path + '.pub') as rsa_pub_file:
with open(rsa_key_path + '.pub', 'rb') as rsa_pub_file:
self.public_key = rsa_pub_file.read()

with open(rsa_key_path) as rsa_prv_file:
with open(rsa_key_path, 'rb') as rsa_prv_file:
self.rsa_key = serialization.load_pem_private_key(
rsa_prv_file.read(), None, default_backend())

Expand Down

0 comments on commit 077abe4

Please sign in to comment.