CRYPT_PROVIDER_REF structure (bcrypt.h)

The CRYPT_PROVIDER_REF structure contains information about a cryptographic interface that a provider supports.

Syntax

typedef struct _CRYPT_PROVIDER_REF {
  ULONG               dwInterface;
  PWSTR               pszFunction;
  PWSTR               pszProvider;
  ULONG               cProperties;
  PCRYPT_PROPERTY_REF *rgpProperties;
  PCRYPT_IMAGE_REF    pUM;
  PCRYPT_IMAGE_REF    pKM;
} CRYPT_PROVIDER_REF, *PCRYPT_PROVIDER_REF;

Members

dwInterface

The identifier of the interface that this reference applies to. This will be one of the CNG Interface Identifiers.

pszFunction

A pointer to a null-terminated Unicode string that identifies the algorithm or function that the reference applies to. This can be one of the standard CNG Algorithm Identifiers or the identifier for another registered algorithm.

pszProvider

A pointer to a null-terminated Unicode string that contains the name of the provider.

cProperties

The number of elements in the rgpProperties array. If the algorithm or function has no properties, then this member will be zero.

rgpProperties

An array of CRYPT_PROPERTY_REF structure pointers that contain the properties for this algorithm or function. The cProperties member contains the number of elements in this array.

pUM

A pointer to a CRYPT_IMAGE_REF structure that contains information about the user mode provider module. If this information was not requested or the provider is not registered as a user mode provider, this member will be NULL.

pKM

A pointer to a CRYPT_IMAGE_REF structure that contains information about the kernel mode provider module. If this information was not requested or the provider is not registered as a kernel mode provider, this member will be NULL.

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

BCryptResolveProviders

CRYPT_PROVIDER_REFS