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

CmsEnvelopedGenerator

public abstract class CmsEnvelopedGenerator
public static readonly string Aes128Cbc

public static readonly string Aes128Ccm

public static readonly string Aes128Gcm

public static readonly string Aes128Wrap

public static readonly string Aes192Cbc

public static readonly string Aes192Ccm

public static readonly string Aes192Gcm

public static readonly string Aes192Wrap

public static readonly string Aes256Cbc

public static readonly string Aes256Ccm

public static readonly string Aes256Gcm

public static readonly string Aes256Wrap

public static readonly string Camellia128Cbc

public static readonly string Camellia128Wrap

public static readonly string Camellia192Cbc

public static readonly string Camellia192Wrap

public static readonly string Camellia256Cbc

public static readonly string Camellia256Wrap

public const string Cast5Cbc = "1.2.840.113533.7.66.10"

public static readonly string DesCbc

public static readonly string DesEde3Cbc

public static readonly string DesEde3Wrap

public static readonly string ECDHSha1Kdf

public static readonly string ECMqvSha1Kdf

public const string IdeaCbc = "1.3.6.1.4.1.188.7.1.1.2"

public static readonly string RC2Cbc

public static readonly string SeedCbc

public static readonly string SeedWrap

Constructor allowing specific source of randomness

public void AddKekRecipient(string keyAlgorithm, KeyParameter key, byte[] keyIdentifier)

public void AddKekRecipient(string keyAlgorithm, KeyParameter key, KekIdentifier kekIdentifier)

public void AddKeyAgreementRecipient(string agreementAlgorithm, AsymmetricKeyParameter senderPrivateKey, AsymmetricKeyParameter senderPublicKey, X509Certificate recipientCert, string cekWrapAlgorithm)

public void AddKeyAgreementRecipient(string agreementAlgorithm, AsymmetricKeyParameter senderPrivateKey, AsymmetricKeyParameter senderPublicKey, byte[] recipientKeyID, AsymmetricKeyParameter recipientPublicKey, string cekWrapAlgorithm)

public void AddKeyAgreementRecipients(string agreementAlgorithm, AsymmetricKeyParameter senderPrivateKey, AsymmetricKeyParameter senderPublicKey, IEnumerable<X509Certificate> recipientCerts, string cekWrapAlgorithm)

public void AddKeyTransRecipient(AsymmetricKeyParameter pubKey, byte[] subKeyId)

public void AddPasswordRecipient(CmsPbeKey pbeKey, string kekAlgorithmOid)

public void AddRecipientInfoGenerator(RecipientInfoGenerator recipientInfoGenerator)

Add a generator to produce the recipient info required.