public class Curve25519SHA256LibSshServer extends SshKeyExchangeServer implements com.sshtools.common.ssh.components.SshKeyExchangeLegacy
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CURVE25519_SHA2_AT_LIBSSH_ORG |
java.lang.String |
name |
static int |
SSH_MSG_KEX_ECDH_INIT |
static int |
SSH_MSG_KEX_ECDH_REPLY |
exchangeHash, firstPacketFollows, hostKey, prvkey, pubkey, secret, signature, transport, useFirstPacket
Modifier | Constructor and Description |
---|---|
|
Curve25519SHA256LibSshServer() |
protected |
Curve25519SHA256LibSshServer(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
protected void |
calculateExchangeHash() |
java.lang.String |
getAlgorithm()
Get the key exchange algorithm name.
|
java.lang.String |
getProvider() |
void |
init(com.sshtools.synergy.ssh.SshTransport<SshServerContext> transport,
java.lang.String clientId,
java.lang.String serverId,
byte[] clientKexInit,
byte[] serverKexInit,
com.sshtools.common.ssh.components.SshPrivateKey prvkey,
com.sshtools.common.ssh.components.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, setSentNewKeys
public static final int SSH_MSG_KEX_ECDH_INIT
public static final int SSH_MSG_KEX_ECDH_REPLY
public static final java.lang.String CURVE25519_SHA2_AT_LIBSSH_ORG
public final java.lang.String name
public Curve25519SHA256LibSshServer()
protected Curve25519SHA256LibSshServer(java.lang.String name)
public java.lang.String getAlgorithm()
SshKeyExchangeServer
getAlgorithm
in interface com.sshtools.common.ssh.components.SshComponent
getAlgorithm
in interface com.sshtools.common.ssh.SecureComponent
getAlgorithm
in interface com.sshtools.synergy.ssh.components.SshKeyExchange<SshServerContext>
getAlgorithm
in class SshKeyExchangeServer
public java.lang.String getProvider()
getProvider
in interface com.sshtools.common.ssh.components.SshKeyExchangeLegacy
getProvider
in interface com.sshtools.synergy.ssh.components.SshKeyExchange<SshServerContext>
protected void calculateExchangeHash() throws com.sshtools.common.ssh.SshException
com.sshtools.common.ssh.SshException
public void init(com.sshtools.synergy.ssh.SshTransport<SshServerContext> transport, java.lang.String clientId, java.lang.String serverId, byte[] clientKexInit, byte[] serverKexInit, com.sshtools.common.ssh.components.SshPrivateKey prvkey, com.sshtools.common.ssh.components.SshPublicKey pubkey, boolean firstPacketFollows, boolean useFirstPacket) throws java.io.IOException, com.sshtools.common.ssh.SshException
init
in interface com.sshtools.synergy.ssh.components.SshKeyExchange<SshServerContext>
java.io.IOException
com.sshtools.common.ssh.SshException
public void test()
test
in interface com.sshtools.common.ssh.components.SshKeyExchangeLegacy
test
in interface com.sshtools.synergy.ssh.components.SshKeyExchange<SshServerContext>
public boolean processMessage(byte[] msg) throws com.sshtools.common.ssh.SshException, java.io.IOException
SshKeyExchangeServer
processMessage
in interface com.sshtools.synergy.ssh.components.SshKeyExchange<SshServerContext>
processMessage
in class SshKeyExchangeServer
com.sshtools.common.ssh.SshException
java.io.IOException
Copyright © 2021. All rights reserved.