Class NTRUSigningKeyPairGenerator
java.lang.Object
org.bouncycastle.pqc.legacy.crypto.ntru.NTRUSigningKeyPairGenerator
- All Implemented Interfaces:
AsymmetricCipherKeyPairGenerator
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
A subclass of Basis that additionally contains the polynomialsF
andG
. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCreates a basis such that|F| < keyNormBound
and|G| < keyNormBound
Generates a new signature key pair.Generates a new signature key pair.void
init
(KeyGenerationParameters param) intialise the key pair generator.
-
Constructor Details
-
NTRUSigningKeyPairGenerator
public NTRUSigningKeyPairGenerator()
-
-
Method Details
-
init
Description copied from interface:AsymmetricCipherKeyPairGenerator
intialise the key pair generator.- Specified by:
init
in interfaceAsymmetricCipherKeyPairGenerator
- Parameters:
param
- the parameters the key pair is to be initialised with.
-
generateKeyPair
Generates a new signature key pair. StartsB+1
threads.- Specified by:
generateKeyPair
in 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| < keyNormBound
and|G| < keyNormBound
- Returns:
- a NTRUSigner basis
-