System.Security.Cryptography.Pkcs 命名空間

提供公鑰密碼標準(PKCS)的程式設計元素,包括簽署資料、交換金鑰、請求憑證、公開金鑰加密與解密,以及其他安全功能的方法。

類別

名稱 Description
AlgorithmIdentifier

該 AlgorithmIdentifier 類別定義了用於密碼學運算的演算法。

CmsRecipient

該 CmsRecipient 類別定義 CMS/PKCS #7 訊息的接收者。

CmsRecipientCollection

該 CmsRecipientCollection 類別代表一組 CmsRecipient 物件。 CmsRecipientCollection 實作介面 ICollection 。

CmsRecipientEnumerator

該 CmsRecipientEnumerator 類別提供集合的 CmsRecipientCollection 枚舉功能。 CmsRecipientEnumerator 實作介面 IEnumerator 。

CmsSigner

代表 CMS/PKCS#7 簽署訊息的潛在簽署者。

ContentInfo

該 ContentInfo 類別代表 CMS/PKCS #7 ContentInfo 資料結構,該資料結構依據 CMS/PKCS #7 標準文件所定義。 此資料結構是所有 CMS/PKCS #7 訊息的基礎。

EnvelopedCms

代表包絡資料的 CMS/PKCS#7 結構。

KeyAgreeRecipientInfo

該 KeyAgreeRecipientInfo 類別定義了金鑰協議接收者的資訊。 金鑰協商演算法通常使用 Diffie-Hellman 密鑰協商演算法,其中建立共享密碼學金鑰的雙方都會參與該密鑰的產生,並且根據定義,雙方都同意該密鑰。 這與金鑰傳輸演算法形成對比,後者一方單方面產生金鑰並傳送或傳輸給另一方。

KeyTransRecipientInfo

該 KeyTransRecipientInfo 類別定義了金鑰傳輸接收者資訊。 金鑰傳輸 演算法通常使用 RSA 演算法,發起者透過產生該金鑰並將其傳送給接收者,建立共享的密碼學金鑰。 這與 金鑰協議 演算法形成對比,後者中使用密鑰的雙方都會參與該金鑰的產生,從而互相同意該金鑰。

Pkcs12Builder

可建立 PKCS#12 PFX 資料值。 此類別無法獲得繼承。

Pkcs12CertBag

代表 PKCS#12 CertBag。 此類別無法獲得繼承。

Pkcs12Info

代表來自 PKCS#12 PFX 內容的資料。 此類別無法獲得繼承。

Pkcs12KeyBag

代表 PKCS#12 中的 KeyBag,一個容器,其內容為 PKCS#8 PrivateKeyInfo。 此類別無法獲得繼承。

Pkcs12SafeBag

定義 PKCS#12 規範中 SafeBag 值的核心行為,並提供衍生類別的基礎。

Pkcs12SafeContents

代表 PKCS#12 SafeContents 值。 此類別無法獲得繼承。

Pkcs12SafeContentsBag

代表來自 PKCS#12 的 SafeContentsBag,一個容器,其內容為 PKCS#12 SafeContents 值。 此類別無法獲得繼承。

Pkcs12SecretBag

代表來自 PKCS#12 的 SecretBag,一個容器,其內容為帶有型別識別碼的任意資料。 此類別無法獲得繼承。

Pkcs12ShroudedKeyBag

代表 PKCS#12 中的 ShroudedKeyBag,一個容器,其內容為 PKCS#8 EncryptedPrivateKeyInfo。 此類別無法獲得繼承。

Pkcs8PrivateKeyInfo

允許檢查及建立 PKCS#8 PrivateKeyInfo 與 EncryptedPrivateKeyInfo 值。 此類別無法獲得繼承。

Pkcs9AttributeObject

代表用於 CMS/PKCS #7 與 PKCS #9 操作的屬性。

Pkcs9ContentType

該 Pkcs9ContentType 類別定義 CMS/PKCS #7 訊息內容的類型。

Pkcs9DocumentDescription

該 Pkcs9DocumentDescription 類別定義了 CMS/PKCS #7 訊息內容的描述。

Pkcs9DocumentName

該 Pkcs9DocumentName 類別定義 CMS/PKCS #7 訊息的名稱。

Pkcs9LocalKeyId

代表 PKCS#9 中的 LocalKeyId 屬性。

Pkcs9MessageDigest

該 Pkcs9MessageDigest 類別定義了 CMS/PKCS #7 訊息的訊息摘要。

Pkcs9SigningTime

定義簽名的日期與時間。 Pkcs9SigningTime當數位簽章伴隨驗證日期與時間時,物件可作為物件的認證屬性CmsSigner使用。

PublicKeyInfo

這個 PublicKeyInfo 類別代表與公鑰相關的資訊。

RecipientInfo

該 RecipientInfo 類別代表關於 CMS/PKCS #7 訊息接收者的資訊。 該 RecipientInfo 類別是一個抽象類別,繼承於 和 KeyAgreeRecipientInfoKeyTransRecipientInfo 類別。

RecipientInfoCollection

這個 RecipientInfoCollection 類別代表一組 RecipientInfo 物件。 RecipientInfoCollection 實作介面 ICollection 。

RecipientInfoEnumerator

該 RecipientInfoEnumerator 類別提供集合的 RecipientInfoCollection 枚舉功能。 RecipientInfoEnumerator 實作介面 IEnumerator 。

Rfc3161TimestampRequest

代表來自 IETF RFC 3161 的時間戳記請求。

Rfc3161TimestampToken

代表來自 IETF RFC 3161 的時間戳記。

Rfc3161TimestampTokenInfo

代表RFC3161中定義為 TSTInfo 的時間戳標記資訊類別。

SignedCms

此 SignedCms 類別可啟用 CMS/PKCS #7 訊息的簽署與驗證。

SignerInfo

該 SignerInfo 類別代表與 SignedCms 代表 CMS/PKCS #7 訊息的物件相關的簽署者。

SignerInfoCollection

這個 SignerInfoCollection 類別代表一組 SignerInfo 物件。 SignerInfoCollection 實作介面 ICollection 。

SignerInfoEnumerator

該 SignerInfoEnumerator 類別提供集合的 SignerInfoCollection 枚舉功能。 SignerInfoEnumerator 實作介面 IEnumerator 。

SubjectIdentifier

該 SubjectIdentifier 類別定義主體識別碼的類型,例如 a CmsSigner 或 CmsRecipient。 主體可由憑證發行者及序號或主旨金鑰來識別。

SubjectIdentifierOrKey

該 SubjectIdentifierOrKey 類別定義主體識別碼的類型,例如 a CmsSigner 或 CmsRecipient。 主旨可由憑證發行者與序號、主旨金鑰的雜湊值或主旨金鑰來識別。

列舉

名稱 Description
KeyAgreeKeyChoice

KeyAgreeKeyChoice 列舉會定義金鑰協定通訊協定中使用的金鑰類型。

Pkcs12ConfidentialityMode

表示與 PKCS#12 SafeContents 值相關聯的加密類型。

Pkcs12IntegrityMode

表示套用至 PKCS#12 PFX 值的防竄改類型。

RecipientInfoType

RecipientInfoType 列舉會定義收件者信息的類型。

SubjectIdentifierOrKeyType

SubjectIdentifierOrKeyType 列舉會定義主體的識別方式。

SubjectIdentifierType

SubjectIdentifierType 列舉會定義主體標識碼的類型。