From 644d863bd21df01debca6abdf99428a73200e897 Mon Sep 17 00:00:00 2001 From: Andrew Wilcox Date: Sun, 18 Oct 2015 11:24:02 -0500 Subject: APKFile: Sign with SHA256 too. Since we have our own apk-tools patchset we can do this now. --- apkkit/io/apkfile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3-70-g09d2