Lines Matching defs:crc
11 './pycrc.py --model=crc-32c --generate c --algorithm=table-driven'
94 def crc_update(crc, data):
98 crc: 32-bit checksum to update as long.
110 crc = crc ^ _MASK
112 table_index = (crc ^ b) & 0xff
113 crc = (CRC_TABLE[table_index] ^ (crc >> 8)) & _MASK
114 return crc ^ _MASK
117 def crc_finalize(crc):
120 This function should be called as last step of crc calculation.
123 crc: 32-bit checksum as long.
128 return crc & _MASK
131 def crc(data):