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