corda / net.corda.core.crypto / SecureHash / SHA256

SHA256

class SHA256 : SecureHash

SHA-256 is part of the SHA-2 hash function family. Generated hash is fixed size, 256-bits (32-bytes).

Constructors

<init>

SHA256(bytes: ByteArray)

SHA-256 is part of the SHA-2 hash function family. Generated hash is fixed size, 256-bits (32-bytes).

Functions

equals

fun equals(other: Any?): Boolean

generate

fun generate(data: ByteArray): SecureHash

hashCode

fun hashCode(): Int

toString

fun toString(): String

Convert the hash value to an uppercase hexadecimal String.

Inherited Functions

concatenate

fun concatenate(other: SecureHash): SecureHash

Append a second hash value to this hash value, and then compute the hash of the result.

concatenateAs

fun concatenateAs(concatAlgorithm: String, other: SecureHash): SecureHash

Append a second hash value to this hash value, and then compute the hash of the result using the specified algorithm.

hashConcat

fun hashConcat(other: SecureHash): <ERROR CLASS>

Append a second hash value to this hash value, and then compute the SHA-256 hash of the result.

prefixChars

fun prefixChars(prefixLen: Int = 6): <ERROR CLASS>

Returns the first prefixLen hexadecimal digits of the SecureHash value.

reHash

fun reHash(): SecureHash

toHexString

fun toHexString(): String