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

Hash

class Hash : Destroyable (source)

SHA-256 hash output

Functions

bytes

Obtain the bytes of this hash. WARNING: This will cause the hash to be copied into heap memory.

fun bytes(): Bytes!

bytesArray

Obtain the bytes of this hash. WARNING: This will cause the hash to be copied into heap memory. The returned array should be overwritten when no longer required.

fun bytesArray(): ByteArray!

destroy

fun destroy(): Unit

equals

fun equals(other: Any?): Boolean

hashCode

fun hashCode(): Int

isDestroyed

fun isDestroyed(): Boolean

length

Obtain the length of the hash in bytes (32).

static fun length(): Int