class HashListVerifier

Defined at line 143 of file ../../src/lib/digest/hash-list.h

|digest::HashListVerifier| verifies data against a hash list.

Example (without error checking):

HashListVerifier verifier;

verifier.SetDataLength(data_len);

verifier.SetList(list, list_len);

verifier.Align(

&data

_off,

&partial

_len);

return verifier.Verify(

&data

[data_off], partial_len) == ZX_OK;

Public Methods

zx_status_t Verify (const void * buf, size_t buf_len, size_t data_off)

Reads |buf_len| bytes of data from |buf|, calculates digests for each node of data, and

compares them to the digests stored in the hash list. |data_off| must be node-aligned.

|buf_len| must be node-aligned, or reach the end of the data. See also |Align|.

Defined at line 139 of file ../../src/lib/digest/hash-list.cc

Protected Methods

bool IsValidRange (size_t data_off, size_t buf_len)

Verification ranges must start on a node boundary, and end on a node boundary or the end of the

data.

Defined at line 153 of file ../../src/lib/digest/hash-list.cc

void HandleOne (const Digest & digest)

Compares a single calculated digest to the corresponding one in the list.

Defined at line 166 of file ../../src/lib/digest/hash-list.cc