de.flexiprovider.core.elgamal
Class ElGamalPrivateKeySpec
java.lang.Object
|
+--de.flexiprovider.core.elgamal.ElGamalPrivateKeySpec
- All Implemented Interfaces:
- KeySpec, java.security.spec.KeySpec
- public class ElGamalPrivateKeySpec
- extends java.lang.Object
- implements KeySpec
This class specifies an ElGamal private key.
- Author:
- Thomas Wahrenbruch
- See Also:
ElGamalKeyFactory
| Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ElGamalPrivateKeySpec
public ElGamalPrivateKeySpec(FlexiBigInt modulus,
FlexiBigInt generator,
FlexiBigInt publicA,
FlexiBigInt a)
- The constructor.
- Parameters:
modulus - -
the prime modulus which specifies the groupgenerator - -
a generator of the grouppublicA - -
the public value A = ga mod modulusa - -
the private value a
getModulus
public final FlexiBigInt getModulus()
- Returns:
- the prime modulus
getGenerator
public final FlexiBigInt getGenerator()
- Returns:
- the generator
getPublicA
public final FlexiBigInt getPublicA()
- Returns:
- the public value A = ga mod modulus
getA
public final FlexiBigInt getA()
- Returns:
- the private value a