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

GenericHash

class GenericHash (source)

Generic hashing utility (BLAKE2b).

See Also
<a href="https://libsodium.gitbook.io/doc/hashing/generic_hashing">Generic hashing</a>

Types

Hash

class Hash : Destroyable

Generic hash function output.

Input

class Input : Destroyable

Input of generic hash function.

Constructors

<init>

GenericHash()

Generic hashing utility (BLAKE2b).

Functions

hash

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

Creates a generic hash of specified length of the input