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, setSentNewKeys
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()
SshKeyExchangeServer
getAlgorithm
in interface SshComponent
getAlgorithm
in interface SecureComponent
getAlgorithm
in class SshKeyExchangeServer
public String getProvider()
getProvider
in interface SshKeyExchange
protected void calculateExchangeHash() throws SshException
SshException
public 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 SshKeyExchangeServer
IOException
public void test()
test
in interface SshKeyExchange
public boolean processMessage(byte[] msg) throws SshException, IOException
SshKeyExchangeServer
processMessage
in class SshKeyExchangeServer
IOException
SshException
Copyright © 2024. All rights reserved.