Digest

interface Digest

Stateful digest class specified to calculate digest.

Functions

Link copied to clipboard
abstract suspend fun build(): ByteArray

Calculate digest bytes.

Link copied to clipboard
suspend fun Digest.build(bytes: ByteArray): ByteArray

Calculate digest from current state and specified bytes.

suspend fun Digest.build(string: String, charset: Charset = Charsets.UTF_8): ByteArray

Calculate digest from current state and specified string.

Link copied to clipboard
abstract operator fun plusAssign(bytes: ByteArray)

Add bytes to digest value.

Link copied to clipboard
abstract fun reset()

Reset Digest state.