Table of Contents

Class BufferedAsymmetricBlockCipher

Namespace
Org.BouncyCastle.Crypto
Assembly
BouncyCastle.Cryptography.dll
public class BufferedAsymmetricBlockCipher : BufferedCipherBase, IBufferedCipher
Inheritance
BufferedAsymmetricBlockCipher
Implements
Inherited Members

Constructors

BufferedAsymmetricBlockCipher(IAsymmetricBlockCipher)

public BufferedAsymmetricBlockCipher(IAsymmetricBlockCipher cipher)

Parameters

cipher IAsymmetricBlockCipher

Properties

AlgorithmName

The name of the algorithm this cipher implements.

public override string AlgorithmName { get; }

Property Value

string

Methods

DoFinal()

public override byte[] DoFinal()

Returns

byte[]

DoFinal(byte[], int, int)

public override byte[] DoFinal(byte[] input, int inOff, int length)

Parameters

input byte[]
inOff int
length int

Returns

byte[]

DoFinal(Span<byte>)

public override int DoFinal(Span<byte> output)

Parameters

output Span<byte>

Returns

int

GetBlockSize()

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

Init(bool, ICipherParameters)

public override void Init(bool forEncryption, ICipherParameters parameters)

Parameters

forEncryption bool
parameters ICipherParameters

ProcessByte(byte)

public override byte[] ProcessByte(byte input)

Parameters

input byte

Returns

byte[]

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)

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

Parameters

input byte[]
inOff int
length int

Returns

byte[]

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

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

Parameters

input ReadOnlySpan<byte>
output Span<byte>

Returns

int

Reset()

Reset the buffer

public override void Reset()