AsymmetricCipherKeyPairGenerator
public class NTRUSigningKeyPairGenerator extends java.lang.Object implements AsymmetricCipherKeyPairGenerator
Modifier and Type | Class | Description |
---|---|---|
class |
NTRUSigningKeyPairGenerator.FGBasis |
A subclass of Basis that additionally contains the polynomials
F and G . |
Constructor | Description |
---|---|
NTRUSigningKeyPairGenerator() |
Modifier and Type | Method | 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)
AsymmetricCipherKeyPairGenerator
init
in interface AsymmetricCipherKeyPairGenerator
param
- the parameters the key pair is to be initialised with.public AsymmetricCipherKeyPair generateKeyPair()
B+1
threads.generateKeyPair
in interface AsymmetricCipherKeyPairGenerator
public AsymmetricCipherKeyPair generateKeyPairSingleThread()
public NTRUSigningPrivateKeyParameters.Basis generateBoundedBasis()
|F| < keyNormBound
and |G| < keyNormBound