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

public Class McElieceKeyPairGenerator

extends Object
implements AsymmetricCipherKeyPairGenerator
Class Inheritance
All Implemented Interfaces
org.bouncycastle.crypto.AsymmetricCipherKeyPairGenerator
Imports
java.security.SecureRandom, org.bouncycastle.crypto.AsymmetricCipherKeyPair, .AsymmetricCipherKeyPairGenerator, .KeyGenerationParameters, org.bouncycastle.pqc.legacy.math.linearalgebra.GF2Matrix, .GF2mField, .GoppaCode, .GoppaCode.MaMaPe, .Permutation, .PolynomialGF2mSmallM, .PolynomialRingGF2m

This class implements key pair generation of the McEliece Public Key Cryptosystem (McEliecePKC).

Field Summary

Modifier and TypeField and Description
private int
private boolean
private int
m

private McElieceKeyGenerationParameters
private int
n

private static final String
OID

The OID of the algorithm.

private SecureRandom
private int
t

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public AsymmetricCipherKeyPair
generateKeyPair()

Implements org.bouncycastle.crypto.AsymmetricCipherKeyPairGenerator.generateKeyPair.

return an AsymmetricCipherKeyPair containing the generated keys.

private AsymmetricCipherKeyPair
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.

private void
private void
initializeDefault()

Default initialization of the key pair generator.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

fieldPolyback to summary
private int fieldPoly
initializedback to summary
private boolean initialized
mback to summary
private int m
mcElieceParamsback to summary
private McElieceKeyGenerationParameters mcElieceParams
nback to summary
private int n
OIDback to summary
private static final String OID

The OID of the algorithm.

randomback to summary
private SecureRandom random
tback to summary
private int t

Constructor Detail

McElieceKeyPairGeneratorback to summary
public McElieceKeyPairGenerator()

Method Detail

generateKeyPairback to summary
public AsymmetricCipherKeyPair generateKeyPair()

Implements org.bouncycastle.crypto.AsymmetricCipherKeyPairGenerator.generateKeyPair.

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

return an AsymmetricCipherKeyPair containing the generated keys.

Returns:AsymmetricCipherKeyPair

an AsymmetricCipherKeyPair containing the generated keys.

genKeyPairback to summary
private AsymmetricCipherKeyPair genKeyPair()
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.

initializeback to summary
private void initialize(KeyGenerationParameters param)
initializeDefaultback to summary
private void initializeDefault()

Default initialization of the key pair generator.