C# Class Renci.SshNet.Security.KeyExchangeDiffieHellman

Represents base class for Diffie Hellman key exchange algorithm
Inheritance: KeyExchange
Mostra file Open project: sshnet/SSH.NET

Protected Properties

Property Type Description
_clientExchangeValue BigInteger
_clientPayload byte[]
_group BigInteger
_hostKey byte[]
_prime BigInteger
_randomValue BigInteger
_serverExchangeValue BigInteger
_serverPayload byte[]
_signature byte[]

Public Methods

Method Description
Start ( Session session, KeyExchangeInitMessage message ) : void

Starts key exchange algorithm

Protected Methods

Method Description
HandleServerDhReply ( byte hostKey, BigInteger serverExchangeValue, byte signature ) : void

Handles the server DH reply message.

PopulateClientExchangeValue ( ) : void

Populates the client exchange value.

ValidateExchangeHash ( ) : bool

Validates the exchange hash.

Method Details

HandleServerDhReply() protected method

Handles the server DH reply message.
protected HandleServerDhReply ( byte hostKey, BigInteger serverExchangeValue, byte signature ) : void
hostKey byte The host key.
serverExchangeValue BigInteger The server exchange value.
signature byte The signature.
return void

PopulateClientExchangeValue() protected method

Populates the client exchange value.
protected PopulateClientExchangeValue ( ) : void
return void

Start() public method

Starts key exchange algorithm
public Start ( Session session, KeyExchangeInitMessage message ) : void
session Session The session.
message Renci.SshNet.Messages.Transport.KeyExchangeInitMessage Key exchange init message.
return void

ValidateExchangeHash() protected method

Validates the exchange hash.
protected ValidateExchangeHash ( ) : bool
return bool

Property Details

_clientExchangeValue protected_oe property

Specifies client exchange number.
protected BigInteger _clientExchangeValue
return BigInteger

_clientPayload protected_oe property

Specifies client payload
protected byte[] _clientPayload
return byte[]

_group protected_oe property

Specifies key exchange group number.
protected BigInteger _group
return BigInteger

_hostKey protected_oe property

Specifies host key data.
protected byte[] _hostKey
return byte[]

_prime protected_oe property

Specifies key exchange prime number.
protected BigInteger _prime
return BigInteger

_randomValue protected_oe property

Specifies random generated number.
protected BigInteger _randomValue
return BigInteger

_serverExchangeValue protected_oe property

Specifies server exchange number.
protected BigInteger _serverExchangeValue
return BigInteger

_serverPayload protected_oe property

Specifies server payload
protected byte[] _serverPayload
return byte[]

_signature protected_oe property

Specifies signature data.
protected byte[] _signature
return byte[]