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() 创建的所有其他描述符不同。

适用于