C# 클래스 Renci.SshNet.Security.KeyExchange

Represents base class for different key exchange algorithm implementations
상속: Renci.SshNet.Security.Algorithm, IDisposable
파일 보기 프로젝트 열기: sshnet/SSH.NET

공개 메소드들

메소드 설명
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