ch.ethz.ssh2.crypto.dh
Class DhExchange
java.lang.Object
ch.ethz.ssh2.crypto.dh.DhExchange
public class DhExchange
- extends Object
- Version:
- $Id$
- Author:
- Christian Plattner
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DhExchange
public DhExchange()
init
public void init(int group,
SecureRandom rnd)
getE
public BigInteger getE()
- Returns:
- Returns the e.
- Throws:
IllegalStateException
getK
public BigInteger getK()
- Returns:
- Returns the shared secret k.
- Throws:
IllegalStateException
setF
public void setF(BigInteger f)
- Parameters:
f -
calculateH
public byte[] calculateH(byte[] clientversion,
byte[] serverversion,
byte[] clientKexPayload,
byte[] serverKexPayload,
byte[] hostKey)
Copyright © 2011. All Rights Reserved.