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

Generic hash function output.

class Hash : Destroyable

Input

Input of generic hash function.

class Input : Destroyable

Key

Key of generic hash function.

class Key : Destroyable

Constructors

<init>

Generic hashing utility (BLAKE2b).

GenericHash()

Functions

hash

Creates a generic hash of specified length of the input

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