C# Class Org.BouncyCastle.Cms.CmsEnvelopedGenerator

Datei anzeigen Open project: red-gate/iTextSharp-4.1.6 Class Usage Examples

Public Properties

Property Type Description
Aes128Cbc string
Aes128Wrap string
Aes192Cbc string
Aes192Wrap string
Aes256Cbc string
Aes256Wrap string
Camellia128Cbc string
Camellia128Wrap string
Camellia192Cbc string
Camellia192Wrap string
Camellia256Cbc string
Camellia256Wrap string
DesEde3Cbc string
DesEde3Wrap string
ECDHSha1Kdf string
RC2Cbc string
SeedCbc string
SeedWrap string

Public Methods

Method Description
AddKekRecipient ( string keyAlgorithm, KeyParameter key, byte keyIdentifier ) : void
AddKeyAgreementRecipient ( string agreementAlgorithm, AsymmetricKeyParameter senderPrivateKey, AsymmetricKeyParameter senderPublicKey, X509Certificate recipientCert, string cekWrapAlgorithm ) : void
AddKeyTransRecipient ( AsymmetricKeyParameter pubKey, byte subKeyId ) : void
AddKeyTransRecipient ( X509Certificate cert ) : void
AddPasswordRecipient ( CmsPbeKey pbeKey, string kekAlgorithmOid ) : void
CmsEnvelopedGenerator ( ) : System
CmsEnvelopedGenerator ( SecureRandom rand ) : System

Constructor allowing specific source of randomness

Protected Methods

Method Description
GenerateAsn1Parameters ( string encryptionOid, byte encKeyBytes ) : Asn1Encodable
GetAlgorithmIdentifier ( string encryptionOid, KeyParameter encKey, Asn1Encodable asn1Params, ICipherParameters &cipherParameters ) : AlgorithmIdentifier

Method Details

AddKekRecipient() public method

public AddKekRecipient ( string keyAlgorithm, KeyParameter key, byte keyIdentifier ) : void
keyAlgorithm string
key Org.BouncyCastle.Crypto.Parameters.KeyParameter
keyIdentifier byte
return void

AddKeyAgreementRecipient() public method

public AddKeyAgreementRecipient ( string agreementAlgorithm, AsymmetricKeyParameter senderPrivateKey, AsymmetricKeyParameter senderPublicKey, X509Certificate recipientCert, string cekWrapAlgorithm ) : void
agreementAlgorithm string
senderPrivateKey Org.BouncyCastle.Crypto.AsymmetricKeyParameter
senderPublicKey Org.BouncyCastle.Crypto.AsymmetricKeyParameter
recipientCert Org.BouncyCastle.X509.X509Certificate
cekWrapAlgorithm string
return void

AddKeyTransRecipient() public method

public AddKeyTransRecipient ( AsymmetricKeyParameter pubKey, byte subKeyId ) : void
pubKey Org.BouncyCastle.Crypto.AsymmetricKeyParameter
subKeyId byte
return void

AddKeyTransRecipient() public method

public AddKeyTransRecipient ( X509Certificate cert ) : void
cert Org.BouncyCastle.X509.X509Certificate
return void

AddPasswordRecipient() public method

public AddPasswordRecipient ( CmsPbeKey pbeKey, string kekAlgorithmOid ) : void
pbeKey CmsPbeKey
kekAlgorithmOid string
return void

CmsEnvelopedGenerator() public method

public CmsEnvelopedGenerator ( ) : System
return System

CmsEnvelopedGenerator() public method

Constructor allowing specific source of randomness
public CmsEnvelopedGenerator ( SecureRandom rand ) : System
rand Org.BouncyCastle.Security.SecureRandom Instance of SecureRandom to use.
return System

GenerateAsn1Parameters() protected method

protected GenerateAsn1Parameters ( string encryptionOid, byte encKeyBytes ) : Asn1Encodable
encryptionOid string
encKeyBytes byte
return Org.BouncyCastle.Asn1.Asn1Encodable

GetAlgorithmIdentifier() protected method

protected GetAlgorithmIdentifier ( string encryptionOid, KeyParameter encKey, Asn1Encodable asn1Params, ICipherParameters &cipherParameters ) : AlgorithmIdentifier
encryptionOid string
encKey Org.BouncyCastle.Crypto.Parameters.KeyParameter
asn1Params Org.BouncyCastle.Asn1.Asn1Encodable
cipherParameters ICipherParameters
return Org.BouncyCastle.Asn1.X509.AlgorithmIdentifier

Property Details

Aes128Cbc public_oe static_oe property

public static string Aes128Cbc
return string

Aes128Wrap public_oe static_oe property

public static string Aes128Wrap
return string

Aes192Cbc public_oe static_oe property

public static string Aes192Cbc
return string

Aes192Wrap public_oe static_oe property

public static string Aes192Wrap
return string

Aes256Cbc public_oe static_oe property

public static string Aes256Cbc
return string

Aes256Wrap public_oe static_oe property

public static string Aes256Wrap
return string

Camellia128Cbc public_oe static_oe property

public static string Camellia128Cbc
return string

Camellia128Wrap public_oe static_oe property

public static string Camellia128Wrap
return string

Camellia192Cbc public_oe static_oe property

public static string Camellia192Cbc
return string

Camellia192Wrap public_oe static_oe property

public static string Camellia192Wrap
return string

Camellia256Cbc public_oe static_oe property

public static string Camellia256Cbc
return string

Camellia256Wrap public_oe static_oe property

public static string Camellia256Wrap
return string

DesEde3Cbc public_oe static_oe property

public static string DesEde3Cbc
return string

DesEde3Wrap public_oe static_oe property

public static string DesEde3Wrap
return string

ECDHSha1Kdf public_oe static_oe property

public static string ECDHSha1Kdf
return string

RC2Cbc public_oe static_oe property

public static string RC2Cbc
return string

SeedCbc public_oe static_oe property

public static string SeedCbc
return string

SeedWrap public_oe static_oe property

public static string SeedWrap
return string