Table of Contents

Class HostAlgorithm

Namespace
Renci.SshNet.Security
Assembly
Renci.SshNet.dll

Base class for SSH host algorithms.

public abstract class HostAlgorithm

Inheritance

Derived

Inherited Members

Constructors

HostAlgorithm(string)

Initializes a new instance of the Renci.SshNet.Security.HostAlgorithm class.

protected HostAlgorithm(string name)

Parameters

name string

The host key name.

Properties

Data

Gets the host key data.

public abstract byte[] Data { get; }

Property Value

byte[]

Name

Gets the host key name.

public string Name { get; }

Property Value

string

Methods

Sign(byte[])

Signs the specified data.

public abstract byte[] Sign(byte[] data)

Parameters

data byte[]

The data.

Returns

byte[]

Signed data.

VerifySignature(byte[], byte[])

Verifies the signature.

public abstract bool VerifySignature(byte[] data, byte[] signature)

Parameters

data byte[]

The data.

signature byte[]

The signature.

Returns

bool

true is signature was successfully verifies; otherwise false.