@@ -3740,15 +3740,15 @@ def GetFileChecksum(inbytes, checksumtype="md5", encodedata=True, formatspecs=__
37403740
37413741 return "0"
37423742
3743- def ValidateHeaderChecksum(inlist=None, checksumtype="md5", inchecksum="0", formatspecs=__file_format_dict__):
3744- calc = GetHeaderChecksum(inlist, checksumtype, True, formatspecs)
3743+ def ValidateHeaderChecksum(inlist=None, checksumtype="md5", inchecksum="0", formatspecs=__file_format_dict__, saltkey=None ):
3744+ calc = GetHeaderChecksum(inlist, checksumtype, True, formatspecs, saltkey )
37453745 want = (inchecksum or "0").strip().lower()
37463746 if want.startswith("0x"):
37473747 want = want[2:]
37483748 return hmac.compare_digest(want, calc)
37493749
3750- def ValidateFileChecksum(infile, checksumtype="md5", inchecksum="0", formatspecs=__file_format_dict__):
3751- calc = GetFileChecksum(infile, checksumtype, True, formatspecs)
3750+ def ValidateFileChecksum(infile, checksumtype="md5", inchecksum="0", formatspecs=__file_format_dict__, saltkey=None ):
3751+ calc = GetFileChecksum(infile, checksumtype, True, formatspecs, saltkey )
37523752 want = (inchecksum or "0").strip().lower()
37533753 if want.startswith("0x"):
37543754 want = want[2:]
0 commit comments