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)));
}
}
}