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

InvalidCipherTextException

This exception is thrown whenever we find something we don't expect in a message.
using System; using System.Runtime.Serialization; namespace Org.BouncyCastle.Crypto { [Serializable] public class InvalidCipherTextException : CryptoException { public InvalidCipherTextException() { } public InvalidCipherTextException(string message) : base(message) { } public InvalidCipherTextException(string message, Exception innerException) : base(message, innerException) { } protected InvalidCipherTextException(SerializationInfo info, StreamingContext context) : base(info, context) { } } }