Platform SDK: Logon Authentication

SecPkgContext_KeyInfo

The SecPkgContext_KeyInfo structure contains information about the keys used in a security context. It does not return actual key values, but rather information about keys. The QueryContextAttributes function uses this structure.

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

Members

sSignatureAlgorithmName
Pointer to a NULL-terminated string containing the name, if available, of the algorithm used for generating signatures. MD5 and SHA-2 are typical algorithm names that might be returned.
sEncryptAlgorithmName
Pointer to a NULL-terminated string containing the name, if available, of the algorithm used for encrypting messages. Reserved for future use.
KeySize
Specifies the size, in bits, of the key used for encrypting messages. Reserved for future use.
SignatureAlgorithm
Specifies the CryptoAPI algorithm identifier (ALG_ID) in use for the signature, if available.
EncryptAlgorithm
Specifies the CryptoAPI algorithm identifier (ALG_ID) in use for encrypting messages. Reserved for future use.

Requirements

  Windows NT/2000: Requires Windows NT 3.51 or later.
  Windows 95/98: Requires Windows 95 or later.
  Header: Declared in Sspi.h; include Security.h.
  Unicode: Declared as Unicode and ANSI structures.

See Also

QueryContextAttributes