cryptix.provider.elgamal
public class BaseElGamalParams extends 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 $
Since: Cryptix 2.2.2
See Also: ElGamalKey java.security.Key java.security.Cipher java.security.Signature
| Field Summary | |
|---|---|
| protected BigInteger | g |
| protected BigInteger | p |
| Constructor Summary | |
|---|---|
| BaseElGamalParams(BigInteger p, BigInteger g)
Construct an ElGamalParams object with the specified prime p,
and base g. | |
| Method Summary | |
|---|---|
| BigInteger | getG()
Returns the base, g.
|
| BigInteger | getP()
Returns the prime, p.
|
Returns: the base as a java.math.BigInteger
Returns: the prime as a java.math.BigInteger