System.Security.Cryptography.Pkcs Namespace

System.Security.Cryptography.Pkcs 命名空间提供了公钥加密标准 (PKCS) 的编程元素,包括用于对数据签名的方法、用于交换密钥的方法、用于请求证书的方法、用于公钥加密和解密的方法,以及用于其他安全性功能的方法。 The System.Security.Cryptography.Pkcs namespace provides programming elements for Public Key Cryptography Standards (PKCS), including methods for signing data, exchanging keys, requesting certificates, public key encryption and decryption, and other security functions.

AlgorithmIdentifier

AlgorithmIdentifier 类定义用于加密操作的算法。The AlgorithmIdentifier class defines the algorithm used for a cryptographic operation.

CmsRecipient

CmsRecipient 类定义 CMS/PKCS #7 消息的收件人。The CmsRecipient class defines the recipient of a CMS/PKCS #7 message.

CmsRecipientCollection

CmsRecipientCollection 类表示 CmsRecipient 对象的集合。The CmsRecipientCollection class represents a set of CmsRecipient objects. CmsRecipientCollection 实现 ICollection 接口。CmsRecipientCollection implements the ICollection interface.

CmsRecipientEnumerator

CmsRecipientEnumerator 类为 CmsRecipientCollection 集合提供枚举功能。The CmsRecipientEnumerator class provides enumeration functionality for the CmsRecipientCollection collection. CmsRecipientEnumerator 实现 IEnumerator 接口。CmsRecipientEnumerator implements the IEnumerator interface.

CmsSigner

表示 CMS/PKCS # 7 签名消息的潜在签名者。Represents a potential signer for a CMS/PKCS#7 signed message.

ContentInfo

ContentInfo 类表示 CMS/PKCS #7 标准文档中定义的 CMS/PKCS #7 ContentInfo 数据结构。The ContentInfo class represents the CMS/PKCS #7 ContentInfo data structure as defined in the CMS/PKCS #7 standards document. 此数据结构是所有 CMS/PKCS #7 消息的基础。This data structure is the basis for all CMS/PKCS #7 messages.

EnvelopedCms

表示封装数据的 CMS/PKCS #7 结构。Represents a CMS/PKCS#7 structure for enveloped data.

KeyAgreeRecipientInfo

KeyAgreeRecipientInfo 类定义密钥协议收信方信息。The KeyAgreeRecipientInfo class defines key agreement recipient information. “密钥协议”算法通常使用 Diffie-Hellman 密钥协议算法,在 Diffie-Hellman 密钥协议算法中,建立共享加密密钥的双方都要参与密钥的生成,当然,双方都认同生成的密钥。Key agreement algorithms typically use the Diffie-Hellman key agreement algorithm, in which the two parties that establish a shared cryptographic key both take part in its generation and, by definition, agree on that key. 这与密钥传输算法不同,在密钥传输算法中,将由一方单独生成密钥,然后将密钥发送或传输给另一方。This is in contrast to key transport algorithms, in which one party generates the key unilaterally and sends, or transports it, to the other party.

KeyTransRecipientInfo

KeyTransRecipientInfo 类定义密钥传输收信方信息。The KeyTransRecipientInfo class defines key transport recipient information. “密钥传输”算法通常使用 RSA 算法,在 RSA 算法中,发信方通过生成一个加密密钥然后将其传输给收信方来建立与收信方共享的加密密钥。Key transport algorithms typically use the RSA algorithm, in which an originator establishes a shared cryptographic key with a recipient by generating that key and then transporting it to the recipient. 这与“密钥协议”算法不同,在此算法中,要使用一个加密密钥的双方都参与该密钥的生成过程,从而相互认同该密钥。This is in contrast to key agreement algorithms, in which the two parties that will be using a cryptographic key both take part in its generation, thereby mutually agreeing to that key.

Pkcs12Builder

启用 PKCS#12 PFX 数据值的创建。Enables the creation of PKCS#12 PFX data values. 此类不能被继承。This class cannot be inherited.

Pkcs12CertBag

表示 PKCS#12 CertBag。Represents the PKCS#12 CertBag. 此类不能被继承。This class cannot be inherited.

Pkcs12Info

表示 PKCS#12 PFX 内容中的数据。Represents the data from PKCS#12 PFX contents. 此类不能被继承。This class cannot be inherited.

Pkcs12KeyBag

表示 PKCS#12 中的 KeyBag,即内容为 PKCS#8 PrivateKeyInfo 的容器。Represents the KeyBag from PKCS#12, a container whose contents are a PKCS#8 PrivateKeyInfo. 此类不能被继承。This class cannot be inherited.

Pkcs12SafeBag

定义 PKCS#12 规范中的 SafeBag 值的核心行为,并为派生类提供基类。Defines the core behavior of a SafeBag value from the PKCS#12 specification and provides a base for derived classes.

Pkcs12SafeContents

表示 PKCS#12 SafeContents 值。Represents a PKCS#12 SafeContents value. 此类不能被继承。This class cannot be inherited.

Pkcs12SafeContentsBag

表示 PKCS#12 中的 SafeContentsBag,即内容为 PKCS#12 SafeContents 值的容器。Represents the SafeContentsBag from PKCS#12, a container whose contents are a PKCS#12 SafeContents value. 此类不能被继承。This class cannot be inherited.

Pkcs12SecretBag

表示 PKCS#12 中的 SecretBag,即内容为包含类型标识符的任意数据的容器。Represents the SecretBag from PKCS#12, a container whose contents are arbitrary data with a type identifier. 此类不能被继承。This class cannot be inherited.

Pkcs12ShroudedKeyBag

表示 PKCS#12 中的 ShroudedKeyBag,即内容为 PKCS#8 EncryptedPrivateKeyInfo 的容器。Represents the ShroudedKeyBag from PKCS#12, a container whose contents are a PKCS#8 EncryptedPrivateKeyInfo. 此类不能被继承。This class cannot be inherited.

Pkcs8PrivateKeyInfo

允许检查和创建 PKCS#8 PrivateKeyInfo 和 EncryptedPrivateKeyInfo 值。Enables the inspection of and creation of PKCS#8 PrivateKeyInfo and EncryptedPrivateKeyInfo values. 此类不能被继承。This class cannot be inherited.

Pkcs9AttributeObject

表示用于 CMS/PKCS #7 和 PKCS #9 操作的特性。Represents an attribute used for CMS/PKCS #7 and PKCS #9 operations.

Pkcs9ContentType

Pkcs9ContentType 类定义 CMS/PKCS #7 消息的内容类型。The Pkcs9ContentType class defines the type of the content of a CMS/PKCS #7 message.

Pkcs9DocumentDescription

Pkcs9DocumentDescription 类定义 CMS/PKCS #7 消息内容的说明。The Pkcs9DocumentDescription class defines the description of the content of a CMS/PKCS #7 message.

Pkcs9DocumentName

Pkcs9DocumentName 类定义 CMS/PKCS #7 消息的名称。The Pkcs9DocumentName class defines the name of a CMS/PKCS #7 message.

Pkcs9LocalKeyId

表示 PKCS#9 中的 LocalKeyId 属性。Represents the LocalKeyId attribute from PKCS#9.

Pkcs9MessageDigest

Pkcs9MessageDigest 类定义 CMS/PKCS #7 消息的消息摘要。The Pkcs9MessageDigest class defines the message digest of a CMS/PKCS #7 message.

Pkcs9SigningTime

Pkcs9SigningTime 类定义签名的签名日期和时间。The Pkcs9SigningTime class defines the signing date and time of a signature. 当要对数字签名附加经过身份验证的日期和时间时,可将 Pkcs9SigningTime 对象用作 CmsSigner 对象的经过身份验证的特性。A Pkcs9SigningTime object can be used as an authenticated attribute of a CmsSigner object when an authenticated date and time are to accompany a digital signature.

PublicKeyInfo

PublicKeyInfo 类表示与公钥关联的信息。The PublicKeyInfo class represents information associated with a public key.

RecipientInfo

RecipientInfo 类表示有关 CMS/PKCS #7 消息收件人的信息。The RecipientInfo class represents information about a CMS/PKCS #7 message recipient. RecipientInfo 类是 KeyAgreeRecipientInfoKeyTransRecipientInfo 类继承而来的抽象类。The RecipientInfo class is an abstract class inherited by the KeyAgreeRecipientInfo and KeyTransRecipientInfo classes.

RecipientInfoCollection

RecipientInfoCollection 类表示 RecipientInfo 对象的集合。The RecipientInfoCollection class represents a collection of RecipientInfo objects. RecipientInfoCollection 实现 ICollection 接口。RecipientInfoCollection implements the ICollection interface.

RecipientInfoEnumerator

RecipientInfoEnumerator 类为 RecipientInfoCollection 集合提供枚举功能。The RecipientInfoEnumerator class provides enumeration functionality for the RecipientInfoCollection collection. RecipientInfoEnumerator 实现 IEnumerator 接口。RecipientInfoEnumerator implements the IEnumerator interface.

Rfc3161TimestampRequest
Rfc3161TimestampToken
Rfc3161TimestampTokenInfo
SignedCms

SignedCms 类启用 CMS/PKCS #7 消息的签名和验证。The SignedCms class enables signing and verifying of CMS/PKCS #7 messages.

SignerInfo

SignerInfo 类表示一个签名者,该签名者与表示 CMS/PKCS #7 消息的 SignedCms 对象相关联。The SignerInfo class represents a signer associated with a SignedCms object that represents a CMS/PKCS #7 message.

SignerInfoCollection

SignerInfoCollection 类表示 SignerInfo 对象的集合。The SignerInfoCollection class represents a collection of SignerInfo objects. SignerInfoCollection 实现 ICollection 接口。SignerInfoCollection implements the ICollection interface.

SignerInfoEnumerator

SignerInfoEnumerator 类为 SignerInfoCollection 集合提供枚举功能。The SignerInfoEnumerator class provides enumeration functionality for the SignerInfoCollection collection. SignerInfoEnumerator 实现 IEnumerator 接口。SignerInfoEnumerator implements the IEnumerator interface.

SubjectIdentifier

SubjectIdentifier 类定义主题的标识符类型,例如 CmsSignerCmsRecipientThe SubjectIdentifier class defines the type of the identifier of a subject, such as a CmsSigner or a CmsRecipient. 可通过证书颁发者和序列号或主题密钥来标识主题。The subject can be identified by the certificate issuer and serial number or the subject key.

SubjectIdentifierOrKey

SubjectIdentifierOrKey 类定义主题的标识符类型,例如 CmsSignerCmsRecipientThe SubjectIdentifierOrKey class defines the type of the identifier of a subject, such as a CmsSigner or a CmsRecipient. 主题可以由证书颁发者和序列号、主题密钥哈希或主题密钥标识。The subject can be identified by the certificate issuer and serial number, the hash of the subject key, or the subject key.

枚举

KeyAgreeKeyChoice

KeyAgreeKeyChoice 枚举定义密钥协商协议中使用的密钥类型。The KeyAgreeKeyChoice enumeration defines the type of key used in a key agreement protocol.

Pkcs12ConfidentialityMode

表示与 PKCS#12 SafeContents 值关联的加密类型。Represents the kind of encryption associated with a PKCS#12 SafeContents value.

Pkcs12IntegrityMode

表示应用于 PKCS#12 PFX 值的防篡改类型。Represents the type of anti-tampering applied to a PKCS#12 PFX value.

RecipientInfoType

RecipientInfoType 枚举定义收件人信息的类型。The RecipientInfoType enumeration defines the types of recipient information.

SubjectIdentifierOrKeyType

SubjectIdentifierOrKeyType 枚举定义如何标识使用者。The SubjectIdentifierOrKeyType enumeration defines how a subject is identified.

SubjectIdentifierType

SubjectIdentifierType 枚举定义使用者标识符的类型。The SubjectIdentifierType enumeration defines the type of subject identifier.