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

Org.BouncyCastle.Cms.KeyTransRecipientInfoGenerator

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); } }