public final class BDS
extends java.lang.Object
implements java.io.Serializable
| Constructor and Description |
|---|
BDS(XMSSParameters params,
int maxIndex,
int index)
Place holder BDS for when state is exhausted.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getIndex() |
int |
getMaxIndex() |
void |
validate(XMSSParameters params) |
void |
validate(XMSSParameters params,
int expectedIndex) |
void |
validateRoot(byte[] expectedRoot)
Confirm the root this state carries is the one the enclosing private key declares.
|
BDS |
withMaxIndex(int maxIndex,
ASN1ObjectIdentifier digestName) |
BDS |
withMaxIndex(int maxIndex,
ASN1ObjectIdentifier digestName,
int digestSize) |
BDS |
withWOTSDigest(ASN1ObjectIdentifier digestName) |
BDS |
withWOTSDigest(ASN1ObjectIdentifier digestName,
int digestSize) |
public BDS(XMSSParameters params, int maxIndex, int index)
params - tree parametersindex - the index that has been reached.public void validate(XMSSParameters params)
public void validateRoot(byte[] expectedRoot)
A null root on either side is not compared: BDS.validate tolerates an absent root node, and a key built without one carries zeros.
expectedRoot - the root the private key declares.public void validate(XMSSParameters params, int expectedIndex)
public int getIndex()
public int getMaxIndex()
public BDS withWOTSDigest(ASN1ObjectIdentifier digestName)
public BDS withWOTSDigest(ASN1ObjectIdentifier digestName, int digestSize)
public BDS withMaxIndex(int maxIndex, ASN1ObjectIdentifier digestName)
public BDS withMaxIndex(int maxIndex, ASN1ObjectIdentifier digestName, int digestSize)