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
rand SecureRandom
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
keyAlgorithm string
key KeyParameter
kekIdentifier KekIdentifier
AddKekRecipient(string, KeyParameter, byte[])
public void AddKekRecipient(string keyAlgorithm, KeyParameter key, byte[] keyIdentifier)
Parameters
keyAlgorithm string
key KeyParameter
keyIdentifier byte[]
AddKeyAgreementRecipient(string, AsymmetricKeyParameter, AsymmetricKeyParameter, X509Certificate, string)
public void AddKeyAgreementRecipient(string agreementAlgorithm, AsymmetricKeyParameter senderPrivateKey, AsymmetricKeyParameter senderPublicKey, X509Certificate recipientCert, string cekWrapAlgorithm)
Parameters
agreementAlgorithm string
senderPrivateKey AsymmetricKeyParameter
senderPublicKey AsymmetricKeyParameter
recipientCert X509Certificate
cekWrapAlgorithm string
AddKeyAgreementRecipients(string, AsymmetricKeyParameter, AsymmetricKeyParameter, ICollection, string)
public void AddKeyAgreementRecipients(string agreementAlgorithm, AsymmetricKeyParameter senderPrivateKey, AsymmetricKeyParameter senderPublicKey, ICollection recipientCerts, string cekWrapAlgorithm)
Parameters
agreementAlgorithm string
senderPrivateKey AsymmetricKeyParameter
senderPublicKey AsymmetricKeyParameter
recipientCerts ICollection
cekWrapAlgorithm string
AddKeyTransRecipient(AsymmetricKeyParameter, byte[])
public void AddKeyTransRecipient(AsymmetricKeyParameter pubKey, byte[] subKeyId)
Parameters
pubKey AsymmetricKeyParameter
subKeyId byte[]
AddKeyTransRecipient(X509Certificate)
public void AddKeyTransRecipient(X509Certificate cert)
Parameters
cert X509Certificate
AddPasswordRecipient(CmsPbeKey, string)
public void AddPasswordRecipient(CmsPbeKey pbeKey, string kekAlgorithmOid)
Parameters
pbeKey CmsPbeKey
kekAlgorithmOid string
AddRecipientInfoGenerator(IRecipientInfoGenerator)
public void AddRecipientInfoGenerator(IRecipientInfoGenerator recipientInfoGenerator)
Parameters
recipientInfoGenerator IRecipientInfoGenerator
GenerateAsn1Parameters(string, byte[])
protected virtual Asn1Encodable GenerateAsn1Parameters(string encryptionOid, byte[] encKeyBytes)
Parameters
encryptionOid string
encKeyBytes byte[]
Returns
- Asn1Encodable
GetAlgorithmIdentifier(string, KeyParameter, Asn1Encodable, out ICipherParameters)
protected virtual AlgorithmIdentifier GetAlgorithmIdentifier(string encryptionOid, KeyParameter encKey, Asn1Encodable asn1Params, out ICipherParameters cipherParameters)
Parameters
encryptionOid string
encKey KeyParameter
asn1Params Asn1Encodable
cipherParameters ICipherParameters
Returns
- AlgorithmIdentifier