Class CmsEnvelopedGenerator
  
  
  
    - Namespace
- Enterprises.Org.BouncyCastle.Cms
- Assembly
- Enterprises.BouncyCastle.Crypto.dll
 
  
  
  
    public class CmsEnvelopedGenerator
   
  
    - Inheritance
- 
      
      CmsEnvelopedGenerator 
    - Derived
- 
      
      
      
    
    - Inherited Members
- 
    
    
    
    
    
    
    
  
Constructors
  
  
  CmsEnvelopedGenerator()
  
  
  
  
  
    public CmsEnvelopedGenerator()
   
  
  
  CmsEnvelopedGenerator(SecureRandom)
  
  
  
  
  
    public CmsEnvelopedGenerator(SecureRandom rand)
   
  Parameters
  
    - randSecureRandom
Fields
  
  Aes128Cbc
  
  
  
  
  
    public static readonly string Aes128Cbc
   
  Field Value
  
    - string
  Aes128Wrap
  
  
  
  
  
    public static readonly string Aes128Wrap
   
  Field Value
  
    - string
  Aes192Cbc
  
  
  
  
  
    public static readonly string Aes192Cbc
   
  Field Value
  
    - string
  Aes192Wrap
  
  
  
  
  
    public static readonly string Aes192Wrap
   
  Field Value
  
    - string
  Aes256Cbc
  
  
  
  
  
    public static readonly string Aes256Cbc
   
  Field Value
  
    - string
  Aes256Wrap
  
  
  
  
  
    public static readonly string Aes256Wrap
   
  Field Value
  
    - string
  Camellia128Cbc
  
  
  
  
  
    public static readonly string Camellia128Cbc
   
  Field Value
  
    - string
  Camellia128Wrap
  
  
  
  
  
    public static readonly string Camellia128Wrap
   
  Field Value
  
    - string
  Camellia192Cbc
  
  
  
  
  
    public static readonly string Camellia192Cbc
   
  Field Value
  
    - string
  Camellia192Wrap
  
  
  
  
  
    public static readonly string Camellia192Wrap
   
  Field Value
  
    - string
  Camellia256Cbc
  
  
  
  
  
    public static readonly string Camellia256Cbc
   
  Field Value
  
    - string
  Camellia256Wrap
  
  
  
  
  
    public static readonly string Camellia256Wrap
   
  Field Value
  
    - string
  Cast5Cbc
  
  
  
  
  
    public const string Cast5Cbc = "1.2.840.113533.7.66.10"
   
  Field Value
  
    - string
  DesEde3Cbc
  
  
  
  
  
    public static readonly string DesEde3Cbc
   
  Field Value
  
    - string
  DesEde3Wrap
  
  
  
  
  
    public static readonly string DesEde3Wrap
   
  Field Value
  
    - string
  ECDHSha1Kdf
  
  
  
  
  
    public static readonly string ECDHSha1Kdf
   
  Field Value
  
    - string
  ECMqvSha1Kdf
  
  
  
  
  
    public static readonly string ECMqvSha1Kdf
   
  Field Value
  
    - string
  IdeaCbc
  
  
  
  
  
    public const string IdeaCbc = "1.3.6.1.4.1.188.7.1.1.2"
   
  Field Value
  
    - string
  RC2Cbc
  
  
  
  
  
    public static readonly string RC2Cbc
   
  Field Value
  
    - string
  SeedCbc
  
  
  
  
  
    public static readonly string SeedCbc
   
  Field Value
  
    - string
  SeedWrap
  
  
  
  
  
    public static readonly string SeedWrap
   
  Field Value
  
    - string
Properties
  
  
  UnprotectedAttributeGenerator
  
  
  
  
  
    public ICmsAttributeTableGenerator UnprotectedAttributeGenerator { get; set; }
   
  Property Value
  
    - ICmsAttributeTableGenerator
Methods
  
  
  AddKekRecipient(string, KeyParameter, KekIdentifier)
  
  
  
  
  
    public void AddKekRecipient(string keyAlgorithm, KeyParameter key, KekIdentifier kekIdentifier)
   
  Parameters
  
    - keyAlgorithmstring
- keyKeyParameter
- kekIdentifierKekIdentifier
  AddKekRecipient(string, KeyParameter, byte[])
  
  
  
  
  
    public void AddKekRecipient(string keyAlgorithm, KeyParameter key, byte[] keyIdentifier)
   
  Parameters
  
    - keyAlgorithmstring
- keyKeyParameter
- keyIdentifierbyte[]
  AddKeyAgreementRecipient(string, AsymmetricKeyParameter, AsymmetricKeyParameter, X509Certificate, string)
  
  
  
  
  
    public void AddKeyAgreementRecipient(string agreementAlgorithm, AsymmetricKeyParameter senderPrivateKey, AsymmetricKeyParameter senderPublicKey, X509Certificate recipientCert, string cekWrapAlgorithm)
   
  Parameters
  
    - agreementAlgorithmstring
- senderPrivateKeyAsymmetricKeyParameter
- senderPublicKeyAsymmetricKeyParameter
- recipientCertX509Certificate
- cekWrapAlgorithmstring
  AddKeyAgreementRecipients(string, AsymmetricKeyParameter, AsymmetricKeyParameter, ICollection, string)
  
  
  
  
  
    public void AddKeyAgreementRecipients(string agreementAlgorithm, AsymmetricKeyParameter senderPrivateKey, AsymmetricKeyParameter senderPublicKey, ICollection recipientCerts, string cekWrapAlgorithm)
   
  Parameters
  
    - agreementAlgorithmstring
- senderPrivateKeyAsymmetricKeyParameter
- senderPublicKeyAsymmetricKeyParameter
- recipientCertsICollection
- cekWrapAlgorithmstring
  AddKeyTransRecipient(AsymmetricKeyParameter, byte[])
  
  
  
  
  
    public void AddKeyTransRecipient(AsymmetricKeyParameter pubKey, byte[] subKeyId)
   
  Parameters
  
    - pubKeyAsymmetricKeyParameter
- subKeyIdbyte[]
  AddKeyTransRecipient(X509Certificate)
  
  
  
  
  
    public void AddKeyTransRecipient(X509Certificate cert)
   
  Parameters
  
    - certX509Certificate
  AddPasswordRecipient(CmsPbeKey, string)
  
  
  
  
  
    public void AddPasswordRecipient(CmsPbeKey pbeKey, string kekAlgorithmOid)
   
  Parameters
  
    - pbeKeyCmsPbeKey
- kekAlgorithmOidstring
  AddRecipientInfoGenerator(IRecipientInfoGenerator)
  
  
  
  
  
    public void AddRecipientInfoGenerator(IRecipientInfoGenerator recipientInfoGenerator)
   
  Parameters
  
    - recipientInfoGeneratorIRecipientInfoGenerator
  GenerateAsn1Parameters(string, byte[])
  
  
  
  
  
    protected virtual Asn1Encodable GenerateAsn1Parameters(string encryptionOid, byte[] encKeyBytes)
   
  Parameters
  
    - encryptionOidstring
- encKeyBytesbyte[]
Returns
  
    - Asn1Encodable
  GetAlgorithmIdentifier(string, KeyParameter, Asn1Encodable, out ICipherParameters)
  
  
  
  
  
    protected virtual AlgorithmIdentifier GetAlgorithmIdentifier(string encryptionOid, KeyParameter encKey, Asn1Encodable asn1Params, out ICipherParameters cipherParameters)
   
  Parameters
  
    - encryptionOidstring
- encKeyKeyParameter
- asn1ParamsAsn1Encodable
- cipherParametersICipherParameters
Returns
  
    - AlgorithmIdentifier