class Digest
source · line 48public
public class Digest public constructor(algorithm: DigestAlgorithm) : Closeable
- Supertype
Closeable - Inherited
fun dispose(): Unit· Closeable
An incremental native digest context. Feed data with update, finish once, and close the context. Finished or failed contexts reject further updates.
constructor constructor
source · line 48public
constructor(algorithm: DigestAlgorithm)
parameter algorithm
source · line 48public
algorithm: DigestAlgorithm
function close
source · line 82public
public override fun close(): Unit
- Overrides
close
Releases the native context. Repeated closes are harmless.
function update
source · line 60public
public fun update(data: List<Byte>): Unit
Adds bytes to the current digest. A backend failure makes this context unusable for further updates.
parameter data
source · line 60public
data: List<Byte>
function finish
source · line 73public
public fun finish(): Array<Byte>
Finalizes once and returns the digest bytes; the context still needs closing.