From d85b4aa11b986e5b655f907632771f7e0b7fa872 Mon Sep 17 00:00:00 2001 From: Piotr Kucharski Date: Tue, 16 Jul 2019 15:41:18 +0200 Subject: [PATCH] restore GetPublicKey interface mistakenly removed in 4b555e64d1e49d91ed851c59bb11b734b302f71d --- adb/sign_cryptography.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/adb/sign_cryptography.py b/adb/sign_cryptography.py index 31a9ef7..b042642 100644 --- a/adb/sign_cryptography.py +++ b/adb/sign_cryptography.py @@ -35,3 +35,6 @@ def __init__(self, rsa_key_path): def Sign(self, data): return self.rsa_key.sign( data, padding.PKCS1v15(), utils.Prehashed(hashes.SHA1())) + + def GetPublicKey(self): + return self.public_key