digest

abstract fun digest(): ByteArray(source)

Completes the hash computation by performing final operations such as padding. The digest is reset after this call is made.

Return

the array of bytes for the resulting hash value.


abstract fun digest(input: ByteArray): ByteArray(source)

Performs a final update on the digest using the specified array of bytes, then completes the digest computation. That is, this method first calls update, passing the input array to the update method, then calls digest.

Return

the array of bytes for the resulting hash value.

Parameters

input

the input to be updated before the digest is completed.


abstract fun digest(output: ByteArray, offset: Int, length: Int): Int(source)

Completes the hash computation by performing final operations such as padding. The digest is reset after this call is made.

Return

the number of bytes placed into output

Parameters

output

output buffer for the computed digest

offset

offset into the output buffer to begin storing the digest

length

number of bytes within buf allotted for the digest