dissect.util.crc32c

Module Contents

Functions

update

Update CRC32C checksum with data.

crc32c

Calculate CRC32C checksum of some data, with an optional initial value.

dissect.util.crc32c.update(crc: int, data: bytes) int

Update CRC32C checksum with data.

Parameters:
  • crc – The initial value of the checksum.

  • data – The data to update the checksum with.

dissect.util.crc32c.crc32c(data: bytes, value: int = 0) int

Calculate CRC32C checksum of some data, with an optional initial value.

Parameters:
  • data – The data to calculate the checksum of.

  • value – The initial value of the checksum. Default is 0.