Skip to content

Commit f7b90ba

Browse files
authored
Add files via upload
1 parent 259bad8 commit f7b90ba

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

pyfoxfile.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)