<PackageReference Include="BouncyCastle.Cryptography" Version="2.8.0-beta.349" />

Org.BouncyCastle.Cms.RecipientID

Identifies a CMS recipient by issuer and serial number, subject key identifier, or KEK key identifier.
public byte[] KeyIdentifier { get; set; }

Gets or sets the recipient key identifier.

public RecipientID()

public static RecipientID ForCertificate(X509Certificate certificate)

Create an identifier for the recipient associated with certificate.

public virtual bool Equals(RecipientID other)

Determines whether this identifier selects the same recipient as other.