Table of Contents

Class CipherPadding

Namespace
Renci.SshNet.Security.Cryptography.Ciphers
Assembly
Renci.SshNet.dll

Base class for cipher padding implementations.

public abstract class CipherPadding

Inheritance

Derived

Inherited Members

Methods

Pad(int, byte[])

Pads the specified input to match the block size.

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

Parameters

blockSize int

Size of the block.

input byte[]

The input.

Returns

byte[]

Padded data array.

Pad(int, byte[], int, int)

Pads the specified input to match the block size.

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

Parameters

blockSize int

Size of the block.

input byte[]

The input.

offset int

The zero-based offset in input at which the data to pad starts.

length int

The number of bytes in input to take into account.

Returns

byte[]

The padded data array.

Pad(byte[], int)

Pads the specified input with a given number of bytes.

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

Parameters

input byte[]

The input.

paddinglength int

The number of bytes to pad the input with.

Returns

byte[]

The padded data array.

Pad(byte[], int, int, int)

Pads the specified input with a given number of bytes.

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

Parameters

input byte[]

The input.

offset int

The zero-based offset in input at which the data to pad starts.

length int

The number of bytes in input to take into account.

paddinglength int

The number of bytes to pad the input with.

Returns

byte[]

The padded data array.