class HashListCreator

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

|digest::HashListCreator| creates hash lists for data.

Example (without error checking):

HashListCreator creator;

creator.SetDataLength(data_len);

size_t list_len = creator.GetListLength();

uint8_t *list = malloc(list_len); // or other allocation routine

creator.SetList(list, list_len);

creator.Append(

&data

[0], partial_len1);

creator.Append(

&data

[partial_len1], partial_len2);

Public Methods

zx_status_t Append (const void * buf, size_t buf_len)

Reads |buf_len| bytes of data from |buf| and appends digests to the hash |list|.

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

Protected Methods

void HandleOne (const Digest & digest)

Writes a single calculated digest to the appropriate position in the list.

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