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

Org.BouncyCastle.Crypto.Parameters.ParametersWithContext

namespace Org.BouncyCastle.Crypto.Parameters { public class ParametersWithContext : ICipherParameters { public int ContextLength { get; } public ICipherParameters Parameters { get; } public ParametersWithContext(ICipherParameters parameters, byte[] context); public ParametersWithContext(ICipherParameters parameters, byte[] context, int contextOff, int contextLen); public void CopyContextTo(byte[] buf, int off, int len); public byte[] GetContext(); } }