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

PkcsIOException

public class PkcsIOException : IOException
Base exception for parsing related issues in the PKCS namespace.
using System; using System.IO; using System.Runtime.Serialization; namespace Org.BouncyCastle.Pkcs { [Serializable] public class PkcsIOException : IOException { public PkcsIOException() { } public PkcsIOException(string message) : base(message) { } public PkcsIOException(string message, Exception innerException) : base(message, innerException) { } protected PkcsIOException(SerializationInfo info, StreamingContext context) : base(info, context) { } } }