Class SNTRUPrimeKeyPairGenerator
- java.lang.Object
-
- org.bouncycastle.pqc.crypto.ntruprime.SNTRUPrimeKeyPairGenerator
-
- All Implemented Interfaces:
AsymmetricCipherKeyPairGenerator
public class SNTRUPrimeKeyPairGenerator extends java.lang.Object implements AsymmetricCipherKeyPairGenerator
-
-
Constructor Summary
Constructors Constructor Description SNTRUPrimeKeyPairGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AsymmetricCipherKeyPair
generateKeyPair()
return an AsymmetricCipherKeyPair containing the generated keys.SNTRUPrimeKeyGenerationParameters
getParams()
void
init(KeyGenerationParameters param)
Initialize the Key Pair Generator.
-
-
-
Method Detail
-
getParams
public SNTRUPrimeKeyGenerationParameters getParams()
-
init
public void init(KeyGenerationParameters param)
Initialize the Key Pair Generator.- Specified by:
init
in interfaceAsymmetricCipherKeyPairGenerator
- Parameters:
param
- the parameters the key pair is to be initialised with.
-
generateKeyPair
public AsymmetricCipherKeyPair generateKeyPair()
return an AsymmetricCipherKeyPair containing the generated keys.- Specified by:
generateKeyPair
in interfaceAsymmetricCipherKeyPairGenerator
- Returns:
- an AsymmetricCipherKeyPair containing the generated keys.
-
-