public class SecureHashKt
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getAlgorithm(SecureHash $receiver)
Hash algorithm.
|
static SecureHash |
hashAs(byte[] $receiver,
java.lang.String algorithm)
Compute the algorithm hash for the contents of the ByteArray.
|
static SecureHash |
hashAs(OpaqueBytes $receiver,
java.lang.String algorithm)
Compute the algorithm hash for the contents of the
class OpaqueBytes . |
static boolean |
isZero(OpaqueBytes $receiver) |
static SecureHash.SHA256 |
sha256(byte[] $receiver)
Compute the SHA-256 hash for the contents of the ByteArray.
|
static SecureHash.SHA256 |
sha256(OpaqueBytes $receiver)
Compute the SHA-256 hash for the contents of the
class OpaqueBytes . |
public static boolean isZero(OpaqueBytes $receiver)
public static SecureHash.SHA256 sha256(byte[] $receiver)
Compute the SHA-256 hash for the contents of the ByteArray.
public static SecureHash.SHA256 sha256(OpaqueBytes $receiver)
Compute the SHA-256 hash for the contents of the class OpaqueBytes
.
class OpaqueBytes
public static SecureHash hashAs(byte[] $receiver, java.lang.String algorithm)
Compute the algorithm hash for the contents of the ByteArray.
public static SecureHash hashAs(OpaqueBytes $receiver, java.lang.String algorithm)
Compute the algorithm hash for the contents of the class OpaqueBytes
.
class OpaqueBytes
public static java.lang.String getAlgorithm(SecureHash $receiver)
Hash algorithm.