Package net.schmizz.sshj.transport.kex
Class DHBase
- java.lang.Object
-
- net.schmizz.sshj.transport.kex.DHBase
-
- Direct Known Subclasses:
Curve25519DH
,DH
,ECDH
public abstract class DHBase extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description DHBase(java.lang.String generator, java.lang.String agreement)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description (package private) abstract void
computeK(byte[] f)
byte[]
getE()
java.math.BigInteger
getK()
abstract void
init(java.security.spec.AlgorithmParameterSpec params, Factory<Random> randomFactory)
(package private) void
setE(byte[] e)
(package private) void
setK(java.math.BigInteger k)
-
-
-
Method Detail
-
computeK
abstract void computeK(byte[] f) throws java.security.GeneralSecurityException
- Throws:
java.security.GeneralSecurityException
-
init
public abstract void init(java.security.spec.AlgorithmParameterSpec params, Factory<Random> randomFactory) throws java.security.GeneralSecurityException
- Throws:
java.security.GeneralSecurityException
-
setE
void setE(byte[] e)
-
setK
void setK(java.math.BigInteger k)
-
getE
public byte[] getE()
-
getK
public java.math.BigInteger getK()
-
-