Top Description Fields Constructors Methods
org.bouncycastle.pqc.legacy.crypto.qtesla

public final Class QTESLAKeyPairGenerator

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 qTESLA keys.

Field Summary

Modifier and TypeField and Description
private SecureRandom
private int
securityCategory

qTESLA Security Category

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private byte[]
allocatePrivate(int securityCategory)

private byte[]
allocatePublic(int securityCategory)

public AsymmetricCipherKeyPair

Returns:

a matching key-pair consisting of (QTESLAPublicKeyParameters, QTESLAPrivateKeyParameters).
generateKeyPair
()

Implements org.bouncycastle.crypto.AsymmetricCipherKeyPairGenerator.generateKeyPair.

Generate a key-pair.

public void
init(KeyGenerationParameters param)

Implements org.bouncycastle.crypto.AsymmetricCipherKeyPairGenerator.init.

Initialize the generator with a security category and a source of randomness.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

secureRandomback to summary
private SecureRandom secureRandom
securityCategoryback to summary
private int securityCategory

qTESLA Security Category

Constructor Detail

QTESLAKeyPairGeneratorback to summary
public QTESLAKeyPairGenerator()

Method Detail

allocatePrivateback to summary
private byte[] allocatePrivate(int securityCategory)
allocatePublicback to summary
private byte[] allocatePublic(int securityCategory)
generateKeyPairback to summary
public AsymmetricCipherKeyPair generateKeyPair()

Implements org.bouncycastle.crypto.AsymmetricCipherKeyPairGenerator.generateKeyPair.

Generate a key-pair.

Returns:AsymmetricCipherKeyPair

a matching key-pair consisting of (QTESLAPublicKeyParameters, QTESLAPrivateKeyParameters).

initback to summary
public void init(KeyGenerationParameters param)

Implements org.bouncycastle.crypto.AsymmetricCipherKeyPairGenerator.init.

Initialize the generator with a security category and a source of randomness.

Parameters
param:KeyGenerationParameters

a QTESLAKeyGenerationParameters object.