summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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