|
Bouncy Castle Cryptography Library 1.71 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.bouncycastle.tsp.ers.BinaryTreeRootCalculator
Calculator based on the use of a left weighted binary Merkle tree created on top of the partial hash tree objects provided.
Constructor Summary | |
BinaryTreeRootCalculator()
|
Method Summary | |
byte[] |
computeRootHash(DigestCalculator digCalc,
org.bouncycastle.asn1.tsp.PartialHashtree[] nodes)
Calculate the root hash of the Merkle tree from the partial hash-tree nodes. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BinaryTreeRootCalculator()
Method Detail |
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.
|
Bouncy Castle Cryptography Library 1.71 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |