digest

Permutes over the buffer.

Resets this instance for the next use.

Return

The ByteArray containing the hash based on the parameter used.

Since

2.0.0


fun digest(byte: Byte): ByteArray

Copies a byte into the buffer and permutes over the buffer.

Resets this instance for the next use.

Return

The ByteArray containing the hash based on the parameter used.

Since

2.0.0

Parameters

byte

fun digest(byteArray: ByteArray): ByteArray

Copies an array of bytes into the buffer and permutes over the buffer.

Resets this instance for the next use.

Return

The ByteArray containing the hash based on the parameter used.

Since

2.0.0

Parameters

byteArray

fun digest(byteArray: ByteArray, offset: Int, length: Int): ByteArray

Copies a part of an array of bytes into the buffer and permutes over the buffer.

Resets this instance for the next use.

Return

The ByteArray containing the hash based on the parameter used.

Since

2.0.0

Parameters

byteArray
offset

The offset which part of the bytes to copy.

length

The number of bytes to copy.