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 AsymmetricCipherKeyPairgenerateKeyPair()return an AsymmetricCipherKeyPair containing the generated keys.SNTRUPrimeKeyGenerationParametersgetParams()voidinit(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:
initin 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:
generateKeyPairin interfaceAsymmetricCipherKeyPairGenerator- Returns:
- an AsymmetricCipherKeyPair containing the generated keys.
-
-