cSHAKE128

class cSHAKE128(val outputLength: Int = PARAMETER.minLength / 8, val functionName: ByteArray = ByteArray(0), val customization: ByteArray = ByteArray(0)) : AbstractKeccakFunction

cSHAKE128 Hash Function as defined in SP 800-185.

Author

Ron Lauren Hombre

Since

2.0.0

Constructors

Link copied to clipboard
constructor(outputLength: Int = PARAMETER.minLength / 8, functionName: ByteArray = ByteArray(0), customization: ByteArray = ByteArray(0))

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Generic customization. This acts like a salt.

Link copied to clipboard

Function name customization. This acts like a salt.

Link copied to clipboard

The number of bytes to output on digest() or stream().

Link copied to clipboard
open override val parameter: KeccakParameter

Functions

Link copied to clipboard

Permutes over the buffer.

fun digest(byte: Byte): ByteArray

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

fun digest(byteArray: ByteArray): ByteArray

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

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.

Link copied to clipboard

Permutes over the buffer.

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

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

fun stream(byteArray: ByteArray, offset: Int, length: Int): HashOutputStream

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

Link copied to clipboard
fun update(byte: Byte)

Copies a byte into the buffer.

fun update(byteArray: ByteArray)

Copies an array of bytes into the buffer.

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

Copies a part of an array of bytes into the buffer.