Package org.bouncycastle.tsp.ers
Interface ERSRootNodeCalculator
-
- All Known Implementing Classes:
BinaryTreeRootCalculator
public interface ERSRootNodeCalculatorBase interface for an implementation that calculates the root hash contained in the time-stamp from the Merkle tree based on the partial hash-tree nodes.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description byte[]computeRootHash(DigestCalculator digCalc, org.bouncycastle.asn1.tsp.PartialHashtree[] nodes)Calculate the root hash of the Merkle tree from the partial hash-tree nodes.
-
-
-
Method Detail
-
computeRootHash
byte[] computeRootHash(DigestCalculator digCalc, org.bouncycastle.asn1.tsp.PartialHashtree[] nodes)
Calculate the root hash of the Merkle tree from the partial hash-tree nodes.- Parameters:
digCalc- the digest calculator to use.nodes- the partial hash-trees forming the basis of the Merkle tree.- Returns:
- the root hash of the Merkle tree.
-
-