Expand Minimize

CRYPT_XML_ALGORITHM_INFO structure

The CRYPT_XML_ALGORITHM_INFO structure contains algorithm information.

Syntax


typedef struct _CRYPT_XML_ALGORITHM_INFO {
  DWORD cbSize;
  WCHAR *wszAlgorithmURI;
  WCHAR *wszName;
  DWORD dwGroupId;
  WCHAR *wszCNGAlgid;
  WCHAR wszCNGExtraAlgid;
  DWORD dwSignFlags;
  DWORD dwVerifyFlags;
  void  pvPaddingInfo;
  void  pvExtraInfo;
} CRYPT_XML_ALGORITHM_INFO, *PCRYPT_XML_ALGORITHM_INFO;

Members

cbSize

The size, in bytes, of this structure.

wszAlgorithmURI

A pointer to a null-terminated Unicode string that contains the URI associated with the attribute of the SignatureMethod or DigestMethod element of the XML signature.

wszName

Optional. A pointer to a null-terminated Unicode string that contains the display name of the algorithm.

dwGroupId

A DWORD value that specifies the group type to which the algorithm belongs. This member can be one of the following values.

ValueMeaning
CRYPT_XML_GROUP_ID_HASH
1

Hash algorithms

CRYPT_XML_GROUP_ID_SIGN
2

Signature algorithms

 

wszCNGAlgid

A pointer to a null-terminated Unicode string that contains an algorithm identifier string that is passed to Cryptography API: Next Generation (CNG) functions. CNG functions use algorithm identifier strings, such as L"SHA1", instead of the ALG_ID data type constants, such as CALG_SHA1.

Note  BCrypt* and NCrypt* functions are defined in Bcrypt.h and Ncrypt.h.

wszCNGExtraAlgid

A pointer to a null-terminated Unicode string that contains an extra algorithm string, other than the string in the pwszCNGAlgid member, that is passed to CNG functions.

Note  BCrypt* and NCrypt* functions are defined in Bcrypt.h and Ncrypt.h.

dwSignFlags

A DWORD value that contains flag values to be passed to the NCryptSignHash function.

dwVerifyFlags

A DWORD value that is passed to the BCryptVerifySignature function.

pvPaddingInfo

A pointer to a structure that contains padding information to be passed to the NCryptSignHash or BCryptVerifySignature function. The actual type of structure this member points to depends on the value of the dwGroupId member.

pvExtraInfo

Optional. A pointer to a structure that contains extra information that can be passed to the CNG functions.

Note  BCrypt* and NCrypt* functions are defined in Bcrypt.h and Ncrypt.h.

Requirements

Minimum supported client

Windows 7 [desktop apps only]

Minimum supported server

Windows Server 2008 R2 [desktop apps only]

Header

Cryptxml.h

See also

Digital Signature Cryptographic Algorithms

 

 

Community Additions

ADD
Show:
© 2014 Microsoft