Hash

interface Hash<D : Digest>

A hash function.

Parameters

D

The type of the digest this hash function produces.

Inheritors

Functions

Link copied to clipboard
abstract fun digest(): D

Creates a digest of all the data processed by this hash function so far.

Link copied to clipboard
abstract fun process(data: ByteArray, startIndex: Int = 0, endIndex: Int = data.size)

Process more data with this hash function.