public class Curve25519SHA256 extends SshKeyExchangeServer implements SshKeyExchange
| Modifier and Type | Field and Description |
|---|---|
static int |
SSH_MSG_KEX_ECDH_INIT |
static int |
SSH_MSG_KEX_ECDH_REPLY |
exchangeHash, firstPacketFollows, hostKey, prvkey, pubkey, secret, signature, transport, useFirstPacket| 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() |
void |
init(AbstractServerTransport transport,
String clientId,
String serverId,
byte[] clientKexInit,
byte[] serverKexInit,
SshPrivateKey prvkey,
SshPublicKey pubkey,
boolean firstPacketFollows,
boolean useFirstPacket) |
boolean |
processMessage(byte[] msg)
Process a key exchange message
|
void |
test() |
getExchangeHash, getHashAlgorithm, getHostKey, getPriority, getSecret, getSecurityLevel, getSignature, hasReceivedNewKeys, hasSentNewKeys, reset, setReceivedNewKeys, setSentNewKeysclone, 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()
SshKeyExchangeServergetAlgorithm in interface SshComponentgetAlgorithm in interface SecureComponentgetAlgorithm in class SshKeyExchangeServerpublic String getProvider()
getProvider in interface SshKeyExchangeprotected void calculateExchangeHash()
throws SshException
SshExceptionpublic void init(AbstractServerTransport transport, String clientId, String serverId, byte[] clientKexInit, byte[] serverKexInit, SshPrivateKey prvkey, SshPublicKey pubkey, boolean firstPacketFollows, boolean useFirstPacket) throws IOException
init in class SshKeyExchangeServerIOExceptionpublic void test()
test in interface SshKeyExchangepublic boolean processMessage(byte[] msg)
throws SshException,
IOException
SshKeyExchangeServerprocessMessage in class SshKeyExchangeServerIOExceptionSshExceptionCopyright © 2025. All rights reserved.