Class ElGamalParameters
- Namespace
- Org.BouncyCastle.Crypto.Parameters
- Assembly
- BouncyCastle.Cryptography.dll
public class ElGamalParameters : ICipherParameters
- Inheritance
-
ElGamalParameters
- Implements
- Inherited Members
Constructors
ElGamalParameters(BigInteger, BigInteger)
public ElGamalParameters(BigInteger p, BigInteger g)
Parameters
pBigIntegergBigInteger
ElGamalParameters(BigInteger, BigInteger, int)
public ElGamalParameters(BigInteger p, BigInteger g, int l)
Parameters
pBigIntegergBigIntegerlint
Properties
G
public BigInteger G { get; }
Property Value
L
public int L { get; }
Property Value
P
public BigInteger P { get; }
Property Value
Methods
Equals(ElGamalParameters)
protected bool Equals(ElGamalParameters other)
Parameters
otherElGamalParameters
Returns
Equals(object)
Determines whether the specified object is equal to the current object.
public override bool Equals(object obj)
Parameters
objobjectThe object to compare with the current object.
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.