newInputStream

fun newInputStream(key: ByteArray, outputLength: Int = PARAMETER.minLength / 8, customization: ByteArray = ByteArray(0)): HashInputStream

Creates a HashInputStream for this parameter.

Return

HashInputStream

Since

2.0.0

Parameters

key

This should be longer than the required bit security strength. For this parameter, the key should at least be 16 bytes or 128 bits.

outputLength

The number of bytes to output on close(). Even with the same inputs, a different output length will produce a different hash for this parameter.

customization

Generic customization. This acts like a salt.