CngGcmAuthenticatedEncryptionSettings CngGcmAuthenticatedEncryptionSettings CngGcmAuthenticatedEncryptionSettings Class

Definition

Settings for configuring an authenticated encryption mechanism which uses Windows CNG algorithms in GCM encryption + authentication modes.

public sealed class CngGcmAuthenticatedEncryptionSettings
type CngGcmAuthenticatedEncryptionSettings = class
Public NotInheritable Class CngGcmAuthenticatedEncryptionSettings
Inheritance
CngGcmAuthenticatedEncryptionSettingsCngGcmAuthenticatedEncryptionSettingsCngGcmAuthenticatedEncryptionSettings

Constructors

CngGcmAuthenticatedEncryptionSettings() CngGcmAuthenticatedEncryptionSettings() CngGcmAuthenticatedEncryptionSettings()

Properties

EncryptionAlgorithm EncryptionAlgorithm 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 EncryptionAlgorithmKeySize EncryptionAlgorithmKeySize

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

EncryptionAlgorithmProvider EncryptionAlgorithmProvider 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.

Methods

Validate() Validate() Validate()

Validates that this CngGcmAuthenticatedEncryptionSettings is well-formed, i.e., that the specified algorithm actually exists and can be instantiated properly. An exception will be thrown if validation fails.

Applies to