Digest

interface Digest

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
abstract fun doFinal(out: ByteArray, outOffset: Int): Int

close the digest, producing the final digest value. The doFinal call leaves the digest reset.

Link copied to clipboard
abstract fun getAlgorithmName(): String

return the algorithm name

Link copied to clipboard
abstract fun getDigestSize(): Int

return the size, in bytes, of the digest produced by this message digest.

Link copied to clipboard
open fun hash(input: ByteArray): ByteArray
open fun hash(    input: ByteArray,     inputOffset: Int,     len: Int): ByteArray
Link copied to clipboard
abstract fun reset()

reset the digest back to it's initial state.

Link copied to clipboard
abstract fun update(input: Byte)

update the message digest with a single byte.

abstract fun update(    input: ByteArray,     inputOffset: Int,     len: Int)

update the message digest with a block of bytes.

Inheritors

Link copied to clipboard
Link copied to clipboard

Extensions

Link copied to clipboard
fun Digest.hmac(    key: ByteArray,     data: ByteArray,     blockSize: Int): ByteArray