pssht
latest
SSH server library written in PHP
|
Public Member Functions | |
__construct (\fpoirotte\Pssht\ECC\Curve $curve,\fpoirotte\Pssht\Messages\KEX\ECDH\INIT\RFC5656 $kexDHInit,\fpoirotte\Pssht\Key\KeyInterface $key,\fpoirotte\Pssht\Encryption\EncryptionInterface $encryptionAlgo,\fpoirotte\Pssht\KEX\KEXInterface $kexAlgo,\fpoirotte\Pssht\Messages\KEXINIT $serverKEX,\fpoirotte\Pssht\Messages\KEXINIT $clientKEX, $serverIdent, $clientIdent) | |
getExchangeHash () | |
getSharedSecret () | |
serialize (\fpoirotte\Pssht\Wire\Encoder $encoder) | |
Static Public Member Functions | |
static | getMessageId () |
static | unserialize (\fpoirotte\Pssht\Wire\Decoder $decoder) |
Protected Attributes | |
$clientIdent | |
Client's identification string. | |
$clientKEX | |
Algorithms supported by the client. | |
$curve | |
Elliptic curve in use. | |
$H | |
Exchange hash. | |
$K | |
Shared secret. | |
$K_S | |
Server's public host key. | |
$kexAlgo | |
Key exchange algorithm to use. | |
$kexDHInit | |
Client's contribution to the Diffie-Hellman Key Exchange. | |
$Q_S | |
Server's ephemeral public key. | |
$serverIdent | |
Server's identification string. | |
$serverKEX | |
Algorithms supported by the server. | |
SSH_MSG_KEX_ECDH_REPLY message (RFC 5656).
Definition at line 17 of file RFC5656.php.
fpoirotte\Pssht\Messages\KEX\ECDH\REPLY\RFC5656::__construct | ( | \fpoirotte\Pssht\ECC\Curve | $curve, |
\fpoirotte\Pssht\Messages\KEX\ECDH\INIT\RFC5656 | $kexDHInit, | ||
\fpoirotte\Pssht\Key\KeyInterface | $key, | ||
\fpoirotte\Pssht\Encryption\EncryptionInterface | $encryptionAlgo, | ||
\fpoirotte\Pssht\KEX\KEXInterface | $kexAlgo, | ||
\fpoirotte\Pssht\Messages\KEXINIT | $serverKEX, | ||
\fpoirotte\Pssht\Messages\KEXINIT | $clientKEX, | ||
$serverIdent, | |||
$clientIdent | |||
) |
Construct a new SSH_MSG_KEXDH_REPLY message.
fpoirotte::Pssht::ECC::Curve | $curve | Elliptic curve in use. |
fpoirotte::Pssht::Messages::KEX::ECDH::INIT::RFC5656 | $kexDHInit | Client's contribution to the Diffie-Hellman Key Exchange. |
fpoirotte::Pssht::Key::KeyInterface | $key | Server's public key. |
fpoirotte::Pssht::Encryption::EncryptionInterface | $encryptionAlgo | Encryption algorithm in use. |
fpoirotte::Pssht::KEX::KEXInterface | $kexAlgo | Key exchange algorithm to use. |
fpoirotte::Pssht::Messages::KEXINIT | $serverKEX | Algorithms supported by the server. |
fpoirotte::Pssht::Messages::KEXINIT | $clientKEX | Algorithms supported by the client. |
string | $serverIdent | Server's identification string |
string | $clientIdent | Client's identification string |
Definition at line 83 of file RFC5656.php.
References fpoirotte\Pssht\Messages\KEX\ECDH\REPLY\RFC5656\$clientIdent, fpoirotte\Pssht\Messages\KEX\ECDH\REPLY\RFC5656\$clientKEX, fpoirotte\Pssht\Messages\KEX\ECDH\REPLY\RFC5656\$curve, fpoirotte\Pssht\Messages\KEX\ECDH\REPLY\RFC5656\$K_S, fpoirotte\Pssht\Messages\KEX\ECDH\REPLY\RFC5656\$kexAlgo, fpoirotte\Pssht\Messages\KEX\ECDH\REPLY\RFC5656\$kexDHInit, fpoirotte\Pssht\Messages\KEX\ECDH\REPLY\RFC5656\$serverIdent, fpoirotte\Pssht\Messages\KEX\ECDH\REPLY\RFC5656\$serverKEX, fpoirotte\Pssht\Algorithms\factory(), and fpoirotte\Pssht\Messages\KEXINIT\getMessageId().
fpoirotte\Pssht\Messages\KEX\ECDH\REPLY\RFC5656::getExchangeHash | ( | ) |
Get the exchange hash.
string | Exchange hash. |
Definition at line 206 of file RFC5656.php.
References fpoirotte\Pssht\Messages\KEX\ECDH\REPLY\RFC5656\$H.
|
static |
Retrieve the message's identifier.
int | Message identifier. |
Implements fpoirotte\Pssht\Messages\MessageInterface.
Definition at line 163 of file RFC5656.php.
fpoirotte\Pssht\Messages\KEX\ECDH\REPLY\RFC5656::getSharedSecret | ( | ) |
Get the shared secret.
string | Shared secret generated from this Diffie Hellman key exchange. |
Definition at line 195 of file RFC5656.php.
References fpoirotte\Pssht\Messages\KEX\ECDH\REPLY\RFC5656\$K.
fpoirotte\Pssht\Messages\KEX\ECDH\REPLY\RFC5656::serialize | ( | \fpoirotte\Pssht\Wire\Encoder | $encoder | ) |
Serialize the message.
fpoirotte::Pssht::Wire::Encoder | $encoder | Encoder to use to perform serialization. |
MessageInterface | Returns this message. |
Implements fpoirotte\Pssht\Messages\MessageInterface.
Definition at line 168 of file RFC5656.php.
|
static |
Unserialize some data into a message.
fpoirotte::Pssht::Wire::Decoder | $decoder | Decoder to use to perform unserialization. |
MessageInterface | Unserialized message. |
Implements fpoirotte\Pssht\Messages\MessageInterface.
Definition at line 182 of file RFC5656.php.