<PackageReference Include="SSH.NET" Version="2016.0.0-beta2" />

HashInfo

public class HashInfo
Holds information about key size and cipher to use
using System; using System.Security.Cryptography; namespace Renci.SshNet { public class HashInfo { public int KeySize { get; set; } public Func<byte[], HashAlgorithm> HashAlgorithm { get; set; } public HashInfo(int keySize, Func<byte[], HashAlgorithm> hash) { KeySize = keySize; HashAlgorithm = ((byte[] key) => hash(key.Take(KeySize / 8))); } } }