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

Input

class Input : Destroyable (source)

Input of a SHA-256 hash function

Functions

bytes

fun bytes(): Bytes

bytesArray

fun bytesArray(): ByteArray

destroy

fun destroy(): Unit

equals

fun equals(other: Any?): Boolean

fromBytes

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

Create a SHA256Hash.Input from an array of bytes.

fromHash

static fun fromHash(hash: Hash): Input

Create a SHA256Hash.Input from a hash.

fromPointer

static fun fromPointer(allocated: Allocated): Input

Create a SHA256Hash.Input from a pointer.

fromSecret

static fun fromSecret(secret: Secret): Input

Create a hash input from a Diffie-Helman secret

hashCode

fun hashCode(): Int

isDestroyed

fun isDestroyed(): Boolean

length

fun length(): Int