diff options
author | Andrew Wilcox <AWilcox@Wilcox-Tech.com> | 2015-10-18 11:24:02 -0500 |
---|---|---|
committer | Andrew Wilcox <AWilcox@Wilcox-Tech.com> | 2015-10-18 11:24:02 -0500 |
commit | 644d863bd21df01debca6abdf99428a73200e897 (patch) | |
tree | 36ebf99f0c54e7d2e861fff978fbf3a049672b4c | |
parent | 71460077be9781bf373c9290edcdcd1e2359f834 (diff) | |
download | apkkit-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.py | 2 |
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 |