<PackageReference Include="SSH.NET" Version="2024.2.0" />

HashInfo

public class HashInfo
Holds information about key size and cipher to use.
public Func<byte[], HashAlgorithm> HashAlgorithm { get; }

Gets the method for creating a HashAlgorithm instance given a key.

public bool IsEncryptThenMAC { get; }

Gets a value indicating whether the MAC algorithm will use encrypt-then-MAC ordering.

public int KeySize { get; }

Gets the size of the key.

public HashInfo(int keySize, Func<byte[], HashAlgorithm> hash, bool isEncryptThenMAC = false)

Initializes a new instance of the HashInfo class.