tuweni / org.apache.tuweni.crypto.sodium / SHA256Hash / Input

Input

class Input : Destroyable (source)

Input of a SHA-256 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 SHA256Hash.Input from an array of bytes.

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

fromHash

Create a SHA256Hash.Input from a hash.

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

fromPointer

Create a SHA256Hash.Input from a pointer.

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

fromSecret

Create a hash input from a Diffie-Helman secret

static fun fromSecret(secret: Secret!): Input!

hashCode

fun hashCode(): Int

isDestroyed

fun isDestroyed(): Boolean

length

Provides the length of the input

fun length(): Int