public class BinaryTreeRootCalculator extends java.lang.Object implements ERSRootNodeCalculator
Constructor and Description |
---|
BinaryTreeRootCalculator() |
Modifier and Type | Method and 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.
|
public byte[] computeRootHash(DigestCalculator digCalc, org.bouncycastle.asn1.tsp.PartialHashtree[] nodes)
ERSRootNodeCalculator
computeRootHash
in interface ERSRootNodeCalculator
digCalc
- the digest calculator to use.nodes
- the partial hash-trees forming the basis of the Merkle tree.