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

Org.BouncyCastle.Cms.RecipientInformation

public abstract class RecipientInformation
public string KeyEncryptionAlgOid { get; }

Return the object identifier for the key encryption algorithm.

Return the ASN.1 encoded key encryption algorithm parameters, or null if there aren't any.

public RecipientID RecipientID { get; }

public byte[] GetContent(ICipherParameters key)

public byte[] GetMac()

Return the MAC calculated for the content stream. Note: this call is only meaningful once all the content has been read.