Class XMSSMTPrivateKeyParameters
java.lang.Object
org.bouncycastle.crypto.params.AsymmetricKeyParameter
org.bouncycastle.pqc.crypto.xmss.XMSSMTKeyParameters
org.bouncycastle.pqc.crypto.xmss.XMSSMTPrivateKeyParameters
- All Implemented Interfaces:
Destroyable, CipherParameters, XMSSStoreableObjectInterface, Encodable
@Deprecated
public final class XMSSMTPrivateKeyParameters
extends XMSSMTKeyParameters
implements XMSSStoreableObjectInterface, Encodable, Destroyable
Deprecated.
XMSS^MT Private Key.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()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.extractKeyShard(int usageCount) Deprecated.Return a key that can be used usageCount times.byte[]Deprecated.Return a byte array representing the implementing object.longgetIndex()Deprecated.Deprecated.Deprecated.byte[]Deprecated.byte[]getRoot()Deprecated.byte[]Deprecated.byte[]Deprecated.longDeprecated.booleanDeprecated.byte[]Deprecated.use getEncoded() - this method will become private.Methods inherited from class XMSSMTKeyParameters
getTreeDigestMethods inherited from class AsymmetricKeyParameter
isPrivate
-
Method Details
-
getEncoded
Deprecated.Description copied from interface:EncodableReturn a byte array representing the implementing object.- Specified by:
getEncodedin interfaceEncodable- Returns:
- a byte array representing the encoding.
- Throws:
IOException- if an issue arises generation the encoding.
-
toByteArray
Deprecated.use getEncoded() - this method will become private.Description copied from interface:XMSSStoreableObjectInterfaceCreate byte representation of object.- Specified by:
toByteArrayin interfaceXMSSStoreableObjectInterface- Returns:
- Byte representation of object.
-
getIndex
public long getIndex()Deprecated. -
getUsagesRemaining
public long getUsagesRemaining()Deprecated. -
getSecretKeySeed
public byte[] getSecretKeySeed()Deprecated. -
getSecretKeyPRF
public byte[] getSecretKeyPRF()Deprecated. -
getPublicSeed
public byte[] getPublicSeed()Deprecated. -
getRoot
public byte[] getRoot()Deprecated. -
getParameters
Deprecated. -
getNextKey
Deprecated. -
extractKeyShard
Deprecated.Return a key that can be used usageCount times.Note: this will use the range [index...index + usageCount) for the current key.
- Parameters:
usageCount- the number of usages the key should have.- Returns:
- a key based on the current key that can be used usageCount times.
-
destroy
public 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.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 andgetSecretKeySeed(),getSecretKeyPRF(),getEncoded(),getNextKey()andextractKeyShard(int)throwIllegalStateException; 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.- Specified by:
destroyin interfaceDestroyable
-
isDestroyed
-
XMSSMTPrivateKeyParametersinstead.