Table of Contents

Class StreamBlockCipher

Namespace
Org.BouncyCastle.Crypto
Assembly
BouncyCastle.Cryptography.dll
public class StreamBlockCipher : IStreamCipher
Inheritance
StreamBlockCipher
Implements
Inherited Members

Constructors

StreamBlockCipher(IBlockCipherMode)

public StreamBlockCipher(IBlockCipherMode cipherMode)

Parameters

cipherMode IBlockCipherMode

Properties

AlgorithmName

public string AlgorithmName { get; }

Property Value

string

Methods

Init(bool, ICipherParameters)

public void Init(bool forEncryption, ICipherParameters parameters)

Parameters

forEncryption bool
parameters ICipherParameters

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

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

Parameters

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

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

Process a block of bytes from input, putting the result into output.

public virtual void ProcessBytes(ReadOnlySpan<byte> input, Span<byte> output)

Parameters

input ReadOnlySpan<byte>

The input span.

output Span<byte>

The output span.

Exceptions

OutputLengthException

If the output span is too small.

Reset()

public void Reset()

ReturnByte(byte)

public byte ReturnByte(byte input)

Parameters

input byte

Returns

byte