public class NTRUSigningKeyPairGenerator extends java.lang.Object implements AsymmetricCipherKeyPairGenerator
| Modifier and Type | Class and Description |
|---|---|
class |
NTRUSigningKeyPairGenerator.FGBasis
A subclass of Basis that additionally contains the polynomials
F and G. |
| Constructor and Description |
|---|
NTRUSigningKeyPairGenerator() |
| Modifier and Type | Method and Description |
|---|---|
NTRUSigningPrivateKeyParameters.Basis |
generateBoundedBasis()
Creates a basis such that
|F| < keyNormBound and |G| < keyNormBound |
AsymmetricCipherKeyPair |
generateKeyPair()
Generates a new signature key pair.
|
AsymmetricCipherKeyPair |
generateKeyPairSingleThread()
Generates a new signature key pair.
|
void |
init(KeyGenerationParameters param)
intialise the key pair generator.
|
public void init(KeyGenerationParameters param)
AsymmetricCipherKeyPairGeneratorinit in interface AsymmetricCipherKeyPairGeneratorparam - the parameters the key pair is to be initialised with.public AsymmetricCipherKeyPair generateKeyPair()
B+1 threads.generateKeyPair in interface AsymmetricCipherKeyPairGeneratorpublic AsymmetricCipherKeyPair generateKeyPairSingleThread()
public NTRUSigningPrivateKeyParameters.Basis generateBoundedBasis()
|F| < keyNormBound and |G| < keyNormBound