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:
CipherParameters,XMSSStoreableObjectInterface,Encodable
public final class XMSSMTPrivateKeyParameters extends XMSSMTKeyParameters implements XMSSStoreableObjectInterface, Encodable
XMSS^MT Private Key.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXMSSMTPrivateKeyParameters.Builder
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description XMSSMTPrivateKeyParametersextractKeyShard(int usageCount)Return a key that can be used usageCount times.byte[]getEncoded()Return a byte array representing the implementing object.longgetIndex()XMSSMTPrivateKeyParametersgetNextKey()XMSSMTParametersgetParameters()byte[]getPublicSeed()byte[]getRoot()byte[]getSecretKeyPRF()byte[]getSecretKeySeed()longgetUsagesRemaining()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.IOExceptionDescription 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
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()
-
getUsagesRemaining
public long getUsagesRemaining()
-
getSecretKeySeed
public byte[] getSecretKeySeed()
-
getSecretKeyPRF
public byte[] getSecretKeyPRF()
-
getPublicSeed
public byte[] getPublicSeed()
-
getRoot
public byte[] getRoot()
-
getParameters
public XMSSMTParameters getParameters()
-
getNextKey
public XMSSMTPrivateKeyParameters getNextKey()
-
extractKeyShard
public XMSSMTPrivateKeyParameters extractKeyShard(int usageCount)
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.
-
-