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

CipherInfo

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

Gets the cipher.

public bool IsAead { get; }

Gets a value indicating whether the cipher is AEAD (Authenticated Encryption with Associated data).

public int KeySize { get; }

Gets the size of the key.

public CipherInfo(int keySize, Func<byte[], byte[], Cipher> cipher, bool isAead = false)

Initializes a new instance of the CipherInfo class.