C# Class Renci.SshNet.Security.KeyExchangeDiffieHellman

Represents base class for Diffie Hellman key exchange algorithm
Inheritance: KeyExchange
Afficher le fichier Open project: sshnet/SSH.NET

Protected Properties

Свойство Type Description
_clientExchangeValue BigInteger
_clientPayload byte[]
_group BigInteger
_hostKey byte[]
_prime BigInteger
_randomValue BigInteger
_serverExchangeValue BigInteger
_serverPayload byte[]
_signature byte[]

Méthodes publiques

Méthode Description
Start ( Session session, KeyExchangeInitMessage message ) : void

Starts key exchange algorithm

Méthodes protégées

Méthode 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 méthode

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.
Résultat void

PopulateClientExchangeValue() protected méthode

Populates the client exchange value.
protected PopulateClientExchangeValue ( ) : void
Résultat void

Start() public méthode

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.
Résultat void

ValidateExchangeHash() protected méthode

Validates the exchange hash.
protected ValidateExchangeHash ( ) : bool
Résultat bool

Property Details

_clientExchangeValue protected_oe property

Specifies client exchange number.
protected BigInteger _clientExchangeValue
Résultat BigInteger

_clientPayload protected_oe property

Specifies client payload
protected byte[] _clientPayload
Résultat byte[]

_group protected_oe property

Specifies key exchange group number.
protected BigInteger _group
Résultat BigInteger

_hostKey protected_oe property

Specifies host key data.
protected byte[] _hostKey
Résultat byte[]

_prime protected_oe property

Specifies key exchange prime number.
protected BigInteger _prime
Résultat BigInteger

_randomValue protected_oe property

Specifies random generated number.
protected BigInteger _randomValue
Résultat BigInteger

_serverExchangeValue protected_oe property

Specifies server exchange number.
protected BigInteger _serverExchangeValue
Résultat BigInteger

_serverPayload protected_oe property

Specifies server payload
protected byte[] _serverPayload
Résultat byte[]

_signature protected_oe property

Specifies signature data.
protected byte[] _signature
Résultat byte[]