SecPkgContext_KeyInfo

The SecPkgContext_KeyInfo structure contains information about the keys used in a security context. Note that it does not return the actual key values, merely information about them. 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, such as "MD5", "SHA-2", and so on.
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, 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

QueryContextAttributes