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

public Class NTRUEncryptionKeyPairGenerator

extends Object
implements AsymmetricCipherKeyPairGenerator
Class Inheritance
All Implemented Interfaces
org.bouncycastle.crypto.AsymmetricCipherKeyPairGenerator
Imports
org.bouncycastle.crypto.AsymmetricCipherKeyPair, .AsymmetricCipherKeyPairGenerator, .KeyGenerationParameters, org.bouncycastle.pqc.legacy.math.ntru.polynomial.DenseTernaryPolynomial, .IntegerPolynomial, .Polynomial, .ProductFormPolynomial, org.bouncycastle.pqc.legacy.math.ntru.util.Util

Generates key pairs.
The parameter p is hardcoded to 3.

Field Summary

Modifier and TypeField and Description
private NTRUEncryptionKeyGenerationParameters

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public AsymmetricCipherKeyPair

Returns:

a key pair
generateKeyPair
()

Implements org.bouncycastle.crypto.AsymmetricCipherKeyPairGenerator.generateKeyPair.

Generates a new encryption key pair.
public void
init(KeyGenerationParameters
encryption parameters
param
)

Implements org.bouncycastle.crypto.AsymmetricCipherKeyPairGenerator.init.

Constructs a new instance with a set of encryption parameters.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

paramsback to summary
private NTRUEncryptionKeyGenerationParameters params

Constructor Detail

NTRUEncryptionKeyPairGeneratorback to summary
public NTRUEncryptionKeyPairGenerator()

Method Detail

generateKeyPairback to summary
public AsymmetricCipherKeyPair generateKeyPair()

Implements org.bouncycastle.crypto.AsymmetricCipherKeyPairGenerator.generateKeyPair.

Generates a new encryption key pair.

Returns:AsymmetricCipherKeyPair

a key pair

initback to summary
public void init(KeyGenerationParameters param)

Implements org.bouncycastle.crypto.AsymmetricCipherKeyPairGenerator.init.

Constructs a new instance with a set of encryption parameters.

Parameters
param:KeyGenerationParameters

encryption parameters