public class

DhExchange

extends Object
java.lang.Object
   ↳ com.trilead.ssh2.crypto.dh.DhExchange

Class Overview

DhExchange.

Summary

Fields
BigInteger e
BigInteger f
static final BigInteger g
BigInteger k
private static final Logger log
BigInteger p
static final BigInteger p1
static final BigInteger p14
BigInteger x
Public Constructors
DhExchange()
Public Methods
byte[] calculateH(byte[] clientversion, byte[] serverversion, byte[] clientKexPayload, byte[] serverKexPayload, byte[] hostKey)
BigInteger getE()
BigInteger getK()
void init(int group, SecureRandom rnd)
void setF(BigInteger f)
[Expand]
Inherited Methods
From class java.lang.Object

Fields

static final BigInteger g

private static final Logger log

static final BigInteger p1

static final BigInteger p14

Public Constructors

public DhExchange ()

Public Methods

public byte[] calculateH (byte[] clientversion, byte[] serverversion, byte[] clientKexPayload, byte[] serverKexPayload, byte[] hostKey)

Parameters
clientversion
serverversion
clientKexPayload
serverKexPayload
hostKey

public BigInteger getE ()

Returns
  • Returns the e.

public BigInteger getK ()

Returns
  • Returns the shared secret k.

public void init (int group, SecureRandom rnd)

Parameters
group
rnd

public void setF (BigInteger f)

Parameters
f