Table of Contents

Class PaddedBufferedBlockCipher

Namespace
Org.BouncyCastle.Crypto.Paddings
Assembly
BouncyCastle.Cryptography.dll
public class PaddedBufferedBlockCipher : BufferedBlockCipher, IBufferedCipher
Inheritance
PaddedBufferedBlockCipher
Implements
Inherited Members

Constructors

PaddedBufferedBlockCipher(IBlockCipher, IBlockCipherPadding)

public PaddedBufferedBlockCipher(IBlockCipher cipher, IBlockCipherPadding padding)

Parameters

cipher IBlockCipher
padding IBlockCipherPadding

PaddedBufferedBlockCipher(IBlockCipherMode)

public PaddedBufferedBlockCipher(IBlockCipherMode cipherMode)

Parameters

cipherMode IBlockCipherMode

PaddedBufferedBlockCipher(IBlockCipherMode, IBlockCipherPadding)

public PaddedBufferedBlockCipher(IBlockCipherMode cipherMode, IBlockCipherPadding padding)

Parameters

cipherMode IBlockCipherMode
padding IBlockCipherPadding

Methods

DoFinal(byte[], int)

public override int DoFinal(byte[] output, int outOff)

Parameters

output byte[]
outOff int

Returns

int

DoFinal(Span<byte>)

public override int DoFinal(Span<byte> output)

Parameters

output Span<byte>

Returns

int

GetOutputSize(int)

public override int GetOutputSize(int length)

Parameters

length int

Returns

int

GetUpdateOutputSize(int)

public override int GetUpdateOutputSize(int length)

Parameters

length int

Returns

int

Init(bool, ICipherParameters)

public override void Init(bool forEncryption, ICipherParameters parameters)

Parameters

forEncryption bool
parameters ICipherParameters

ProcessByte(byte, byte[], int)

public override int ProcessByte(byte input, byte[] output, int outOff)

Parameters

input byte
output byte[]
outOff int

Returns

int

ProcessByte(byte, Span<byte>)

public override int ProcessByte(byte input, Span<byte> output)

Parameters

input byte
output Span<byte>

Returns

int

ProcessBytes(byte[], int, int, byte[], int)

public override int ProcessBytes(byte[] input, int inOff, int length, byte[] output, int outOff)

Parameters

input byte[]
inOff int
length int
output byte[]
outOff int

Returns

int

ProcessBytes(ReadOnlySpan<byte>, Span<byte>)

public override int ProcessBytes(ReadOnlySpan<byte> input, Span<byte> output)

Parameters

input ReadOnlySpan<byte>
output Span<byte>

Returns

int