public class Curve25519SHA256 extends SshKeyExchangeClient implements SshKeyExchange
| Modifier and Type | Field and Description |
|---|---|
static int |
SSH_MSG_KEX_ECDH_INIT |
static int |
SSH_MSG_KEX_ECDH_REPLY |
exchangeHash, hashAlgorithm, hostKey, secret, signature, transport| Constructor and Description |
|---|
Curve25519SHA256() |
Curve25519SHA256(String name) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
calculateExchangeHash() |
String |
getAlgorithm()
Get the key exchange algorithm name.
|
String |
getProvider() |
boolean |
isKeyExchangeMessage(int messageid) |
void |
performClientExchange(String clientId,
String serverId,
byte[] clientKexInit,
byte[] serverKexInit)
Override to perform the client side key exchange.
|
void |
test() |
getExchangeHash, getHashAlgorithm, getHostKey, getPriority, getSecret, getSecurityLevel, getSignature, init, resetclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetHashAlgorithmgetPriority, getSecurityLevelpublic static final int SSH_MSG_KEX_ECDH_INIT
public static final int SSH_MSG_KEX_ECDH_REPLY
public Curve25519SHA256()
public Curve25519SHA256(String name)
public String getAlgorithm()
SshKeyExchangeClientgetAlgorithm in interface SshComponentgetAlgorithm in interface SecureComponentgetAlgorithm in class SshKeyExchangeClientpublic void test()
test in interface SshKeyExchangepublic void performClientExchange(String clientId, String serverId, byte[] clientKexInit, byte[] serverKexInit) throws SshException
SshKeyExchangeClientperformClientExchange in class SshKeyExchangeClientSshExceptionpublic boolean isKeyExchangeMessage(int messageid)
isKeyExchangeMessage in class SshKeyExchangeClientprotected void calculateExchangeHash()
throws SshException
SshExceptionpublic String getProvider()
getProvider in interface SshKeyExchangeCopyright © 2025. All rights reserved.