namespace Renci.SshNet.Security { /// /// Base class for SSH host algorithms. /// public abstract class HostAlgorithm { /// /// Gets the host key name. /// public string Name { get; private set; } /// /// Gets the host key data. /// public abstract byte[] Data { get; } /// /// Initializes a new instance of the class. /// /// The host key name. protected HostAlgorithm(string name) { Name = name; } /// /// Signs the specified data. /// /// The data. /// Signed data. public abstract byte[] Sign(byte[] data); /// /// Verifies the signature. /// /// The data. /// The signature. /// True is signature was successfully verifies; otherwise false. public abstract bool VerifySignature(byte[] data, byte[] signature); } }