Namespaces
Records
Functions
-
std::ostream & operator<< (std::ostream & , const Digest & )Defined at line 143 of file ../../src/lib/digest/digest.cc
-
zx::result<size_t> CalculateMerkleTreeSize (size_tdata_size,size_tnode_size,booluse_compact_format)Convenience method for calculating the minimum size needed to hold a Merkle tree for the given
|data_size|. It does NOT include room for the root digest.
Returns ZX_ERR_INVALID_ARGS if |node_size| does not satisfy |NodeDigest::IsValidNodeSize|.
|use_compact_format| specifies if the size should not include padding in the hash lists.
Returns ZX_ERR_OUT_OF_RANGE on overflow.
Defined at line 210 of file ../../src/lib/digest/merkle-tree.cc
-
zx::result<size_t> CalculateHashListSize (size_t data_size, size_t node_size)Convenience method for calculating the minimum size needed to hold a hash list for the given
|data_size|.
Returns ZX_ERR_INVALID_ARGS if |node_size| does not satisfy |NodeDigest::IsValidNodeSize|.
Returns ZX_ERR_OUT_OF_RANGE on overflow.
Defined at line 171 of file ../../src/lib/digest/hash-list.cc