<PackageReference Include="System.Security.Cryptography.Pkcs" Version="10.0.11" />

Internal.Cryptography.PkcsPal

abstract class PkcsPal
public static PkcsPal Instance { get; }

protected PkcsPal()

public abstract DecryptorPal Decode(ReadOnlySpan<byte> encodedMessage, out int version, out ContentInfo contentInfo, out AlgorithmIdentifier contentEncryptionAlgorithm, out X509Certificate2Collection originatorCerts, out CryptographicAttributeObjectCollection unprotectedAttributes)

public abstract byte[] Encrypt(CmsRecipientCollection recipients, ContentInfo contentInfo, AlgorithmIdentifier contentEncryptionAlgorithm, X509Certificate2Collection originatorCerts, CryptographicAttributeObjectCollection unprotectedAttributes)

public abstract Oid GetEncodedMessageType(ReadOnlySpan<byte> encodedMessage)

public abstract T GetPrivateKeyForDecryption<T>(X509Certificate2 certificate, bool silent) where T : IDisposable

public abstract T GetPrivateKeyForSigning<T>(X509Certificate2 certificate, bool silent) where T : IDisposable

public abstract byte[] GetSubjectKeyIdentifier(X509Certificate2 certificate)