CngCbcAuthenticatedEncryptorConfiguration 類別

定義

表示已設定的已驗證加密機制,其使用 CBC 加密 + HMAC 驗證模式中的 Windows CNG 演算法。

public ref class CngCbcAuthenticatedEncryptorConfiguration sealed
public ref class CngCbcAuthenticatedEncryptorConfiguration sealed : Microsoft::AspNetCore::DataProtection::AuthenticatedEncryption::ConfigurationModel::AlgorithmConfiguration
public sealed class CngCbcAuthenticatedEncryptorConfiguration
public sealed class CngCbcAuthenticatedEncryptorConfiguration : Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.ConfigurationModel.AlgorithmConfiguration
type CngCbcAuthenticatedEncryptorConfiguration = class
    interface IAuthenticatedEncryptorConfiguration
type CngCbcAuthenticatedEncryptorConfiguration = class
    inherit AlgorithmConfiguration
Public NotInheritable Class CngCbcAuthenticatedEncryptorConfiguration
Public NotInheritable Class CngCbcAuthenticatedEncryptorConfiguration
Inherits AlgorithmConfiguration
繼承
CngCbcAuthenticatedEncryptorConfiguration
繼承
CngCbcAuthenticatedEncryptorConfiguration
實作

建構函式

CngCbcAuthenticatedEncryptorConfiguration()

表示已設定的已驗證加密機制,其使用 CBC 加密 + HMAC 驗證模式中的 Windows CNG 演算法。

CngCbcAuthenticatedEncryptorConfiguration(CngCbcAuthenticatedEncryptionSettings)

表示已設定的已驗證加密機制,其使用 CBC 加密 + HMAC 驗證模式中的 Windows CNG 演算法。

CngCbcAuthenticatedEncryptorConfiguration(CngCbcAuthenticatedEncryptionSettings, IServiceProvider)

表示已設定的已驗證加密機制,其使用 CBC 加密 + HMAC 驗證模式中的 Windows CNG 演算法。

屬性

EncryptionAlgorithm

要用於對稱加密的演算法名稱。 此屬性對應于 BCryptOpenAlgorithmProvider 的 'pszAlgId' 參數。 這個屬性必須有值。

EncryptionAlgorithmKeySize

將用於對稱加密之金鑰的位) 長度 (。 這個屬性必須有值。

EncryptionAlgorithmProvider

包含對稱加密演算法實作的提供者名稱。 此屬性對應于 BCryptOpenAlgorithmProvider 的 'pszImplementation' 參數。 這是選用屬性。

HashAlgorithm

用於雜湊資料的演算法名稱。 此屬性對應于 BCryptOpenAlgorithmProvider 的 'pszAlgId' 參數。 這個屬性必須有值。

HashAlgorithmProvider

包含雜湊演算法實作的提供者名稱。 此屬性對應于 BCryptOpenAlgorithmProvider 的 'pszImplementation' 參數。 這是選用屬性。

Settings

表示已設定的已驗證加密機制,其使用 CBC 加密 + HMAC 驗證模式中的 Windows CNG 演算法。

方法

CreateNewDescriptor()

根據此組態建立新的 IAuthenticatedEncryptorDescriptor 實例。 新建立的實例包含唯一索引鍵資料,而且與 方法所 CreateNewDescriptor() 建立的所有其他描述項不同。

適用於