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

适用于