CRYPT_CONTEXT_CONFIG structure (bcrypt.h)

The CRYPT_CONTEXT_CONFIG structure contains configuration information for a CNG context.

Syntax

typedef struct _CRYPT_CONTEXT_CONFIG {
  ULONG dwFlags;
  ULONG dwReserved;
} CRYPT_CONTEXT_CONFIG, *PCRYPT_CONTEXT_CONFIG;

Members

dwFlags

A set of flags that determine the options for the configuration context. This can be zero or a combination of one or more of the following values.

Value Meaning
CRYPT_EXCLUSIVE
Restricts the set of cryptographic functions in an interface to those that the current CNG context is specifically registered to support.

If this flag is set, then any attempts to resolve a given function will succeed only if one of the following is true:

  • The function exists within the current CNG context.
  • The function exists in some interface in the default context, and an instance of that same interface also exists within the current CNG context.
CRYPT_OVERRIDE
Indicates that this entry in the enterprise-wide configuration table should take precedence over any and all corresponding entries in the local-machine configuration table for this context. This flag only applies to entries in the enterprise-wide configuration table. Without this flag, local machine configuration entries take precedence.

dwReserved

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Header bcrypt.h

See also

BCryptConfigureContext

BCryptCreateContext

BCryptQueryContextConfiguration