public class BaseElGamalParams extends java.lang.Object implements ElGamalParams
The same key parameters apply to both the signature and encryption algorithms.
References:
Copyright © 1997
Systemics Ltd on behalf of the
Cryptix Development Team.
All rights reserved.
$Revision: 1.2 $
ElGamalKey
,
Key
,
java.security.Cipher
,
Signature
Modifier and Type | Field and Description |
---|---|
protected java.math.BigInteger |
g |
protected java.math.BigInteger |
p |
Constructor and Description |
---|
BaseElGamalParams(java.math.BigInteger p,
java.math.BigInteger g)
Construct an ElGamalParams object with the specified prime p,
and base g.
|
public BaseElGamalParams(java.math.BigInteger p, java.math.BigInteger g)
public java.math.BigInteger getP()
getP
in interface ElGamalParams
public java.math.BigInteger getG()
getG
in interface ElGamalParams