kencode

Crc32

open class Crc32(poly: Int = 79764919, init: Int = 0xFFFFFFFF.toInt(), refin: Boolean = true, refout: Boolean = true, xorOut: Int = 0xFFFFFFFF.toInt()) : Crc(source)

32-bit CRC; CRC-32/ISO-HDLC by default.

Inheritors

Constructors

Crc32

constructor(poly: Int = 79764919, init: Int = 0xFFFFFFFF.toInt(), refin: Boolean = true, refout: Boolean = true, xorOut: Int = 0xFFFFFFFF.toInt())(source)

Types

Link copied to clipboard
object Default : Crc32

CRC-32/ISO-HDLC.

Properties

Link copied to clipboard
open override val size: Int

Digest size in bytes.

Functions

Link copied to clipboard

Appends the digest on encode; verifies and strips it on decode.

Link copied to clipboard
open override fun digest(data: ByteArray): ByteArray

Returns the size-byte digest of data.