Table of Contents

Class ParametersWithContext

Namespace
Org.BouncyCastle.Crypto.Parameters
Assembly
BouncyCastle.Cryptography.dll
public class ParametersWithContext : ICipherParameters
Inheritance
ParametersWithContext
Implements
Inherited Members

Constructors

ParametersWithContext(ICipherParameters, byte[])

public ParametersWithContext(ICipherParameters parameters, byte[] context)

Parameters

parameters ICipherParameters
context byte[]

ParametersWithContext(ICipherParameters, byte[], int, int)

public ParametersWithContext(ICipherParameters parameters, byte[] context, int contextOff, int contextLen)

Parameters

parameters ICipherParameters
context byte[]
contextOff int
contextLen int

ParametersWithContext(ICipherParameters, ReadOnlySpan<byte>)

public ParametersWithContext(ICipherParameters parameters, ReadOnlySpan<byte> context)

Parameters

parameters ICipherParameters
context ReadOnlySpan<byte>

Properties

ContextLength

public int ContextLength { get; }

Property Value

int

Parameters

public ICipherParameters Parameters { get; }

Property Value

ICipherParameters

Methods

CopyContextTo(byte[], int, int)

public void CopyContextTo(byte[] buf, int off, int len)

Parameters

buf byte[]
off int
len int

Create<TState>(ICipherParameters, int, TState, SpanAction<byte, TState>)

public static ParametersWithContext Create<TState>(ICipherParameters parameters, int contextLength, TState state, SpanAction<byte, TState> action)

Parameters

parameters ICipherParameters
contextLength int
state TState
action SpanAction<byte, TState>

Returns

ParametersWithContext

Type Parameters

TState

GetContext()

public byte[] GetContext()

Returns

byte[]