Package com.trilead.ssh2.crypto.dh
Class DhExchange
- java.lang.Object
-
- com.trilead.ssh2.crypto.dh.GenericDhExchange
-
- com.trilead.ssh2.crypto.dh.DhExchange
-
public class DhExchange extends GenericDhExchange
DhExchange.- Version:
- $Id: DhExchange.java,v 1.2 2008/04/01 12:38:09 cplattne Exp $
- Author:
- Christian Plattner, plattner@trilead.com, kenny
-
-
Constructor Summary
Constructors Constructor Description DhExchange()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]getE()java.lang.StringgetHashAlgo()protected byte[]getServerE()voidinit(java.lang.String name)voidsetF(byte[] f)-
Methods inherited from class com.trilead.ssh2.crypto.dh.GenericDhExchange
calculateH, getInstance, getK
-
-
-
-
Method Detail
-
init
public void init(java.lang.String name) throws java.io.IOException- Specified by:
initin classGenericDhExchange- Throws:
java.io.IOException
-
getE
public byte[] getE()
- Specified by:
getEin classGenericDhExchange- Returns:
- Returns the e (public value)
-
getServerE
protected byte[] getServerE()
- Specified by:
getServerEin classGenericDhExchange- Returns:
- Returns the server's e (public value)
-
setF
public void setF(byte[] f) throws java.io.IOException- Specified by:
setFin classGenericDhExchange- Throws:
java.io.IOException
-
getHashAlgo
public java.lang.String getHashAlgo()
- Specified by:
getHashAlgoin classGenericDhExchange
-
-