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

Renci.SshNet.HashInfo

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

Gets the cipher.

public bool IsEncryptThenMAC { get; }

Gets a value indicating whether enable encrypt-then-MAC or use encrypt-and-MAC.

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.