Searched refs:inputfile (Results 1 – 1 of 1) sorted by relevance
14 def calc_hash(inputfile): argument16 inputfile.seek(0)18 buf = inputfile.read(ALIGN_SIZE)30 def fill_header(outputfile, inputfile, argv): argument35 inputfile.seek(0, 2)37 length = (inputfile.tell() + (ALIGN_SIZE - 1)) & ~(ALIGN_SIZE - 1)47 buf[96:128] = calc_hash(inputfile)52 def fill_image(outputfile, inputfile): argument53 inputfile.seek(0)55 buf = inputfile.read(ALIGN_SIZE)[all …]