Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

This structure contains data about the keys used in a security context. It does not return the actual key values, only data about them. The QueryContextAttributesfunction uses this structure.

Syntax

typedef struct _SecPkgContext_KeyInfo {
  SEC_CHAR SEC_FAR* 
sSignatureAlgorithmName;
  SEC_CHAR SEC_FAR* 
sEncryptAlgorithmName;
  ULONG 
KeySize;
  ULONG 
SignatureAlgorithm;
  ULONG 
EncryptAlgorithm;
} SecPkgContext_KeyInfo, SEC_FAR *PSecPkgContext_KeyInfo;

Members

sSignatureAlgorithmName

Pointer to a null-terminated string that contains the name, if available, of the algorithm used for generating signatures, such as MD5, SHA-2, and so on.

sEncryptAlgorithmName

Pointer to a null-terminated string that contains the name, if available, of the algorithm used for encrypting messages. Reserved for future use.

KeySize

Size, in bits, of the key used for encrypting messages. Reserved for future use.

SignatureAlgorithm

CryptoAPI algorithm identifier ( ALG_ID) in use for the signature, if available.

EncryptAlgorithm

CryptoAPI algorithm identifier ( ALG_ID) in use for encrypting messages. Reserved for future use.

Requirements

Header sspi.h
Windows Embedded CE Windows CE 2.10 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also