build

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.