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:
- get instance of pFLASH key generator
KeyPairGenerator kpg = Registry.getKeyPairGenerator("pFLASH");
- initialize generator with "default" set of parameters
kpg.initialize(null, secureRandom);
- 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 |
| Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OID
public static final java.lang.String OID
- The OID of the algorithm
PFlashKeyPairGenerator
public PFlashKeyPairGenerator()
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 keysrandom - 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