PFND3DDDI_AUTHENTICATEDCHANNELKEYEXCHANGE callback function

The AuthenticatedChannelKeyExchange function negotiates the session key.

Syntax


PFND3DDDI_AUTHENTICATEDCHANNELKEYEXCHANGE AuthenticatedChannelKeyExchange;

__checkReturn HRESULT APIENTRY AuthenticatedChannelKeyExchange(
  _In_    HANDLE                                    hDevice,
  _Inout_ D3DDDIARG_AUTHENTICATEDCHANNELKEYEXCHANGE *pData
)
{ ... }

Parameters

hDevice [in]

A handle to the display device (graphics context).

pData [in, out]

A pointer to a D3DDDIARG_AUTHENTICATEDCHANNELKEYEXCHANGE structure that describes a buffer that contains the session key, which the authenticated channel uses.

Return value

AuthenticatedChannelKeyExchange returns one of the following values:

Return codeDescription
S_OK

The session key is successfully negotiated.

E_OUTOFMEMORY

AuthenticatedChannelKeyExchange could not allocate the required memory for it to complete.

 

Remarks

The pData member in the D3DDDIARG_AUTHENTICATEDCHANNELKEYEXCHANGE structure points to a buffer that contains a secret key that an application previously RSAES-OAEP-encrypted with the public key from the driver's authenticated channel certificate. The actual size of the buffer is 256 bytes. This exchange is identical to how the Output Protection Manager (OPM) key exchange works, except the OPM buffer contains additional data besides the session key. The same certificate that is used for OPM key exchange can be used for the authenticated channel.

The driver decrypts this secret key and uses the secret key in calls to the driver's ConfigureAuthenticatedChannel and QueryAuthenticatedChannel functions to calculate One-key Cipher Block Chaining (CBC)-mode message authentication codes (OMACs).

Requirements

Target platform

Version

AuthenticatedChannelKeyExchange is supported beginning with the Windows 7 operating system.

Header

D3dumddi.h (include D3dumddi.h)

See also

D3DDDIARG_AUTHENTICATEDCHANNELKEYEXCHANGE

 

 

Send comments about this topic to Microsoft

Show: