<PackageReference Include="BouncyCastle.Cryptography" Version="2.6.0" />

Org.BouncyCastle.Crypto.Parameters.ParametersWithContext

namespace Org.BouncyCastle.Crypto.Parameters { public class ParametersWithContext : ICipherParameters { public int ContextLength { get; } public ICipherParameters Parameters { get; } public static ParametersWithContext Create<TState>(ICipherParameters parameters, int contextLength, TState state, SpanAction<byte, TState> action); public ParametersWithContext(ICipherParameters parameters, byte[] context); public ParametersWithContext(ICipherParameters parameters, byte[] context, int contextOff, int contextLen); public ParametersWithContext(ICipherParameters parameters, ReadOnlySpan<byte> context); public void CopyContextTo(byte[] buf, int off, int len); public byte[] GetContext(); } }