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, reset
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getHashAlgorithm
getPriority, getSecurityLevel
public 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()
SshKeyExchangeClient
getAlgorithm
in interface SshComponent
getAlgorithm
in interface SecureComponent
getAlgorithm
in class SshKeyExchangeClient
public void test()
test
in interface SshKeyExchange
public void performClientExchange(String clientId, String serverId, byte[] clientKexInit, byte[] serverKexInit) throws SshException
SshKeyExchangeClient
performClientExchange
in class SshKeyExchangeClient
SshException
public boolean isKeyExchangeMessage(int messageid)
isKeyExchangeMessage
in class SshKeyExchangeClient
protected void calculateExchangeHash() throws SshException
SshException
public String getProvider()
getProvider
in interface SshKeyExchange
Copyright © 2024. All rights reserved.