Table of Contents

Class CtsBlockCipher

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

Constructors

CtsBlockCipher(IBlockCipher)

public CtsBlockCipher(IBlockCipher cipher)

Parameters

cipher IBlockCipher

CtsBlockCipher(IBlockCipherMode)

public CtsBlockCipher(IBlockCipherMode cipherMode)

Parameters

cipherMode IBlockCipherMode

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

GetBlockSize()

return the blocksize for the underlying cipher.

@return the blocksize for the underlying cipher.

public override int GetBlockSize()

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

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