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

Org.BouncyCastle.Crypto.DataLengthException

This exception is thrown if a buffer that is meant to have output copied into it turns out to be too short, or if we've been given insufficient input.
namespace Org.BouncyCastle.Crypto { public class DataLengthException : CryptoException { public DataLengthException(); public DataLengthException(string message); public DataLengthException(string message, Exception innerException); protected DataLengthException(SerializationInfo info, StreamingContext context); } }