cryptix.provider.elgamal

Class BaseElGamalParams

public class BaseElGamalParams extends Object implements ElGamalParams

Class representing an ElGamal-specific set of key parameters, which defines an ElGamal key family.

The same key parameters apply to both the signature and encryption algorithms.

References:

  1. Bruce Schneier, "Section 19.6 ElGamal," Applied Cryptography, 2nd Edition, John Wiley & Sons, 1996.

  2. IEEE P1363 draft standard, http://stdsbbs.ieee.org/groups/1363/index.html

Copyright © 1997 Systemics Ltd on behalf of the Cryptix Development Team.
All rights reserved.

$Revision: 1.2 $

Since: Cryptix 2.2.2

Author: David Hopwood

See Also: ElGamalKey java.security.Key java.security.Cipher java.security.Signature

Field Summary
protected BigIntegerg
protected BigIntegerp
Constructor Summary
BaseElGamalParams(BigInteger p, BigInteger g)
Construct an ElGamalParams object with the specified prime p, and base g.
Method Summary
BigIntegergetG()
Returns the base, g.
BigIntegergetP()
Returns the prime, p.

Field Detail

g

protected BigInteger g

p

protected BigInteger p

Constructor Detail

BaseElGamalParams

public BaseElGamalParams(BigInteger p, BigInteger g)
Construct an ElGamalParams object with the specified prime p, and base g.

Method Detail

getG

public BigInteger getG()
Returns the base, g.

Returns: the base as a java.math.BigInteger

getP

public BigInteger getP()
Returns the prime, p.

Returns: the prime as a java.math.BigInteger