<PackageReference Include="System.Security.Cryptography.Pkcs" Version="11.0.0-preview.4.26230.115" />

System.Security.Cryptography.Pkcs.RecipientInfo

public abstract class RecipientInfo
The RecipientInfo class represents information about a CMS/PKCS #7 message recipient. The RecipientInfo class is an abstract class inherited by the KeyAgreeRecipientInfo and KeyTransRecipientInfo classes.
public abstract byte[] EncryptedKey { get; }

The EncryptedKey abstract property retrieves the encrypted recipient keying material.

The KeyEncryptionAlgorithm abstract property retrieves the algorithm used to perform the key establishment.

public abstract SubjectIdentifier RecipientIdentifier { get; }

The RecipientIdentifier abstract property retrieves the identifier of the recipient.

public RecipientInfoType Type { get; }

The Type property retrieves the type of the recipient. The type of the recipient determines which of two major protocols is used to establish a key between the originator and the recipient of a CMS/PKCS #7 message.

public abstract int Version { get; }

The Version abstract property retrieves the version of the recipient information. Derived classes automatically set this property for their objects, and the value indicates whether it is using PKCS #7 or Cryptographic Message Syntax (CMS) to protect messages. The version also implies whether the RecipientInfo object establishes a cryptographic key by a key agreement algorithm or a key transport algorithm.