CngGcmAuthenticatedEncryptorConfiguration 類別

定義

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

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

建構函式

CngGcmAuthenticatedEncryptorConfiguration()

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

CngGcmAuthenticatedEncryptorConfiguration(CngGcmAuthenticatedEncryptionSettings)

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

CngGcmAuthenticatedEncryptorConfiguration(CngGcmAuthenticatedEncryptionSettings, IServiceProvider)

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

屬性

EncryptionAlgorithm

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

EncryptionAlgorithmKeySize

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

EncryptionAlgorithmProvider

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

Settings

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

方法

CreateNewDescriptor()

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

適用於