@@ -3733,15 +3733,15 @@ def GetFileChecksum(inbytes, checksumtype="md5", encodedata=True, formatspecs=__
37333733
37343734 return "0"
37353735
3736- def ValidateHeaderChecksum(inlist=None, checksumtype="md5", inchecksum="0", formatspecs=__file_format_dict__):
3737- calc = GetHeaderChecksum(inlist, checksumtype, True, formatspecs)
3736+ def ValidateHeaderChecksum(inlist=None, checksumtype="md5", inchecksum="0", formatspecs=__file_format_dict__, saltkey=None ):
3737+ calc = GetHeaderChecksum(inlist, checksumtype, True, formatspecs, saltkey )
37383738 want = (inchecksum or "0").strip().lower()
37393739 if want.startswith("0x"):
37403740 want = want[2:]
37413741 return hmac.compare_digest(want, calc)
37423742
3743- def ValidateFileChecksum(infile, checksumtype="md5", inchecksum="0", formatspecs=__file_format_dict__):
3744- calc = GetFileChecksum(infile, checksumtype, True, formatspecs)
3743+ def ValidateFileChecksum(infile, checksumtype="md5", inchecksum="0", formatspecs=__file_format_dict__, saltkey=None ):
3744+ calc = GetFileChecksum(infile, checksumtype, True, formatspecs, saltkey )
37453745 want = (inchecksum or "0").strip().lower()
37463746 if want.startswith("0x"):
37473747 want = want[2:]
0 commit comments