Hasher

class Hasher

Incremental SHA-1 hasher producing a Sha1Hash, the port of libtorrent's hasher (hasher.hpp). It computes v1 info-hashes and piece hashes.

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard

Finish and return the digest as a Sha1Hash.

Link copied to clipboard
fun update(data: ByteArray, offset: Int = 0, length: Int = data.size - offset): Hasher