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

BlockCipher

public abstract class BlockCipher : SymmetricCipher
Base class for block cipher implementations.
public byte BlockSize { get; }

Gets the size of the block.

protected BlockCipher(byte[] key, byte blockSize, CipherMode mode, CipherPadding padding)

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