SecPkgContext_KeyInfo structure
The SecPkgContext_KeyInfo structure contains information about the session keys used in a security context. The QueryContextAttributes (General) function uses this structure.
Applications using the Schannel security support provider (SSP) should not use the SecPkgContext_KeyInfo structure. Instead, use the SecPkgContext_ConnectionInfo structure.
Syntax
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 that contains the name, if available, of the algorithm used for generating signatures, for example "MD5" or "SHA-2".
- 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
-
Specifies the effective key length, in bits, for the session key. This is typically 40, 56, or 128 bits.
- SignatureAlgorithm
-
Specifies the algorithm identifier (ALG_ID) used for generating signatures, if available.
- EncryptAlgorithm
-
Specifies the algorithm identifier (ALG_ID) used for encrypting messages. Reserved for future use.
Requirements
|
Minimum supported client |
Windows XP [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows Server 2003 [desktop apps only] |
|
Header |
|
|
Unicode and ANSI names |
SecPkgContext_KeyInfoW (Unicode) and SecPkgContext_KeyInfoA (ANSI) |
See also