Package org.bouncycastle.pqc.crypto.xmss
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:
javax.security.auth.Destroyable,CipherParameters,XMSSStoreableObjectInterface,Encodable
@Deprecated public final class XMSSMTPrivateKeyParameters extends XMSSMTKeyParameters implements XMSSStoreableObjectInterface, Encodable, javax.security.auth.Destroyable
Deprecated.useXMSSMTPrivateKeyParametersinstead.XMSS^MT Private Key.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXMSSMTPrivateKeyParameters.BuilderDeprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voiddestroy()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.XMSSMTPrivateKeyParametersextractKeyShard(int usageCount)Deprecated.Return a key that can be used usageCount times.byte[]getEncoded()Deprecated.Return a byte array representing the implementing object.longgetIndex()Deprecated.XMSSMTPrivateKeyParametersgetNextKey()Deprecated.XMSSMTParametersgetParameters()Deprecated.byte[]getPublicSeed()Deprecated.byte[]getRoot()Deprecated.byte[]getSecretKeyPRF()Deprecated.byte[]getSecretKeySeed()Deprecated.longgetUsagesRemaining()Deprecated.booleanisDestroyed()Deprecated.byte[]toByteArray()Deprecated.use getEncoded() - this method will become private.-
Methods inherited from class org.bouncycastle.pqc.crypto.xmss.XMSSMTKeyParameters
getTreeDigest
-
Methods inherited from class org.bouncycastle.crypto.params.AsymmetricKeyParameter
isPrivate
-
-
-
-
Method Detail
-
getEncoded
public byte[] getEncoded() throws java.io.IOExceptionDeprecated.Description copied from interface:EncodableReturn a byte array representing the implementing object.- Specified by:
getEncodedin interfaceEncodable- Returns:
- a byte array representing the encoding.
- Throws:
java.io.IOException- if an issue arises generation the encoding.
-
toByteArray
@Deprecated public byte[] 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
public XMSSMTParameters getParameters()
Deprecated.
-
getNextKey
public XMSSMTPrivateKeyParameters getNextKey()
Deprecated.
-
extractKeyShard
public XMSSMTPrivateKeyParameters extractKeyShard(int usageCount)
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 interfacejavax.security.auth.Destroyable
-
isDestroyed
public boolean isDestroyed()
Deprecated.- Specified by:
isDestroyedin interfacejavax.security.auth.Destroyable
-
-