Class HashInfo | SSH.NET - A Secure Shell (SSH) library for .NET, optimized for parallelism

Namespace
Renci.SshNet
Assembly
Renci.SshNet.dll

Holds information about key size and cipher to use.

public class HashInfo

Inheritance

Inherited Members

Constructors

HashInfo(int, Func<byte[], HashAlgorithm>, bool)

Initializes a new instance of the Renci.SshNet.HashInfo class.

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

Parameters

keySize int

Size of the key.

hash Func<byte[], HashAlgorithm>

The hash algorithm to use for a given key.

isEncryptThenMAC bool

true to enable encrypt-then-MAC, false to use encrypt-and-MAC.

Properties

HashAlgorithm

Gets the method for creating a System.Security.Cryptography.HashAlgorithm instance given a key.

public Func<byte[], HashAlgorithm> HashAlgorithm { get; }

Property Value

Func<byte[], HashAlgorithm>

IsEncryptThenMAC

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

public bool IsEncryptThenMAC { get; }

Property Value

bool

KeySize

Gets the size of the key.

public int KeySize { get; }

Property Value

int