Package net.schmizz.sshj.transport.kex
Class DHBase
java.lang.Object
net.schmizz.sshj.transport.kex.DHBase
- Direct Known Subclasses:
Curve25519DH,DH,ECDH
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final KeyAgreementprivate byte[]protected final KeyPairGeneratorprivate BigInteger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) abstract voidcomputeK(byte[] f) byte[]getE()getK()abstract voidinit(AlgorithmParameterSpec params, Factory<Random> randomFactory) (package private) voidsetE(byte[] e) (package private) voidsetK(BigInteger k)
-
Field Details
-
generator
-
agreement
-
e
private byte[] e -
K
-
-
Constructor Details
-
DHBase
-
-
Method Details
-
computeK
- Throws:
GeneralSecurityException
-
init
public abstract void init(AlgorithmParameterSpec params, Factory<Random> randomFactory) throws GeneralSecurityException - Throws:
GeneralSecurityException
-
setE
void setE(byte[] e) -
setK
-
getE
public byte[] getE() -
getK
-