This structure contains data about the keys used in a security context. It does not return the actual key values, merely data about them. The QueryContextAttributes function uses this structure.
At a Glance
Header file: | Sspi.h |
Windows CE versions: | 2.10 and later |
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
Specifies the size, in bits, of the key used for encrypting messages. Reserved for future use.
SignatureAlgorithm
Specifies the CryptoAPI algorithm identifier (ALG_ID, documented in the Platform SDK) in use for the signature, if available.
EncryptAlgorithm
Specifies the CryptoAPI algorithm identifier (ALG_ID) in use for encrypting messages. Reserved for future use.
See Also