a wrapper ignoring FIPS for hashlib.md5

This commit is contained in:
Yu Ming Zhu 2020-06-16 11:55:39 +00:00 committed by Tomas Kopecek
parent 0a61104280
commit a893e8bf2b
9 changed files with 29 additions and 19 deletions

View file

@ -333,7 +333,7 @@ class WindowsBuild(object):
elif checksum_type == 'sha256':
checksum = hashlib.sha256()
elif checksum_type == 'md5':
checksum = hashlib.md5()
checksum = md5_constructor.md5() # noqa: F821
else:
raise BuildError('Unknown checksum type %s for %s' % ( # noqa: F821
checksum_type,