Table of Contents

Class Srp6Client

Namespace
Enterprises.Org.BouncyCastle.Crypto.Agreement.Srp
Assembly
Enterprises.BouncyCastle.Crypto.dll
public class Srp6Client
Inheritance
Srp6Client
Inherited Members

Constructors

Srp6Client()

public Srp6Client()

Fields

B

protected BigInteger B

Field Value

BigInteger

Key

protected BigInteger Key

Field Value

BigInteger

M1

protected BigInteger M1

Field Value

BigInteger

M2

protected BigInteger M2

Field Value

BigInteger

N

protected BigInteger N

Field Value

BigInteger

S

protected BigInteger S

Field Value

BigInteger

digest

protected IDigest digest

Field Value

IDigest

g

protected BigInteger g

Field Value

BigInteger

privA

protected BigInteger privA

Field Value

BigInteger

pubA

protected BigInteger pubA

Field Value

BigInteger

random

protected SecureRandom random

Field Value

SecureRandom

u

protected BigInteger u

Field Value

BigInteger

x

protected BigInteger x

Field Value

BigInteger

Methods

CalculateClientEvidenceMessage()

public virtual BigInteger CalculateClientEvidenceMessage()

Returns

BigInteger

CalculateSecret(BigInteger)

public virtual BigInteger CalculateSecret(BigInteger serverB)

Parameters

serverB BigInteger

Returns

BigInteger

CalculateSessionKey()

public virtual BigInteger CalculateSessionKey()

Returns

BigInteger

GenerateClientCredentials(byte[], byte[], byte[])

public virtual BigInteger GenerateClientCredentials(byte[] salt, byte[] identity, byte[] password)

Parameters

salt byte[]
identity byte[]
password byte[]

Returns

BigInteger

Init(Srp6GroupParameters, IDigest, SecureRandom)

public virtual void Init(Srp6GroupParameters group, IDigest digest, SecureRandom random)

Parameters

group Srp6GroupParameters
digest IDigest
random SecureRandom

Init(BigInteger, BigInteger, IDigest, SecureRandom)

public virtual void Init(BigInteger N, BigInteger g, IDigest digest, SecureRandom random)

Parameters

N BigInteger
g BigInteger
digest IDigest
random SecureRandom

SelectPrivateValue()

protected virtual BigInteger SelectPrivateValue()

Returns

BigInteger

VerifyServerEvidenceMessage(BigInteger)

public virtual bool VerifyServerEvidenceMessage(BigInteger serverM2)

Parameters

serverM2 BigInteger

Returns

bool