de.flexiprovider.core.elgamal.semanticallysecure
Class SSVElGamalPublicKeySpec
java.lang.Object
|
+--de.flexiprovider.core.elgamal.semanticallysecure.SSVElGamalPublicKeySpec
- All Implemented Interfaces:
- KeySpec, java.security.spec.KeySpec
- public class SSVElGamalPublicKeySpec
- extends java.lang.Object
- implements KeySpec
This class specifies an ElGamal public key.
- Author:
- Thomas Wahrenbruch, Roberto Samarone dos Santos Araújo
- See Also:
SSVElGamalKeyFactory
| Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SSVElGamalPublicKeySpec
public SSVElGamalPublicKeySpec(FlexiBigInt modulusP,
FlexiBigInt modulusQ,
FlexiBigInt generator,
FlexiBigInt publicA)
- The constructor.
- Parameters:
modulusP - the prime modulus p which specifies the groupmodulusQ - the prime modulus q which specifies the subgroupgenerator - a generator of the grouppublicA - the public value A = ga mod modulus
getModulusP
public FlexiBigInt getModulusP()
- Returns:
- the prime modulus p
getModulusQ
public FlexiBigInt getModulusQ()
- Returns:
- the prime modulus q
getGenerator
public FlexiBigInt getGenerator()
- Returns:
- the generator
getPublicA
public FlexiBigInt getPublicA()
- Returns:
- the public value A = ga mod modulus