C# Class Renci.SshNet.Security.KeyExchangeEllipticCurveDiffieHellman

Represents base class for Diffie Hellman key exchange algorithm
Inheritance: KeyExchange
显示文件 Open project: ElanHasson/SSIS-Extensions

Protected Properties

Property Type Description
_clientExchangeValue BigInteger
_clientPayload byte[]
_hostKey byte[]
_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
CalculateHash ( ) : byte[]
HandleServerEcdhReply ( ) : void
ValidateExchangeHash ( ) : bool

Validates the exchange hash.

Private Methods

Method Description
Session_MessageReceived ( object sender, MessageEventArgs e ) : void

Method Details

CalculateHash() protected method

protected CalculateHash ( ) : byte[]
return byte[]

HandleServerEcdhReply() protected method

protected HandleServerEcdhReply ( ) : 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[]

_hostKey protected_oe property

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

_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[]