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

Cipher

public abstract class Cipher
Base class for cipher implementation.
public abstract byte MinimumSize { get; }

Gets the minimum data size.

protected Cipher()

protected static uint BigEndianToUInt32(byte[] buffer)

Converts big endian bytes into number.

protected static uint BigEndianToUInt32(byte[] buffer, int offset)

Converts big endian bytes into number.

protected static ulong BigEndianToUInt64(byte[] buffer)

Converts big endian bytes into number.

protected static ulong BigEndianToUInt64(byte[] buffer, int offset)

Converts big endian bytes into number.

protected static uint LittleEndianToUInt32(byte[] buffer)

Converts little endian bytes into number.

protected static uint LittleEndianToUInt32(byte[] buffer, int offset)

Converts little endian bytes into number.

protected static ulong LittleEndianToUInt64(byte[] buffer)

Converts little endian bytes into number.

protected static ulong LittleEndianToUInt64(byte[] buffer, int offset)

Converts little endian bytes into number.

protected static void UInt32ToBigEndian(uint number, byte[] buffer)

Populates buffer with big endian number representation.

protected static void UInt32ToBigEndian(uint number, byte[] buffer, int offset)

Populates buffer with big endian number representation.

protected static void UInt32ToLittleEndian(uint number, byte[] buffer)

Populates buffer with little endian number representation.

protected static void UInt32ToLittleEndian(uint number, byte[] buffer, int offset)

Populates buffer with little endian number representation.

protected static void UInt64ToBigEndian(ulong number, byte[] buffer)

Populates buffer with big endian number representation.

protected static void UInt64ToBigEndian(ulong number, byte[] buffer, int offset)

Populates buffer with big endian number representation.

protected static void UInt64ToLittleEndian(ulong number, byte[] buffer)

Populates buffer with little endian number representation.

protected static void UInt64ToLittleEndian(ulong number, byte[] buffer, int offset)

Populates buffer with little endian number representation.

public abstract byte[] Decrypt(byte[] input)

Decrypts the specified input.

public abstract byte[] Encrypt(byte[] input)

Encrypts the specified input.