public class GMSSKeyPairGenerator extends java.lang.Object implements AsymmetricCipherKeyPairGenerator
GMSSSigner
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
OID
The GMSS OID.
|
Constructor and Description |
---|
GMSSKeyPairGenerator(GMSSDigestProvider digestProvider)
The standard constructor tries to generate the GMSS algorithm identifier
with the corresponding OID.
|
Modifier and Type | Method and Description |
---|---|
AsymmetricCipherKeyPair |
generateKeyPair()
return an AsymmetricCipherKeyPair containing the generated keys.
|
void |
init(KeyGenerationParameters param)
intialise the key pair generator.
|
void |
initialize(int keySize,
java.security.SecureRandom secureRandom)
This method initializes the GMSS KeyPairGenerator using an integer value
keySize as input. |
void |
initialize(KeyGenerationParameters param)
Initalizes the key pair generator using a parameter set as input
|
public static final java.lang.String OID
public GMSSKeyPairGenerator(GMSSDigestProvider digestProvider)
digestProvider
- provider for digest implementations.public void initialize(int keySize, java.security.SecureRandom secureRandom)
keySize
as input. It provides a simple use of the GMSS for
testing demands.
A given keysize
of less than 10 creates an amount 2^10
signatures. A keySize between 10 and 20 creates 2^20 signatures. Given an
integer greater than 20 the key pair generator creates 2^40 signatures.
keySize
- Assigns the parameters used for the GMSS signatures. There are
3 choices:secureRandom
- not used by GMSS, the SHA1PRNG of the SUN Provider is always
usedpublic void initialize(KeyGenerationParameters param)
public void init(KeyGenerationParameters param)
AsymmetricCipherKeyPairGenerator
init
in interface AsymmetricCipherKeyPairGenerator
param
- the parameters the key pair is to be initialised with.public AsymmetricCipherKeyPair generateKeyPair()
AsymmetricCipherKeyPairGenerator
generateKeyPair
in interface AsymmetricCipherKeyPairGenerator