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

Org.BouncyCastle.Crypto.MaxBytesExceededException

This exception is thrown whenever a cipher requires a change of key, IV or similar after x amount of bytes enciphered.
namespace Org.BouncyCastle.Crypto { public class MaxBytesExceededException : CryptoException { public MaxBytesExceededException(); public MaxBytesExceededException(string message); public MaxBytesExceededException(string message, Exception innerException); protected MaxBytesExceededException(SerializationInfo info, StreamingContext context); } }