Renci.SshNet.HashInfo.HashInfo C# (CSharp) Method

HashInfo() public method

Initializes a new instance of the CipherInfo class.
public HashInfo ( int keySize, HashAlgorithm>.Func hash ) : System
keySize int Size of the key.
hash HashAlgorithm>.Func The hash algorithm to use for a given key.
return System
        public HashInfo(int keySize, Func<byte[], HashAlgorithm> hash)
        {
            KeySize = keySize;
            HashAlgorithm = key => (hash(key.Take(KeySize / 8)));
        }
    }
HashInfo