CngCbcAuthenticatedEncryptorConfiguration Class

Definition

Represents a configured authenticated encryption mechanism which uses Windows CNG algorithms in CBC encryption + HMAC authentication modes.

C#
public sealed class CngCbcAuthenticatedEncryptorConfiguration
C#
public sealed class CngCbcAuthenticatedEncryptorConfiguration : Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.ConfigurationModel.AlgorithmConfiguration
Inheritance
CngCbcAuthenticatedEncryptorConfiguration
Inheritance
CngCbcAuthenticatedEncryptorConfiguration
Implements

Constructors

Properties

EncryptionAlgorithm

The name of the algorithm to use for symmetric encryption. This property corresponds to the 'pszAlgId' parameter of BCryptOpenAlgorithmProvider. This property is required to have a value.

EncryptionAlgorithmKeySize

The length (in bits) of the key that will be used for symmetric encryption. This property is required to have a value.

EncryptionAlgorithmProvider

The name of the provider which contains the implementation of the symmetric encryption algorithm. This property corresponds to the 'pszImplementation' parameter of BCryptOpenAlgorithmProvider. This property is optional.

HashAlgorithm

The name of the algorithm to use for hashing data. This property corresponds to the 'pszAlgId' parameter of BCryptOpenAlgorithmProvider. This property is required to have a value.

HashAlgorithmProvider

The name of the provider which contains the implementation of the hash algorithm. This property corresponds to the 'pszImplementation' parameter of BCryptOpenAlgorithmProvider. This property is optional.

Settings

Methods

CreateNewDescriptor()

Creates a new IAuthenticatedEncryptorDescriptor instance based on this configuration. The newly-created instance contains unique key material and is distinct from all other descriptors created by the CreateNewDescriptor() method.

Applies to

منتج الإصدارات
ASP.NET Core 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0