Commit 644d863b authored by A. Wilcox's avatar A. Wilcox 🦊
Browse files

APKFile: Sign with SHA256 too.

Since we have our own apk-tools patchset we can do this now.
parent 71460077
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment