Class RainbowKeyPairGenerator
java.lang.Object
org.bouncycastle.pqc.legacy.crypto.rainbow.RainbowKeyPairGenerator
- All Implemented Interfaces:
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
ConstructorsConstructorDescriptionThe standard constructor tries to generate the Rainbow algorithm identifier with the corresponding OID. -
Method Summary
Modifier and TypeMethodDescriptionreturn an AsymmetricCipherKeyPair containing the generated keys.This function generates a Rainbow key pair.void
init
(KeyGenerationParameters param) intialise the key pair generator.void
-
Constructor Details
-
RainbowKeyPairGenerator
public RainbowKeyPairGenerator()The standard constructor tries to generate the Rainbow algorithm identifier with the corresponding OID.
-
-
Method Details
-
genKeyPair
This function generates a Rainbow key pair.- Returns:
- the generated key pair
-
initialize
-
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.
-