Table of Contents

Struct AesEngine_X86

Namespace
Org.BouncyCastle.Crypto.Engines
Assembly
BouncyCastle.Cryptography.dll
public struct AesEngine_X86 : IBlockCipher
Implements
Inherited Members

Constructors

AesEngine_X86()

public AesEngine_X86()

Properties

AlgorithmName

The name of the algorithm this cipher implements.

public string AlgorithmName { get; }

Property Value

string

IsSupported

public static bool IsSupported { get; }

Property Value

bool

Methods

GetBlockSize()

public int GetBlockSize()

Returns

int

The block size for this cipher, in bytes.

Init(bool, ICipherParameters)

Initialise the cipher.

public void Init(bool forEncryption, ICipherParameters parameters)

Parameters

forEncryption bool

Initialise for encryption if true, for decryption if false.

parameters ICipherParameters

The key or other data required by the cipher.

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

Process a block.

public int ProcessBlock(byte[] inBuf, int inOff, byte[] outBuf, int outOff)

Parameters

inBuf byte[]

The input buffer.

inOff int

The offset into that the input block begins.

outBuf byte[]

The output buffer.

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.

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

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

Parameters

input ReadOnlySpan<byte>
output Span<byte>

Returns

int