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

Org.BouncyCastle.Cms.KeyTransRecipientInfoGenerator

Generates CMS key-transport RecipientInfo values. Used by AddKeyTransRecipient and related overloads; the read-side counterpart is KeyTransRecipientInformation.
namespace Org.BouncyCastle.Cms { public class KeyTransRecipientInfoGenerator : RecipientInfoGenerator { protected virtual AlgorithmIdentifier AlgorithmDetails { get; } public KeyTransRecipientInfoGenerator(X509Certificate recipCert, IKeyWrapper keyWrapper); public KeyTransRecipientInfoGenerator(IssuerAndSerialNumber issuerAndSerial, IKeyWrapper keyWrapper); public KeyTransRecipientInfoGenerator(byte[] subjectKeyID, IKeyWrapper keyWrapper); public RecipientInfo Generate(KeyParameter contentEncryptionKey, SecureRandom random); protected virtual byte[] GenerateWrappedKey(KeyParameter contentEncryptionKey); } }