KeccakByteStream

class KeccakByteStream(val parameters: KeccakParameter)

A class for streaming bytes of Keccak Hash Functions.

Suitable for use with the Extendable Hash Functions(XOF).

Author

Ron Lauren Hombre

Constructors

Link copied to clipboard
constructor(parameters: KeccakParameter)

Generates a hash based on the KeccakParameter during absorption.

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun absorb(byte: Byte)

Absorbs a singular byte into the sponge construction.

fun absorb(byteArray: ByteArray)

Absorb a byte array into the Keccak sponge construction.

Link copied to clipboard
fun next(): Byte

Get the next byte.

Link copied to clipboard
fun reset()

Reset the internal state of the byte stream.