CRYPT_XML_KEY_VALUE structure (cryptxml.h)

The CRYPT_XML_KEY_VALUE structure contains a single public key that may be useful in validating the signature.

Syntax

typedef struct _CRYPT_XML_KEY_VALUE {
  DWORD dwType;
  union {
    CRYPT_XML_KEY_DSA_KEY_VALUE   DSAKeyValue;
    CRYPT_XML_KEY_RSA_KEY_VALUE   RSAKeyValue;
    CRYPT_XML_KEY_ECDSA_KEY_VALUE ECDSAKeyValue;
    CRYPT_XML_BLOB                Custom;
  };
} CRYPT_XML_KEY_VALUE;

Members

dwType

Specifies the key value type.

This member can be one of the following values.

Value Meaning
CRYPT_XML_KEY_VALUE_TYPE_DSA
0x00000001
The key is a DSA key.
CRYPT_XML_KEY_VALUE_TYPE_RSA
0x00000002
The key is an RSA key.
CRYPT_XML_KEY_VALUE_TYPE_ECDSA
0x00000003
The key is an Elliptic Curve Digital Signature Algorithm (ECDSA) key.
CRYPT_XML_KEY_VALUE_TYPE_CUSTOM
0x00000004
The key is a custom key type.

DSAKeyValue

A CRYPT_XML_KEY_DSA_KEY_VALUE structure that contains Digital Signature Algorithm (DSA) key data.

RSAKeyValue

A CRYPT_XML_KEY_RSA_KEY_VALUE structure that contains RSA key data.

ECDSAKeyValue

A CRYPT_XML_KEY_ECDSA_KEY_VALUE structure that contains ECDSA key data.

Custom

A CRYPT_XML_BLOB structure that contains custom key data.

Requirements

Requirement Value
Minimum supported client Windows 7 [desktop apps only]
Minimum supported server Windows Server 2008 R2 [desktop apps only]
Header cryptxml.h