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

CipherPadding

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

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

Pads the specified input to match the block size.

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

Pads the specified input to match the block size.

public byte[] Pad(byte[] input, int paddinglength)

Pads the specified input with a given number of bytes.

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

Pads the specified input with a given number of bytes.