ParallelHash256

constructor(S: ByteArray?, B: Int)(source)

Creates a new ParallelHash256 instance with a default output length of 64 bytes.

Parameters

S

A user selected customization bit string to define a variant of the function. When no customization is desired, S is set to an empty or null value. (e.g. "My Customization".encodeToByteArray())

B

The block size for the inner hash function in bytes

Throws

IllegalArgumentException

If B is less than 1


constructor(S: ByteArray?, B: Int, outputLength: Int)(source)

Creates a new ParallelHash256 instance with a non-default output length.

Parameters

S

A user selected customization bit string to define a variant of the function. When no customization is desired, S is set to an empty or null value. (e.g. "My Customization".encodeToByteArray())

B

The block size for the inner hash function in bytes

outputLength

The number of bytes returned when digest is invoked

Throws

IllegalArgumentException

If B is less than 1, or outputLength is negative