C# Класс Org.BouncyCastle.Cms.CmsEnvelopedGenerator

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
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

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
GenerateAsn1Parameters ( string encryptionOid, byte encKeyBytes ) : Asn1Encodable
GetAlgorithmIdentifier ( string encryptionOid, KeyParameter encKey, Asn1Encodable asn1Params, ICipherParameters &cipherParameters ) : AlgorithmIdentifier

Описание методов

AddKekRecipient() публичный Метод

public AddKekRecipient ( string keyAlgorithm, KeyParameter key, byte keyIdentifier ) : void
keyAlgorithm string
key Org.BouncyCastle.Crypto.Parameters.KeyParameter
keyIdentifier byte
Результат void

AddKeyAgreementRecipient() публичный Метод

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
Результат void

AddKeyTransRecipient() публичный Метод

public AddKeyTransRecipient ( AsymmetricKeyParameter pubKey, byte subKeyId ) : void
pubKey Org.BouncyCastle.Crypto.AsymmetricKeyParameter
subKeyId byte
Результат void

AddKeyTransRecipient() публичный Метод

public AddKeyTransRecipient ( X509Certificate cert ) : void
cert Org.BouncyCastle.X509.X509Certificate
Результат void

AddPasswordRecipient() публичный Метод

public AddPasswordRecipient ( CmsPbeKey pbeKey, string kekAlgorithmOid ) : void
pbeKey CmsPbeKey
kekAlgorithmOid string
Результат void

CmsEnvelopedGenerator() публичный Метод

public CmsEnvelopedGenerator ( ) : System
Результат System

CmsEnvelopedGenerator() публичный Метод

Constructor allowing specific source of randomness
public CmsEnvelopedGenerator ( SecureRandom rand ) : System
rand Org.BouncyCastle.Security.SecureRandom Instance of SecureRandom to use.
Результат System

GenerateAsn1Parameters() защищенный Метод

protected GenerateAsn1Parameters ( string encryptionOid, byte encKeyBytes ) : Asn1Encodable
encryptionOid string
encKeyBytes byte
Результат Org.BouncyCastle.Asn1.Asn1Encodable

GetAlgorithmIdentifier() защищенный Метод

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
Результат Org.BouncyCastle.Asn1.X509.AlgorithmIdentifier

Описание свойств

Aes128Cbc публичное статическое свойство

public static string Aes128Cbc
Результат string

Aes128Wrap публичное статическое свойство

public static string Aes128Wrap
Результат string

Aes192Cbc публичное статическое свойство

public static string Aes192Cbc
Результат string

Aes192Wrap публичное статическое свойство

public static string Aes192Wrap
Результат string

Aes256Cbc публичное статическое свойство

public static string Aes256Cbc
Результат string

Aes256Wrap публичное статическое свойство

public static string Aes256Wrap
Результат string

Camellia128Cbc публичное статическое свойство

public static string Camellia128Cbc
Результат string

Camellia128Wrap публичное статическое свойство

public static string Camellia128Wrap
Результат string

Camellia192Cbc публичное статическое свойство

public static string Camellia192Cbc
Результат string

Camellia192Wrap публичное статическое свойство

public static string Camellia192Wrap
Результат string

Camellia256Cbc публичное статическое свойство

public static string Camellia256Cbc
Результат string

Camellia256Wrap публичное статическое свойство

public static string Camellia256Wrap
Результат string

DesEde3Cbc публичное статическое свойство

public static string DesEde3Cbc
Результат string

DesEde3Wrap публичное статическое свойство

public static string DesEde3Wrap
Результат string

ECDHSha1Kdf публичное статическое свойство

public static string ECDHSha1Kdf
Результат string

RC2Cbc публичное статическое свойство

public static string RC2Cbc
Результат string

SeedCbc публичное статическое свойство

public static string SeedCbc
Результат string

SeedWrap публичное статическое свойство

public static string SeedWrap
Результат string