|
Bouncy Castle Cryptography Library 1.65 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.bouncycastle.tsp.PartialHashTreeProcessor
Constructor Summary | |
PartialHashTreeProcessor(org.bouncycastle.asn1.tsp.PartialHashtree tree)
|
Method Summary | |
boolean |
containsHash(byte[] hash)
Checks whether a PartialHashtree (RFC4998) contains a given hash. |
byte[] |
getHash(DigestCalculator digestCalculator)
Compute a hash over the whole partialHashTree: - Concatenate all the hashes contained in the partial hash tree; - Generate a hash over the concatenated hashes, using a provided DigestCalculator . |
void |
verifyContainsHash(byte[] hash)
Checks whether a PartialHashtree (RFC4998) contains a given hash. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PartialHashTreeProcessor(org.bouncycastle.asn1.tsp.PartialHashtree tree)
Method Detail |
public byte[] getHash(DigestCalculator digestCalculator)
DigestCalculator
.
digestCalculator
- the DigestCalculator
to use in order to generate the hash
public void verifyContainsHash(byte[] hash) throws PartialHashTreeVerificationException
hash
- the hash to check
PartialHashTreeVerificationException
- if the hash is not present in the
PartialHashtreepublic boolean containsHash(byte[] hash)
hash
- the hash to check
|
Bouncy Castle Cryptography Library 1.65 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |