Class McElieceKeyPairGenerator
java.lang.Object
org.bouncycastle.pqc.legacy.crypto.mceliece.McElieceKeyPairGenerator
- All Implemented Interfaces:
AsymmetricCipherKeyPairGenerator
This class implements key pair generation of the McEliece Public Key
Cryptosystem (McEliecePKC).
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionreturn an AsymmetricCipherKeyPair containing the generated keys.void
init
(KeyGenerationParameters param) intialise the key pair generator.
-
Constructor Details
-
McElieceKeyPairGenerator
public McElieceKeyPairGenerator()
-
-
Method Details
-
init
Description copied from interface:AsymmetricCipherKeyPairGenerator
intialise the key pair generator.- Specified by:
init
in interfaceAsymmetricCipherKeyPairGenerator
- Parameters:
param
- the parameters the key pair is to be initialised with.
-
generateKeyPair
Description copied from interface:AsymmetricCipherKeyPairGenerator
return an AsymmetricCipherKeyPair containing the generated keys.- Specified by:
generateKeyPair
in interfaceAsymmetricCipherKeyPairGenerator
- Returns:
- an AsymmetricCipherKeyPair containing the generated keys.
-