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

Implements key support for host algorithm.
Наследование: HostAlgorithm
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
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.

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

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

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

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

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

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

Signs the specified data.
public Sign ( byte data ) : byte[]
data byte The data.
Результат byte[]

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

Verifies the signature.
public VerifySignature ( byte data, byte signature ) : bool
data byte The data.
signature byte The signature.
Результат bool