IBinaryDigest

Description

interface Tinman.Core.Codec.IBinaryDigest

Extended by

BinaryDigest abstract

Base interface for classes that consume binary data and compute a fixed-size digest value for it.

Public / Methods

Begin​Digest


public method BeginDigest → ()

returns → IBinaryDigest

this

Begins to digest a new chunk of binary data.

Finish​Digest​Array


public method FinishDigestArray → (2)

output opt : int8 [ ] = null

The output array or null.

outputOffset opt : int32 = 0

[>=0]
Offset into output opt to first byte of output data block. Defaults to 0.

returns → int8 [ ]

An array holding the digest value.

Finishes digesting binary data and writes the fixed-size digest value to the given output opt.

Finish​Digest​Buffer


[OwnerReturn]
public method FinishDigestBuffer → (1)

output opt : ByteBuffer own = null

The output buffer or null.

returns → ByteBuffer

A buffer holding the digest value.

Finishes digesting binary data and writes the fixed-size digest value to the given output opt.

Before returning, this method sets the ByteBuffer.Position and ByteBuffer.Limit to the range of bytes that have been output.

Update​Digest

2 overloads


public method UpdateDigest1 → (1)

input in : ByteBuffer

[not-null]
The input data block.

returns → IBinaryDigest

this

Processes the given input data block.


public method UpdateDigest2 → (3)

input in : int8 [ ]

[not-null]
The input data block.

offset opt : int32 = 0

[>=0]
Offset into input in to first byte of input data block.

length opt : int32 = -1

[>=-1]
Length of input data block, in bytes. If -1 all remaining data is processed.

returns → IBinaryDigest

this

Processes the given input data block.

Public / Attributes

Digest​Length


public attribute DigestLength → (get)

value : int32

[>0]
The digest value length, in bytes.

Length of the fixed-size digest value, in bytes.