Table of Contents

Class DHPrivateKeyParameters

Namespace
Org.BouncyCastle.Crypto.Parameters
Assembly
BouncyCastle.Cryptography.dll
public class DHPrivateKeyParameters : DHKeyParameters, ICipherParameters
Inheritance
DHPrivateKeyParameters
Implements
Inherited Members

Constructors

DHPrivateKeyParameters(BigInteger, DHParameters)

public DHPrivateKeyParameters(BigInteger x, DHParameters parameters)

Parameters

x BigInteger
parameters DHParameters

DHPrivateKeyParameters(BigInteger, DHParameters, DerObjectIdentifier)

public DHPrivateKeyParameters(BigInteger x, DHParameters parameters, DerObjectIdentifier algorithmOid)

Parameters

x BigInteger
parameters DHParameters
algorithmOid DerObjectIdentifier

Properties

X

public BigInteger X { get; }

Property Value

BigInteger

Methods

Equals(DHPrivateKeyParameters)

protected bool Equals(DHPrivateKeyParameters other)

Parameters

other DHPrivateKeyParameters

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.