public final class XMSSMTPrivateKeyParameters extends XMSSMTKeyParameters implements XMSSStoreableObjectInterface, Encodable
| Modifier and Type | Class and Description |
|---|---|
static class |
XMSSMTPrivateKeyParameters.Builder |
| Modifier and Type | Method and Description |
|---|---|
XMSSMTPrivateKeyParameters |
extractKeyShard(int usageCount)
Return a key that can be used usageCount times.
|
byte[] |
getEncoded()
Return a byte array representing the implementing object.
|
long |
getIndex() |
XMSSMTPrivateKeyParameters |
getNextKey() |
XMSSMTParameters |
getParameters() |
byte[] |
getPublicSeed() |
byte[] |
getRoot() |
byte[] |
getSecretKeyPRF() |
byte[] |
getSecretKeySeed() |
long |
getUsagesRemaining() |
byte[] |
toByteArray()
Deprecated.
use getEncoded() - this method will become private.
|
getTreeDigestisPrivatepublic byte[] getEncoded()
throws java.io.IOException
EncodablegetEncoded in interface Encodablejava.io.IOException - if an issue arises generation the encoding.@Deprecated public byte[] toByteArray()
XMSSStoreableObjectInterfacetoByteArray in interface XMSSStoreableObjectInterfacepublic long getIndex()
public long getUsagesRemaining()
public byte[] getSecretKeySeed()
public byte[] getSecretKeyPRF()
public byte[] getPublicSeed()
public byte[] getRoot()
public XMSSMTParameters getParameters()
public XMSSMTPrivateKeyParameters getNextKey()
public XMSSMTPrivateKeyParameters extractKeyShard(int usageCount)
Note: this will use the range [index...index + usageCount) for the current key.
usageCount - the number of usages the key should have.