Package org.apache.sshd.common.kex
Class ECDH
java.lang.Object
org.apache.sshd.common.kex.AbstractDH
org.apache.sshd.common.kex.ECDH
Elliptic Curve Diffie-Hellman key agreement.
- Author:
- Apache MINA SSHD Project
-
Field Summary
Fields inherited from class org.apache.sshd.common.kex.AbstractDH
myKeyAgree
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected byte[]
Lazy-called byAbstractDH.getE()
if the public key data has not been generated yet.protected byte[]
Lazy-called byAbstractDH.getK()
if the shared secret data has not been calculated yetgetHash()
void
void
void
setCurveParameters
(ECParameterSpec paramSpec) void
setF
(byte[] f) toString()
Methods inherited from class org.apache.sshd.common.kex.AbstractDH
checkKeyAgreementNecessity, getE, getK, isPublicDataAvailable, isSharedSecretAvailable, stripLeadingZeroes
-
Field Details
-
KEX_TYPE
- See Also:
-
-
Constructor Details
-
Method Details
-
calculateE
Description copied from class:AbstractDH
Lazy-called byAbstractDH.getE()
if the public key data has not been generated yet.- Specified by:
calculateE
in classAbstractDH
- Returns:
- The calculated public key data
- Throws:
Exception
- If failed to generate the relevant data
-
calculateK
Description copied from class:AbstractDH
Lazy-called byAbstractDH.getK()
if the shared secret data has not been calculated yet- Specified by:
calculateK
in classAbstractDH
- Returns:
- The shared secret data
- Throws:
Exception
- If failed to calculate it
-
setCurveParameters
-
setF
public void setF(byte[] f) - Specified by:
setF
in classAbstractDH
-
putE
- Overrides:
putE
in classAbstractDH
-
putF
- Overrides:
putF
in classAbstractDH
-
getHash
- Specified by:
getHash
in classAbstractDH
- Throws:
Exception
-
toString
- Overrides:
toString
in classAbstractDH
-