Upravit

Sdílet prostřednictvím


SIGNER_PROVIDER_INFO structure

The SIGNER_PROVIDER_INFO structure specifies the cryptographic service provider (CSP) and private key information used to create a digital signature.

Note

This structure is not defined in any header file. To use this structure, you must define it yourself as shown in this topic.

 

Syntax

typedef struct _SIGNER_PROVIDER_INFO {
  DWORD   cbSize;
  LPCWSTR pwszProviderName;
  DWORD   dwProviderType;
  DWORD   dwKeySpec;
  DWORD   dwPvkChoice;
  union {
    LPWSTR pwszPvkFileName;
    LPWSTR pwszKeyContainer;
  };
} SIGNER_PROVIDER_INFO, *PSIGNER_PROVIDER_INFO;

Members

cbSize

The size, in bytes, of the structure.

pwszProviderName

The name of the CSP used to create the digital signature. If the value of this member is NULL, the default provider is used.

dwProviderType

The type of the CSP specified by the pwszProviderName member.

dwKeySpec

The key specification. If this member is set to zero, the key specification in the pwszPvkFileName or pwszKeyContainer member is used. If there is more than one key specification in the pwszKeyContainer member, AT_SIGNATURE is used. If it fails, AT_KEYEXCHANGE is used.

dwPvkChoice

Specifies the type of private key information. This member can be one or more of the following values.

Value Meaning
PVK_TYPE_FILE_NAME
1 (0x1)
The private key information is a file name.
PVK_TYPE_KEYCONTAINER
2 (0x2)
The private key information is a key container.

 

pwszPvkFileName

The name of the file that contains the private key information.

pwszKeyContainer

The name of the key container that contains the private key information.

Requirements

Requirement Value
Minimum supported client
Windows XP [desktop apps only]
Minimum supported server
Windows Server 2003 [desktop apps only]

See also

SignerSign

SignerSignEx