Top Fields Constructors Methods
org.bouncycastle.pqc.crypto.hqc

public Class HQCKeyPairGenerator

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

Field Summary

Modifier and TypeField and Description
private int
private HQCKeyGenerationParameters
private int
k

private int
n

private int
private SecureRandom
private int
w

private int
private int

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.
public AsymmetricCipherKeyPair
private AsymmetricCipherKeyPair
genKeyPair(byte[] seed)

public void
init(KeyGenerationParameters
the parameters the key pair is to be initialised with.
params
)

Implements org.bouncycastle.crypto.AsymmetricCipherKeyPairGenerator.init.

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

Field Detail

deltaback to summary
private int delta
hqcKeyGenerationParametersback to summary
private HQCKeyGenerationParameters hqcKeyGenerationParameters
kback to summary
private int k
nback to summary
private int n
N_BYTEback to summary
private int N_BYTE
randomback to summary
private SecureRandom random
wback to summary
private int w
weback to summary
private int we
wrback to summary
private int wr

Constructor Detail

HQCKeyPairGeneratorback to summary
public HQCKeyPairGenerator()

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.

Annotations
@Override
generateKeyPairWithSeedback to summary
public AsymmetricCipherKeyPair generateKeyPairWithSeed(byte[] seed)
genKeyPairback to summary
private AsymmetricCipherKeyPair genKeyPair(byte[] seed)
initback to summary
public void init(KeyGenerationParameters params)

Implements org.bouncycastle.crypto.AsymmetricCipherKeyPairGenerator.init.

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

intialise the key pair generator.

Parameters
params:KeyGenerationParameters

the parameters the key pair is to be initialised with.

Annotations
@Override