ch.ethz.ssh2.crypto.dh
Class DhGroupExchange
java.lang.Object
ch.ethz.ssh2.crypto.dh.DhGroupExchange
public class DhGroupExchange
- extends Object
DhGroupExchange.
- Version:
- 2.50, 03/15/10
- Author:
- Christian Plattner
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DhGroupExchange
public DhGroupExchange(BigInteger p,
BigInteger g)
init
public void init(SecureRandom rnd)
getE
public BigInteger getE()
- Returns:
- Returns the e.
getK
public BigInteger getK()
- Returns:
- Returns the shared secret k.
setF
public void setF(BigInteger f)
- Sets f and calculates the shared secret.
calculateH
public byte[] calculateH(byte[] clientversion,
byte[] serverversion,
byte[] clientKexPayload,
byte[] serverKexPayload,
byte[] hostKey,
DHGexParameters para)
Copyright © 2011. All Rights Reserved.