hash

open suspend fun hash(data: ByteArray): ByteArray(source)

Hashes the given data and returns the resulting digest as a ByteArray.

Use hashBlocking when calling from non-suspending code.


open suspend fun hash(data: ByteString): ByteString(source)

Hashes the given data and returns the resulting digest as a ByteString.

Use hashBlocking when calling from non-suspending code.


open suspend fun hash(data: RawSource): ByteString(source)

Hashes the given data read from a RawSource and returns the resulting digest as a ByteString.

Use hashBlocking when calling from non-suspending code.