Class McElieceCCA2KeyPairGenerator
java.lang.Object
org.bouncycastle.pqc.legacy.crypto.mceliece.McElieceCCA2KeyPairGenerator
- All Implemented Interfaces:
AsymmetricCipherKeyPairGenerator
public class McElieceCCA2KeyPairGenerator
extends Object
implements AsymmetricCipherKeyPairGenerator
This class implements key pair generation of the McEliece Public Key
Cryptosystem (McEliecePKC).
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionreturn an AsymmetricCipherKeyPair containing the generated keys.void
init
(KeyGenerationParameters param) intialise the key pair generator.
-
Field Details
-
OID
The OID of the algorithm.- See Also:
-
-
Constructor Details
-
McElieceCCA2KeyPairGenerator
public McElieceCCA2KeyPairGenerator()
-
-
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.
-