summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Wilcox <AWilcox@Wilcox-Tech.com>2015-10-18 11:24:02 -0500
committerAndrew Wilcox <AWilcox@Wilcox-Tech.com>2015-10-18 11:24:02 -0500
commit644d863bd21df01debca6abdf99428a73200e897 (patch)
tree36ebf99f0c54e7d2e861fff978fbf3a049672b4c
parent71460077be9781bf373c9290edcdcd1e2359f834 (diff)
downloadapkkit-644d863bd21df01debca6abdf99428a73200e897.tar.gz
apkkit-644d863bd21df01debca6abdf99428a73200e897.tar.bz2
apkkit-644d863bd21df01debca6abdf99428a73200e897.tar.xz
apkkit-644d863bd21df01debca6abdf99428a73200e897.zip
APKFile: Sign with SHA256 too.
Since we have our own apk-tools patchset we can do this now.
-rw-r--r--apkkit/io/apkfile.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/apkkit/io/apkfile.py b/apkkit/io/apkfile.py
index aa7cb2d..cbab844 100644
--- a/apkkit/io/apkfile.py
+++ b/apkkit/io/apkfile.py
@@ -59,7 +59,7 @@ def _sign_control(control, privkey, pubkey):
password=getpass() or None,
backend=default_backend()
)
- signer = private_key.signer(padding.PKCS1v15(), hashes.SHA1())
+ signer = private_key.signer(padding.PKCS1v15(), hashes.SHA256())
signer.update(control.getvalue())
signature = signer.finalize()
del signer