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

public final Class XMSSPrivateKeyParameters

extends XMSSKeyParameters
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, .Pack

Deprecated

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

XMSS Private Key.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
private volatile BDS
bdsState

BDS state.

private final XMSSParameters
params

XMSS parameters object.

private final byte[]
publicSeed

Public seed for the randomization of hashes.

private final byte[]
root

Public root of binary tree.

private final byte[]
secretKeyPRF

Secret for the randomization of message digests during signature creation.

private final byte[]
secretKeySeed

Secret for the derivation of WOTS+ secret keys.

Inherited from org.bouncycastle.pqc.crypto.xmss.XMSSKeyParameters:
SHA_256SHA_512SHAKE128SHAKE256

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public XMSSPrivateKeyParameters

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 XMSSPrivateKeyParameters being deprecated.
Return a key that can be used usageCount times.
pack-priv BDS
public byte[]
getEncoded()

Implements org.bouncycastle.util.Encodable.getEncoded.

Return a byte array representing the implementing object.
public int
public XMSSPrivateKeyParameters
getNextKey()

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

Deprecated as a consequence of XMSSPrivateKeyParameters 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.XMSSKeyParameters:
getTreeDigest

Field Detail

bdsStateback to summary
private volatile BDS bdsState

BDS state.

paramsback to summary
private final XMSSParameters params

XMSS parameters object.

publicSeedback to summary
private final byte[] publicSeed

Public seed for the randomization of hashes.

rootback to summary
private final byte[] root

Public root of binary tree.

secretKeyPRFback to summary
private final byte[] secretKeyPRF

Secret for the randomization of message digests during signature creation.

secretKeySeedback to summary
private final byte[] secretKeySeed

Secret for the derivation of WOTS+ secret keys.

Constructor Detail

XMSSPrivateKeyParametersback to summary
private XMSSPrivateKeyParameters(XMSSPrivateKeyParameters.Builder builder)

Method Detail

extractKeyShardback to summary
public XMSSPrivateKeyParameters extractKeyShard(int usageCount)

Deprecated

as a consequence of XMSSPrivateKeyParameters 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:XMSSPrivateKeyParameters

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

getBDSStateback to summary
pack-priv BDS 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 int getIndex()
getNextKeyback to summary
public XMSSPrivateKeyParameters getNextKey()

Deprecated

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

getParametersback to summary
public XMSSParameters 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 XMSSPrivateKeyParameters rollKey()

Deprecated

as a consequence of XMSSPrivateKeyParameters 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 XMSSPrivateKeyParameters.Builder

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

Field Summary

Modifier and TypeField and Description
private BDS
private int
private int
private final XMSSParameters
private byte[]
private byte[]
private byte[]
private byte[]
private byte[]

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public XMSSPrivateKeyParameters
build()

Deprecated as a consequence of XMSSPrivateKeyParameters being deprecated.
public XMSSPrivateKeyParameters.Builder
withBDSState(BDS valBDS)

public XMSSPrivateKeyParameters.Builder
withIndex(int val)

public XMSSPrivateKeyParameters.Builder
withMaxIndex(int val)

public XMSSPrivateKeyParameters.Builder
withPrivateKey(byte[] privateKeyVal)

public XMSSPrivateKeyParameters.Builder
withPublicSeed(byte[] val)

public XMSSPrivateKeyParameters.Builder
withRoot(byte[] val)

public XMSSPrivateKeyParameters.Builder
withSecretKeyPRF(byte[] val)

public XMSSPrivateKeyParameters.Builder
withSecretKeySeed(byte[] val)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

bdsStateback to summary
private BDS bdsState
indexback to summary
private int index
maxIndexback to summary
private int maxIndex
paramsback to summary
private final XMSSParameters 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

Constructor Detail

Builderback to summary
public Builder(XMSSParameters params)

Method Detail

buildback to summary
public XMSSPrivateKeyParameters build()

Deprecated

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

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