C# Class Renci.SshNet.Security.KeyHostAlgorithm

Implements key support for host algorithm.
Inheritance: HostAlgorithm
Show file Open project: sshnet/SSH.NET Class Usage Examples

Public Methods

Method Description
KeyHostAlgorithm ( string name, Key key ) : System.Collections.Generic

Initializes a new instance of the KeyHostAlgorithm class.

KeyHostAlgorithm ( string name, Key key, byte data ) : System.Collections.Generic

Initializes a new instance of the HostAlgorithm class.

Sign ( byte data ) : byte[]

Signs the specified data.

VerifySignature ( byte data, byte signature ) : bool

Verifies the signature.

Method Details

KeyHostAlgorithm() public method

Initializes a new instance of the KeyHostAlgorithm class.
public KeyHostAlgorithm ( string name, Key key ) : System.Collections.Generic
name string Host key name.
key Key Host key.
return System.Collections.Generic

KeyHostAlgorithm() public method

Initializes a new instance of the HostAlgorithm class.
public KeyHostAlgorithm ( string name, Key key, byte data ) : System.Collections.Generic
name string Host key name.
key Key Host key.
data byte Host key encoded data.
return System.Collections.Generic

Sign() public method

Signs the specified data.
public Sign ( byte data ) : byte[]
data byte The data.
return byte[]

VerifySignature() public method

Verifies the signature.
public VerifySignature ( byte data, byte signature ) : bool
data byte The data.
signature byte The signature.
return bool