Table of Contents

Class OfbBlockCipher

Namespace
Org.BouncyCastle.Crypto.Modes
Assembly
BouncyCastle.Cryptography.dll
public class OfbBlockCipher : IBlockCipherMode, IBlockCipher
Inheritance
OfbBlockCipher
Implements
Inherited Members

Constructors

OfbBlockCipher(IBlockCipher, int)

public OfbBlockCipher(IBlockCipher cipher, int blockSize)

Parameters

cipher IBlockCipher
blockSize int

Properties

AlgorithmName

public string AlgorithmName { get; }

Property Value

string

IsPartialBlockOkay

Indicates whether this cipher mode can handle partial blocks.

public bool IsPartialBlockOkay { get; }

Property Value

bool

UnderlyingCipher

public IBlockCipher UnderlyingCipher { get; }

Property Value

IBlockCipher

Methods

GetBlockSize()

public int GetBlockSize()

Returns

int

Init(bool, ICipherParameters)

public void Init(bool forEncryption, ICipherParameters parameters)

Parameters

forEncryption bool
parameters ICipherParameters

ProcessBlock(byte[], int, byte[], int)

Process a block.

public int ProcessBlock(byte[] input, int inOff, byte[] output, int outOff)

Parameters

input byte[]
inOff int

The offset into that the input block begins.

output byte[]
outOff int

The offset into to write the output block.

Returns

int

The number of bytes processed and produced.

Exceptions

DataLengthException

If input block is wrong size, or outBuf too small.

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

Process a block.

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

Parameters

input ReadOnlySpan<byte>

The input block as a span.

output Span<byte>

The output span.

Returns

int

The number of bytes processed and produced.

Exceptions

DataLengthException

If input block is wrong size, or output span too small.

Reset()

public void Reset()