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 voidcomputeK(byte[] f)byte[]getE()java.math.BigIntegergetK()abstract voidinit(java.security.spec.AlgorithmParameterSpec params, Factory<Random> randomFactory)(package private) voidsetE(byte[] e)(package private) voidsetK(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()
-
-