C# Класс Renci.SshNet.Security.KeyExchange

Represents base class for different key exchange algorithm implementations
Наследование: Renci.SshNet.Security.Algorithm, IDisposable
Показать файл Открыть проект

Открытые методы

Метод Описание
CreateClientCipher ( ) : Cipher

Creates the client side cipher to use.

CreateClientHash ( ) : HashAlgorithm

Creates the client side hash algorithm to use.

CreateCompressor ( ) : Compressor

Creates the compression algorithm to use to deflate data.

CreateDecompressor ( ) : Compressor

Creates the compression algorithm to use to inflate data.

CreateServerCipher ( ) : Cipher

Creates the server side cipher to use.

CreateServerHash ( ) : HashAlgorithm

Creates the server side hash algorithm to use.

Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Finish ( ) : void

Finishes key exchange algorithm.

Start ( Session session, KeyExchangeInitMessage message ) : void

Starts key exchange algorithm

Защищенные методы

Метод Описание
CalculateHash ( ) : byte[]

Calculates key exchange hash value.

CanTrustHostKey ( KeyHostAlgorithm host ) : bool

Determines whether the specified host key can be trusted.

Dispose ( bool disposing ) : void

Releases unmanaged and - optionally - managed resources

Hash ( byte hashData ) : byte[]

Hashes the specified data bytes.

SendMessage ( Message message ) : void

Sends SSH message to the server

ValidateExchangeHash ( ) : bool

Validates the exchange hash.

Приватные методы

Метод Описание
GenerateSessionKey ( BigInteger sharedKey, byte exchangeHash, byte key, int size ) : byte[]

Generates the session key.

GenerateSessionKey ( BigInteger sharedKey, byte exchangeHash, char p, byte sessionId ) : byte[]

Generates the session key.

Описание методов

CalculateHash() защищенный абстрактный Метод

Calculates key exchange hash value.
protected abstract CalculateHash ( ) : byte[]
Результат byte[]

CanTrustHostKey() защищенный Метод

Determines whether the specified host key can be trusted.
protected CanTrustHostKey ( KeyHostAlgorithm host ) : bool
host KeyHostAlgorithm The host algorithm.
Результат bool

CreateClientCipher() публичный Метод

Creates the client side cipher to use.
public CreateClientCipher ( ) : Cipher
Результат Cipher

CreateClientHash() публичный Метод

Creates the client side hash algorithm to use.
public CreateClientHash ( ) : HashAlgorithm
Результат HashAlgorithm

CreateCompressor() публичный Метод

Creates the compression algorithm to use to deflate data.
public CreateCompressor ( ) : Compressor
Результат Renci.SshNet.Compression.Compressor

CreateDecompressor() публичный Метод

Creates the compression algorithm to use to inflate data.
public CreateDecompressor ( ) : Compressor
Результат Renci.SshNet.Compression.Compressor

CreateServerCipher() публичный Метод

Creates the server side cipher to use.
public CreateServerCipher ( ) : Cipher
Результат Cipher

CreateServerHash() публичный Метод

Creates the server side hash algorithm to use.
public CreateServerHash ( ) : HashAlgorithm
Результат HashAlgorithm

Dispose() публичный Метод

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
Результат void

Dispose() защищенный Метод

Releases unmanaged and - optionally - managed resources
protected Dispose ( bool disposing ) : void
disposing bool true to release both managed and unmanaged resources; false to release only unmanaged resources.
Результат void

Finish() публичный Метод

Finishes key exchange algorithm.
public Finish ( ) : void
Результат void

Hash() защищенный Метод

Hashes the specified data bytes.
protected Hash ( byte hashData ) : byte[]
hashData byte The hash data.
Результат byte[]

SendMessage() защищенный Метод

Sends SSH message to the server
protected SendMessage ( Message message ) : void
message Renci.SshNet.Messages.Message The message.
Результат void

Start() публичный Метод

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.
Результат void

ValidateExchangeHash() защищенный абстрактный Метод

Validates the exchange hash.
protected abstract ValidateExchangeHash ( ) : bool
Результат bool