Top Description Inners Fields Constructors Methods
org.bouncycastle.pqc.crypto.xmss

public final Class XMSSMTPrivateKeyParameters

extends XMSSMTKeyParameters
implements XMSSStoreableObjectInterface, Encodable
Class Inheritance
All Implemented Interfaces
org.bouncycastle.util.Encodable, org.bouncycastle.pqc.crypto.xmss.XMSSStoreableObjectInterface
Imports
java.io.IOException, org.bouncycastle.util.Arrays, .Encodable

Deprecated

as a consequence of XMSSStoreableObjectInterface being deprecated. See corresponding docs for further information.

XMSS^MT Private Key.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
private volatile BDSStateMap
private volatile long
private final XMSSMTParameters
private final byte[]
private final byte[]
private final byte[]
private final byte[]
private volatile boolean

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public XMSSMTPrivateKeyParameters

Returns:

a key based on the current key that can be used usageCount times.
extractKeyShard
(int
the number of usages the key should have.
usageCount
)

Deprecated as a consequence of XMSSMTPrivateKeyParameters being deprecated.
Return a key that can be used usageCount times.
pack-priv BDSStateMap
public byte[]
getEncoded()

Implements org.bouncycastle.util.Encodable.getEncoded.

Return a byte array representing the implementing object.
public long
public XMSSMTPrivateKeyParameters
getNextKey()

Deprecated as a consequence of XMSSMTPrivateKeyParameters being deprecated.
public XMSSMTParameters
public byte[]
public byte[]
public byte[]
public byte[]
public long
pack-priv XMSSMTPrivateKeyParameters
rollKey()

Deprecated as a consequence of XMSSMTPrivateKeyParameters being deprecated.
public byte[]
toByteArray()

Implements org.bouncycastle.pqc.crypto.xmss.XMSSStoreableObjectInterface.toByteArray.

Deprecated use getEncoded() - this method will become private.
Create byte representation of object.
Inherited from org.bouncycastle.pqc.crypto.xmss.XMSSMTKeyParameters:
getTreeDigest

Field Detail

bdsStateback to summary
private volatile BDSStateMap bdsState
indexback to summary
private volatile long index
paramsback to summary
private final XMSSMTParameters params
publicSeedback to summary
private final byte[] publicSeed
rootback to summary
private final byte[] root
secretKeyPRFback to summary
private final byte[] secretKeyPRF
secretKeySeedback to summary
private final byte[] secretKeySeed
usedback to summary
private volatile boolean used

Constructor Detail

XMSSMTPrivateKeyParametersback to summary
private XMSSMTPrivateKeyParameters(XMSSMTPrivateKeyParameters.Builder builder)

Method Detail

extractKeyShardback to summary
public XMSSMTPrivateKeyParameters extractKeyShard(int usageCount)

Deprecated

as a consequence of XMSSMTPrivateKeyParameters being deprecated. See corresponding docs for further information.

Return a key that can be used usageCount times.

Note

this will use the range [index...index + usageCount) for the current key.

Parameters
usageCount:int

the number of usages the key should have.

Returns:XMSSMTPrivateKeyParameters

a key based on the current key that can be used usageCount times.

getBDSStateback to summary
pack-priv BDSStateMap getBDSState()
getEncodedback to summary
public byte[] getEncoded() throws IOException

Implements org.bouncycastle.util.Encodable.getEncoded.

Doc from org.bouncycastle.util.Encodable.getEncoded.

Return a byte array representing the implementing object.

Returns:byte[]

a byte array representing the encoding.

Exceptions
IOException:
if an issue arises generation the encoding.
getIndexback to summary
public long getIndex()
getNextKeyback to summary
public XMSSMTPrivateKeyParameters getNextKey()

Deprecated

as a consequence of XMSSMTPrivateKeyParameters being deprecated. See corresponding docs for further information.

getParametersback to summary
public XMSSMTParameters getParameters()
getPublicSeedback to summary
public byte[] getPublicSeed()
getRootback to summary
public byte[] getRoot()
getSecretKeyPRFback to summary
public byte[] getSecretKeyPRF()
getSecretKeySeedback to summary
public byte[] getSecretKeySeed()
getUsagesRemainingback to summary
public long getUsagesRemaining()
rollKeyback to summary
pack-priv XMSSMTPrivateKeyParameters rollKey()

Deprecated

as a consequence of XMSSMTPrivateKeyParameters being deprecated. See corresponding docs for further information.

toByteArrayback to summary
public byte[] toByteArray()

Implements org.bouncycastle.pqc.crypto.xmss.XMSSStoreableObjectInterface.toByteArray.

Doc from org.bouncycastle.pqc.crypto.xmss.XMSSStoreableObjectInterface.toByteArray.

Deprecated

use getEncoded() - this method will become private.

Create byte representation of object.

Returns:byte[]

Byte representation of object.

org.bouncycastle.pqc.crypto.xmss back to summary

public Class XMSSMTPrivateKeyParameters.Builder

extends Object
Class Inheritance
  • java.lang.Object
  • org.bouncycastle.pqc.crypto.xmss.XMSSMTPrivateKeyParameters.Builder

Field Summary

Modifier and TypeField and Description
private BDSStateMap
private long
private long
private final XMSSMTParameters
private byte[]
private byte[]
private byte[]
private byte[]
private byte[]
private XMSSParameters

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public XMSSMTPrivateKeyParameters
build()

Deprecated as a consequence of XMSSMTPrivateKeyParameters being deprecated.
public XMSSMTPrivateKeyParameters.Builder
public XMSSMTPrivateKeyParameters.Builder
withIndex(long val)

public XMSSMTPrivateKeyParameters.Builder
withMaxIndex(long val)

public XMSSMTPrivateKeyParameters.Builder
withPrivateKey(byte[] privateKeyVal)

public XMSSMTPrivateKeyParameters.Builder
withPublicSeed(byte[] val)

public XMSSMTPrivateKeyParameters.Builder
withRoot(byte[] val)

public XMSSMTPrivateKeyParameters.Builder
withSecretKeyPRF(byte[] val)

public XMSSMTPrivateKeyParameters.Builder
withSecretKeySeed(byte[] val)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

bdsStateback to summary
private BDSStateMap bdsState
indexback to summary
private long index
maxIndexback to summary
private long maxIndex
paramsback to summary
private final XMSSMTParameters params
privateKeyback to summary
private byte[] privateKey
publicSeedback to summary
private byte[] publicSeed
rootback to summary
private byte[] root
secretKeyPRFback to summary
private byte[] secretKeyPRF
secretKeySeedback to summary
private byte[] secretKeySeed
xmssback to summary
private XMSSParameters xmss

Constructor Detail

Builderback to summary
public Builder(XMSSMTParameters params)

Method Detail

buildback to summary
public XMSSMTPrivateKeyParameters build()

Deprecated

as a consequence of XMSSMTPrivateKeyParameters being deprecated. See corresponding docs for further information.

withBDSStateback to summary
public XMSSMTPrivateKeyParameters.Builder withBDSState(BDSStateMap val)
withIndexback to summary
public XMSSMTPrivateKeyParameters.Builder withIndex(long val)
withMaxIndexback to summary
public XMSSMTPrivateKeyParameters.Builder withMaxIndex(long val)
withPrivateKeyback to summary
public XMSSMTPrivateKeyParameters.Builder withPrivateKey(byte[] privateKeyVal)
withPublicSeedback to summary
public XMSSMTPrivateKeyParameters.Builder withPublicSeed(byte[] val)
withRootback to summary
public XMSSMTPrivateKeyParameters.Builder withRoot(byte[] val)
withSecretKeyPRFback to summary
public XMSSMTPrivateKeyParameters.Builder withSecretKeyPRF(byte[] val)
withSecretKeySeedback to summary
public XMSSMTPrivateKeyParameters.Builder withSecretKeySeed(byte[] val)