Commit c623aa0f authored by Max Kellermann's avatar Max Kellermann

python/build/verify: support SHA-1 and SHA-256

parent 79403afb
......@@ -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
......
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