public final class XMSSPrivateKeyParameters extends XMSSKeyParameters implements XMSSStoreableObjectInterface, Encodable
Modifier and Type | Class and Description |
---|---|
static class |
XMSSPrivateKeyParameters.Builder |
SHA_256, SHA_512, SHAKE128, SHAKE256
Modifier and Type | Method and Description |
---|---|
XMSSPrivateKeyParameters |
extractKeyShard(int usageCount)
Return a key that can be used usageCount times.
|
byte[] |
getEncoded()
Return a byte array representing the implementing object.
|
int |
getIndex() |
XMSSPrivateKeyParameters |
getNextKey() |
XMSSParameters |
getParameters() |
byte[] |
getPublicSeed() |
byte[] |
getRoot() |
byte[] |
getSecretKeyPRF() |
byte[] |
getSecretKeySeed() |
long |
getUsagesRemaining() |
byte[] |
toByteArray()
Deprecated.
use getEncoded() - this method will become private.
|
getTreeDigest
isPrivate
public long getUsagesRemaining()
public byte[] getEncoded() throws java.io.IOException
Encodable
getEncoded
in interface Encodable
java.io.IOException
- if an issue arises generation the encoding.public XMSSPrivateKeyParameters getNextKey()
public XMSSPrivateKeyParameters 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.public byte[] toByteArray()
XMSSStoreableObjectInterface
toByteArray
in interface XMSSStoreableObjectInterface
public int getIndex()
public byte[] getSecretKeySeed()
public byte[] getSecretKeyPRF()
public byte[] getPublicSeed()
public byte[] getRoot()
public XMSSParameters getParameters()