SecPkgContext_KeyingMaterialInfo structure (schannel.h)

The SecPkgContext_KeyingMaterialInfo structure contains information about the exportable keying material in a security context.

Syntax

typedef struct _SecPkgContext_KeyingMaterialInfo {
  WORD  cbLabel;
  LPSTR pszLabel;
  WORD  cbContextValue;
  PBYTE pbContextValue;
  DWORD cbKeyingMaterial;
} SecPkgContext_KeyingMaterialInfo, *PSecPkgContext_KeyingMaterialInfo;

Members

cbLabel

The length, in bytes, of the disambiguating ASCII label, including NUL terminator.

pszLabel

A NUL-terminated ASCII string. The NUL terminator will be removed by schannel before mixing in pszLabel.

IANA-registered labels should begin with "EXPORTER" to avoid collisions with existing PRF labels. Labels beginning with "EXPERIMENTAL" may be used without registration.

cbContextValue

pbContextValue

The pointer to the application context. Must be NULL if cbContextValue is zero.

cbKeyingMaterial

The length, in bytes, of the keying material to be generated. Must be greater than zero.

Requirements

Requirement Value
Minimum supported client Windows 10 [desktop apps only]
Minimum supported server Windows Server 2016 [desktop apps only]
Header schannel.h (include Schannel.h, Security.h)