Class NTRUSigningKeyPairGenerator
java.lang.Object
org.bouncycastle.pqc.legacy.crypto.ntru.NTRUSigningKeyPairGenerator
- All Implemented Interfaces:
AsymmetricCipherKeyPairGenerator
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA subclass of Basis that additionally contains the polynomialsFandG. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates a basis such that|F| < keyNormBoundand|G| < keyNormBoundGenerates a new signature key pair.Generates a new signature key pair.voidinit(KeyGenerationParameters param) intialise the key pair generator.
-
Constructor Details
-
NTRUSigningKeyPairGenerator
public NTRUSigningKeyPairGenerator()
-
-
Method Details
-
init
Description copied from interface:AsymmetricCipherKeyPairGeneratorintialise the key pair generator.- Specified by:
initin interfaceAsymmetricCipherKeyPairGenerator- Parameters:
param- the parameters the key pair is to be initialised with.
-
generateKeyPair
Generates a new signature key pair. StartsB+1threads.- Specified by:
generateKeyPairin interfaceAsymmetricCipherKeyPairGenerator- Returns:
- a key pair
-
generateKeyPairSingleThread
Generates a new signature key pair. Runs in a single thread.- Returns:
- a key pair
-
generateBoundedBasis
Creates a basis such that|F| < keyNormBoundand|G| < keyNormBound- Returns:
- a NTRUSigner basis
-