nextBytes

fun nextBytes(length: Int): ByteArray

Returns a byte array from the hash stream.

Since

2.0.0

Parameters

length

the requested number of bytes.


fun nextBytes(destination: ByteArray)

Copies bytes from the hash stream into the byte array.

Since

2.0.0

Parameters

destination

fun nextBytes(destination: ByteArray, length: Int, offset: Int)

Copies bytes from the hash stream into a part of the byte array.

Since

2.0.0

Parameters

destination
length

The number of bytes to copy starting from the offset

offset

The offset from the start of the destination byte array