Lines Matching refs:checkSum
80 checksum = calcChecksum(data[:8] + b'\0\0\0\0' + data[12:])
82 checksum = calcChecksum(data)
85 assert checksum == entry.checksum, "bad checksum for '%s' table" % tag
86 elif checksum != entry.checkSum:
88 print("bad checksum for '%s' table" % tag)
146 entry.checkSum = calcChecksum(data[:8] + b'\0\0\0\0' + data[12:])
150 entry.checkSum = calcChecksum(data)
240 checksums.append(self.tables[tags[i]].checkSum)
242 # TODO(behdad) I'm fairly sure the checksum for woff is not working correctly.
245 # Create a SFNT directory for checksum calculation purposes
251 for item in ['tag', 'checkSum', 'offset', 'length']:
259 checksum = sum(checksums) & 0xffffffff
261 checksumadjustment = (0xB1B0AFBA - checksum) & 0xffffffff
266 # write the checksum to the file
300 checkSum: L
332 checkSum: L # original checksum
442 """Calculate the checksum for an arbitrary block of data.
444 calculate a checksum in chunks by feeding it a previous