<PackageReference Include="SSH.NET" Version="2016.0.0-beta3" />

CipherMode

public abstract class CipherMode
Base class for cipher mode implementations
protected int _blockSize

Holds block size of the cipher.

protected BlockCipher Cipher

Gets the cipher.

protected byte[] IV

Gets the IV vector.

protected CipherMode(byte[] iv)

Initializes a new instance of the CipherMode class.

public abstract int DecryptBlock(byte[] inputBuffer, int inputOffset, int inputCount, byte[] outputBuffer, int outputOffset)

Decrypts the specified region of the input byte array and copies the decrypted data to the specified region of the output byte array.

public abstract int EncryptBlock(byte[] inputBuffer, int inputOffset, int inputCount, byte[] outputBuffer, int outputOffset)

Encrypts the specified region of the input byte array and copies the encrypted data to the specified region of the output byte array.