pssht  latest
SSH server library written in PHP
fpoirotte\Pssht\Messages\KEX\ECDH\REPLY\RFC5656 Class Reference
+ Inheritance diagram for fpoirotte\Pssht\Messages\KEX\ECDH\REPLY\RFC5656:

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.
 

Detailed Description

SSH_MSG_KEX_ECDH_REPLY message (RFC 5656).

Definition at line 17 of file RFC5656.php.

Constructor & Destructor Documentation

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 
)

Member Function Documentation

fpoirotte\Pssht\Messages\KEX\ECDH\REPLY\RFC5656::getExchangeHash ( )

Get the exchange hash.

Return values
stringExchange hash.

Definition at line 206 of file RFC5656.php.

References fpoirotte\Pssht\Messages\KEX\ECDH\REPLY\RFC5656\$H.

static fpoirotte\Pssht\Messages\KEX\ECDH\REPLY\RFC5656::getMessageId ( )
static

Retrieve the message's identifier.

Return values
intMessage 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.

Return values
stringShared 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.

Parameters
fpoirotte::Pssht::Wire::Encoder$encoderEncoder to use to perform serialization.
Return values
MessageInterfaceReturns this message.

Implements fpoirotte\Pssht\Messages\MessageInterface.

Definition at line 168 of file RFC5656.php.

static fpoirotte\Pssht\Messages\KEX\ECDH\REPLY\RFC5656::unserialize ( \fpoirotte\Pssht\Wire\Decoder  $decoder)
static

Unserialize some data into a message.

Parameters
fpoirotte::Pssht::Wire::Decoder$decoderDecoder to use to perform unserialization.
Return values
MessageInterfaceUnserialized message.

Implements fpoirotte\Pssht\Messages\MessageInterface.

Definition at line 182 of file RFC5656.php.


The documentation for this class was generated from the following file: