tuweni / org.apache.tuweni.crypto.sodium / GenericHash / hash

hash

static fun hash(hashLength: Int, input: Input!): Hash! (source)

Creates a generic hash of specified length of the input

Parameters

hashLength - Int: the length of the hash

input - Input!: the input of the hash function

Return
Hash!: the hash of the input

static fun hash(hashLength: Int, input: Input!, key: Key!): Hash! (source)

Creates a generic hash of specified length of the input

Parameters

hashLength - Int: the length of the hash

input - Input!: the input of the hash function

key - Key!: the key of the hash function

Return
Hash!: the hash of the input