Crc64

class Crc64 : Checksum

CRC-64/XZ (ECMA-182): reflected polynomial 0xC96C5795D7870F42, init 0xFFFFFFFFFFFFFFFF, final XOR 0xFFFFFFFFFFFFFFFF. This is the integrity check used by the .xz container (and an optional 7z check).

Check value: CRC64("123456789") == 0x995DC9BBDF1939FA.

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun reset()

Reset to the initial state so the instance can be reused.

Link copied to clipboard
open override fun update(data: ByteArray, offset: Int = 0, length: Int = data.size)

Feed a slice of bytes into the running checksum.

Link copied to clipboard
open override fun value(): Long

Current checksum value (low bits of the Long).