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

Org.BouncyCastle.Utilities.IO.LimitedBuffer

public sealed class LimitedBuffer : BaseOutputStream
namespace Org.BouncyCastle.Utilities.IO { public sealed class LimitedBuffer : BaseOutputStream { public int Count { get; } public int Limit { get; } public LimitedBuffer(int limit); public int CopyTo(byte[] buffer, int offset); public void Reset(); } }