Namespaces

Records

Functions

  • std::ostream & operator<< (std::ostream & , const Digest & )

    Defined at line 143 of file ../../src/lib/digest/digest.cc

  • size_t CalculateMerkleTreeSize (size_t data_size, size_t node_size, bool use_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.

    Panics if |node_size| does not satisfy |NodeDigest::IsValidNodeSize|.

    |use_compact_format| specifies if the size should not include padding in the hash lists.

    Defined at line 209 of file ../../src/lib/digest/merkle-tree.cc

  • size_t CalculateHashListSize (size_t data_sizesize_t node_size)

    Convenience method for calculating the minimum size needed to hold a hash list for the given

    |data_size|.

    Panics if |node_size| does not satisfy |NodeDigest::IsValidNodeSize|.

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