Class RainbowKeyPairGenerator
- java.lang.Object
-
- org.bouncycastle.pqc.crypto.rainbow.RainbowKeyPairGenerator
-
- All Implemented Interfaces:
AsymmetricCipherKeyPairGenerator
public class RainbowKeyPairGenerator extends java.lang.Object implements AsymmetricCipherKeyPairGenerator
This class implements AsymmetricCipherKeyPairGenerator. It is used as a generator for the private and public key of the Rainbow Signature Scheme.Detailed information about the key generation is to be found in the paper of Jintai Ding, Dieter Schmidt: Rainbow, a New Multivariable Polynomial Signature Scheme. ACNS 2005: 164-175 (https://dx.doi.org/10.1007/11496137_12)
-
-
Constructor Summary
Constructors Constructor Description RainbowKeyPairGenerator()
The standard constructor tries to generate the Rainbow algorithm identifier with the corresponding OID.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AsymmetricCipherKeyPair
generateKeyPair()
return an AsymmetricCipherKeyPair containing the generated keys.AsymmetricCipherKeyPair
genKeyPair()
This function generates a Rainbow key pair.void
init(KeyGenerationParameters param)
intialise the key pair generator.void
initialize(KeyGenerationParameters param)
-
-
-
Method Detail
-
genKeyPair
public AsymmetricCipherKeyPair genKeyPair()
This function generates a Rainbow key pair.- Returns:
- the generated key pair
-
initialize
public void initialize(KeyGenerationParameters param)
-
init
public void init(KeyGenerationParameters param)
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
public AsymmetricCipherKeyPair 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.
-
-