From c623aa0f06118ee5f1b6d6dcf21b207cf4d6fefb Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 29 Dec 2016 21:19:40 +0100 Subject: [PATCH] python/build/verify: support SHA-1 and SHA-256 --- python/build/verify.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/python/build/verify.py b/python/build/verify.py index 5082ef521..b730c4e39 100644 --- a/python/build/verify.py +++ b/python/build/verify.py @@ -27,6 +27,10 @@ def guess_digest_algorithm(digest): l = len(digest) if l == 32: return hashlib.md5 + elif l == 40: + return hashlib.sha1 + elif l == 64: + return hashlib.sha256 else: return None