de.flexiprovider.pqc.pflash
Class PFlashKeyPairGenerator

java.lang.Object
  |
  +--java.security.KeyPairGeneratorSpi
        |
        +--de.flexiprovider.api.keys.KeyPairGenerator
              |
              +--de.flexiprovider.pqc.pflash.PFlashKeyPairGenerator

public class PFlashKeyPairGenerator
extends KeyPairGenerator

This class implements key pair generation of the pLASH signature scheme.

The PFlashKeyPairGenerator can be used as follows:

Key generation:
  1. get instance of pFLASH key generator
    KeyPairGenerator kpg = Registry.getKeyPairGenerator("pFLASH");
  2. initialize generator with "default" set of parameters
    kpg.initialize(null, secureRandom);
  3. generate keys
    KeyPair keys = kpg.genKeypair();

Author:
Marian Hornschuch, Alexander Koller
See Also:
PFlashPrivateKey, PFlashPublicKey

Field Summary
static java.lang.String OID
          The OID of the algorithm
 
Constructor Summary
PFlashKeyPairGenerator()
           
 
Method Summary
 KeyPair genKeyPair()
          Generate a pFLASH key pair, consisting of a PFlashPublicKey and a PFlashPrivateKey.
 void initialize(AlgorithmParameterSpec params, SecureRandom srandom)
          Initialize the key pair generator using the specified parameter set and the SecureRandom implementation of the highest-priority installed provider as the source of randomness.
 void initialize(int keysize, SecureRandom srandom)
          Initialize the key pair generator.
 
Methods inherited from class de.flexiprovider.api.keys.KeyPairGenerator
generateKeyPair, initialize, initialize
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OID

public static final java.lang.String OID
The OID of the algorithm
Constructor Detail

PFlashKeyPairGenerator

public PFlashKeyPairGenerator()
Method Detail

initialize

public void initialize(int keysize,
                       SecureRandom srandom)
Initialize the key pair generator. (not supported)
Overrides:
initialize in class KeyPairGenerator
Parameters:
keysize -  
srandom -  

initialize

public void initialize(AlgorithmParameterSpec params,
                       SecureRandom srandom)
                throws InvalidAlgorithmParameterException
Description copied from class: KeyPairGenerator
Initialize the key pair generator using the specified parameter set and the SecureRandom implementation of the highest-priority installed provider as the source of randomness. (If none of the installed providers supply an implementation of SecureRandom, a system-provided source of randomness is used.).
Overrides:
initialize in class KeyPairGenerator
Following copied from class: de.flexiprovider.api.keys.KeyPairGenerator
Parameters:
params - the parameter set used to generate the keys
random - a source of randomness
Throws:
InvalidAlgorithmParameterException - if the given parameters are inappropriate for this key pair generator.

genKeyPair

public KeyPair genKeyPair()
Generate a pFLASH key pair, consisting of a PFlashPublicKey and a PFlashPrivateKey.
Overrides:
genKeyPair in class KeyPairGenerator
Returns:
the generated key pair
See Also:
KeyPair