python/build/verify.py: support SHA256

This commit is contained in:
Max Kellermann 2021-09-21 16:22:15 +02:00
parent 10782f4c84
commit e525465592
1 changed files with 2 additions and 0 deletions

View File

@ -31,6 +31,8 @@ def guess_digest_algorithm(digest):
return hashlib.sha1
elif l == 64:
return hashlib.sha256
elif l == 128:
return hashlib.sha512
else:
return None