<PackageReference Include="BouncyCastle.Cryptography" Version="2.7.0-beta.98" />

PgpDataValidationException

Thrown if the IV at the start of a data stream indicates the wrong key is being used.
using System; using System.Runtime.Serialization; namespace Org.BouncyCastle.Bcpg.OpenPgp { [Serializable] public class PgpDataValidationException : PgpException { public PgpDataValidationException() { } public PgpDataValidationException(string message) : base(message) { } public PgpDataValidationException(string message, Exception innerException) : base(message, innerException) { } protected PgpDataValidationException(SerializationInfo info, StreamingContext context) : base(info, context) { } } }