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

public final Class XMSSKeyPairGenerator

extends Object
implements AsymmetricCipherKeyPairGenerator
Class Inheritance
All Implemented Interfaces
org.bouncycastle.crypto.AsymmetricCipherKeyPairGenerator
Imports
java.security.SecureRandom, org.bouncycastle.crypto.AsymmetricCipherKeyPair, .AsymmetricCipherKeyPairGenerator, .KeyGenerationParameters

Key pair generator for XMSS keys.

Field Summary

Modifier and TypeField and Description
private XMSSParameters
private SecureRandom

Constructor Summary

AccessConstructor and Description
public
XMSSKeyPairGenerator()

Base constructor...

Method Summary

Modifier and TypeMethod and Description
public AsymmetricCipherKeyPair
generateKeyPair()

Implements org.bouncycastle.crypto.AsymmetricCipherKeyPairGenerator.generateKeyPair.

Generate a new XMSS private key / public key pair.
private XMSSPrivateKeyParameters

Returns:

XMSS private key.
generatePrivateKey
(XMSSParameters params, SecureRandom prng)

Deprecated as a consequence of XMSSPrivateKeyParameters being deprecated.
Generate an XMSS private key.
public void
init(KeyGenerationParameters
the parameters the key pair is to be initialised with.
param
)

Implements org.bouncycastle.crypto.AsymmetricCipherKeyPairGenerator.init.

intialise the key pair generator.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

paramsback to summary
private XMSSParameters params
prngback to summary
private SecureRandom prng

Constructor Detail

XMSSKeyPairGeneratorback to summary
public XMSSKeyPairGenerator()

Base constructor...

Method Detail

generateKeyPairback to summary
public AsymmetricCipherKeyPair generateKeyPair()

Implements org.bouncycastle.crypto.AsymmetricCipherKeyPairGenerator.generateKeyPair.

Generate a new XMSS private key / public key pair.

Returns:AsymmetricCipherKeyPair

Doc from org.bouncycastle.crypto.AsymmetricCipherKeyPairGenerator.generateKeyPair.

an AsymmetricCipherKeyPair containing the generated keys.

generatePrivateKeyback to summary
private XMSSPrivateKeyParameters generatePrivateKey(XMSSParameters params, SecureRandom prng)

Deprecated

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

Generate an XMSS private key.

Returns:XMSSPrivateKeyParameters

XMSS private key.

initback to summary
public void init(KeyGenerationParameters param)

Implements org.bouncycastle.crypto.AsymmetricCipherKeyPairGenerator.init.

Doc from org.bouncycastle.crypto.AsymmetricCipherKeyPairGenerator.init.

intialise the key pair generator.

Parameters
param:KeyGenerationParameters

the parameters the key pair is to be initialised with.