public class NTRUPlusKeyPairGenerator extends java.lang.Object implements AsymmetricCipherKeyPairGenerator
This generator produces NTRUPlusPublicKeyParameters and NTRUPlusPrivateKeyParameters
based on the chosen NTRU+ algorithm parameters. The implementation follows the specification
defined in the official NTRU+ documentation and reference implementation.
NTRU+ is a key encapsulation mechanism (KEM) and public key encryption (PKE) scheme based on structured lattices. It was selected as a final algorithm in the Korean Post-Quantum Cryptography Competition (KpqC).
References:
| Constructor and Description |
|---|
NTRUPlusKeyPairGenerator() |
| Modifier and Type | Method and Description |
|---|---|
AsymmetricCipherKeyPair |
generateKeyPair()
return an AsymmetricCipherKeyPair containing the generated keys.
|
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()
AsymmetricCipherKeyPairGeneratorgenerateKeyPair in interface AsymmetricCipherKeyPairGenerator