HashInputStream

open class HashInputStream

Writable for streams of input bytes and creates a HashOutputStream once closed.

Author

Ron Lauren Hombre

Since

2.0.0

Properties

Link copied to clipboard
@get:JvmName(name = "getParameter")
val PARAMETER: KeccakParameter

The KeccakParameter used to absorb the bytes.

Functions

Link copied to clipboard

Closes this HashInputStream and prevents further usage.

Link copied to clipboard
fun write(byte: Byte)

Writes a byte which will be absorbed in the sponge construction.

fun write(byteArray: ByteArray)

Writes the bytes which will be absorbed in the sponge construction.

fun write(double: Double)

Writes a Double which will be absorbed in the sponge construction in Big-Endianness while preserving its bit layout in IEEE 754 format.

fun write(float: Float)

Writes a Float which will be absorbed in the sponge construction in Big-Endianness while preserving its bit layout in IEEE 754 format.

fun write(int: Int)

Writes an Int which will be absorbed in the sponge construction in Big-Endianness.

fun write(long: Long)

Writes a Long which will be absorbed in the sponge construction in Big-Endianness.

fun write(short: Short)

Writes a Short which will be absorbed in the sponge construction in Big-Endianness.

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

Writes part of the bytes which will be absorbed in the sponge construction.