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

SymmetricCipher

public abstract class SymmetricCipher : Cipher
Base class for symmetric cipher implementations.
protected byte[] Key { get; }

Gets the key.

protected SymmetricCipher(byte[] key)

Initializes a new instance of the SymmetricCipher 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.