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