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

Key

class Key : Destroyable (source)

Key of generic hash function.

Functions

bytes

Provides the bytes of this key

fun bytes(): Bytes!

bytesArray

Provides the bytes of this key

fun bytesArray(): ByteArray!

destroy

fun destroy(): Unit

equals

fun equals(other: Any?): Boolean

fromBytes

Create a GenericHash.Key from an array of bytes.

static fun fromBytes(bytes: Bytes!): Key!
static fun fromBytes(bytes: ByteArray!): Key!

fromHash

Create a GenericHash.Key from a hash.

static fun fromHash(hash: Hash!): Key!

fromPointer

Create a GenericHash.Key from a pointer.

static fun fromPointer(allocated: Allocated!): Key!

hashCode

fun hashCode(): Int

isDestroyed

fun isDestroyed(): Boolean

length

Provides the length of the key

fun length(): Int