generate
fun generate(parameters: KeccakParameter, byteArray: ByteArray, lengthInBytes: Int = parameters.minLength / 8, functionName: ByteArray = ByteArray(0), customization: ByteArray = ByteArray(0), key: ByteArray? = null, noPadding: Boolean = false): ByteArray
Deprecated
Use the Standard API instead.
Generate a hash based on the Keccak parameter.
You should only use this if you know what you are doing. Please use the standard classes to create your hashes.
Parameters
parameters
KeccakParameter of the SHA-3 Hash Function.
byte Array
ByteArray of inputs.
length In Bytes
(Optional) Intended for the Extendable Hash Functions and the SHA-3 Derived Functions.
function Name
(Optional) Used for SHA-3 Derived Functions namely: cSHAKE, KMAC, TupleHash, and ParallelHash.
customization
(Optional) Used for SHA-3 Derived Functions namely: cSHAKE, KMAC, TupleHash, and ParallelHash.
key
(Optional) Used strictly for KMAC.