digestProtected

protected expect abstract fun digestProtected(buf: ByteArray, bufPos: Int): ByteArray(source)

Called to complete the computation, providing any input that may be buffered and awaiting processing.

NOTE: The buffer from bufPos to the end will always be zeroed out to clear any potentially stale input left over from a previous state.

Parameters

buf

Unprocessed input

bufPos

The index at which the next input would be placed into buf

protected actual abstract fun digestProtected(buf: ByteArray, bufPos: Int): ByteArray(source)

Called to complete the computation, providing any input that may be buffered and awaiting processing.

NOTE: The buffer from bufPos to the end will always be zeroed out to clear any potentially stale input left over from a previous state.

Parameters

buf

Unprocessed input

bufPos

The index at which the next input would be placed into buf

protected actual abstract fun digestProtected(buf: ByteArray, bufPos: Int): ByteArray(source)

Called to complete the computation, providing any input that may be buffered and awaiting processing.

NOTE: The buffer from bufPos to the end will always be zeroed out to clear any potentially stale input left over from a previous state.

Parameters

buf

Unprocessed input

bufPos

The index at which the next input would be placed into buf