XMSSMTPrivateKeyParameters instead.@Deprecated public final class XMSSMTPrivateKeyParameters extends XMSSMTKeyParameters implements XMSSStoreableObjectInterface, Encodable, javax.security.auth.Destroyable
| Modifier and Type | Class and Description |
|---|---|
static class |
XMSSMTPrivateKeyParameters.Builder
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Deprecated.
Destroy this key, zeroizing the secret key material it holds: the seed the WOTS+ secret
keys are derived from, the PRF key that randomizes message digests, and the WOTS+ secret
keys the per-layer BDS traversal states retain for the leaves they last processed.
|
XMSSMTPrivateKeyParameters |
extractKeyShard(int usageCount)
Deprecated.
Return a key that can be used usageCount times.
|
byte[] |
getEncoded()
Deprecated.
Return a byte array representing the implementing object.
|
long |
getIndex()
Deprecated.
|
XMSSMTPrivateKeyParameters |
getNextKey()
Deprecated.
|
XMSSMTParameters |
getParameters()
Deprecated.
|
byte[] |
getPublicSeed()
Deprecated.
|
byte[] |
getRoot()
Deprecated.
|
byte[] |
getSecretKeyPRF()
Deprecated.
|
byte[] |
getSecretKeySeed()
Deprecated.
|
long |
getUsagesRemaining()
Deprecated.
|
boolean |
isDestroyed()
Deprecated.
|
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.public void destroy()
The public seed, the root, the index and the traversal states' tree nodes are retained -
none of them is secret. After destruction isDestroyed() returns true and
getSecretKeySeed(), getSecretKeyPRF(), getEncoded(),
getNextKey() and extractKeyShard(int) throw
IllegalStateException; a signature attempt fails before the index is advanced.
Keys previously split off this one hold their own copies of the seeds and are unaffected.
destroy in interface javax.security.auth.Destroyablepublic boolean isDestroyed()
isDestroyed in interface javax.security.auth.Destroyable