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

CipherPadding

public abstract class CipherPadding
Base class for cipher padding implementations
protected CipherPadding()

public abstract byte[] Pad(int blockSize, byte[] input)

Pads specified input to match block size.

public abstract byte[] Pad(byte[] input, int length)

Pads specified input with a given number of bytes to match the block size.