Table of Contents

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

p BigInteger
g BigInteger

ElGamalParameters(BigInteger, BigInteger, int)

public ElGamalParameters(BigInteger p, BigInteger g, int l)

Parameters

p BigInteger
g BigInteger
l int

Properties

G

public BigInteger G { get; }

Property Value

BigInteger

L

public int L { get; }

Property Value

int

P

public BigInteger P { get; }

Property Value

BigInteger

Methods

Equals(ElGamalParameters)

protected bool Equals(ElGamalParameters other)

Parameters

other ElGamalParameters

Returns

bool

Equals(object)

Determines whether the specified object is equal to the current object.

public override bool Equals(object obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.