ID3D11VideoContext::NegotiateAuthenticatedChannelKeyExchange method (d3d11.h)

Establishes a session key for an authenticated channel.

Syntax

HRESULT NegotiateAuthenticatedChannelKeyExchange(
  [in]      ID3D11AuthenticatedChannel *pChannel,
  [in]      UINT                       DataSize,
  [in, out] void                       *pData
);

Parameters

[in] pChannel

A pointer to the ID3D11AuthenticatedChannel interface. This method will fail if the channel type is D3D11_AUTHENTICATED_CHANNEL_D3D11, because the Direct3D11 channel does not support authentication.

[in] DataSize

The size of the data in the pData array, in bytes.

[in, out] pData

A pointer to a byte array that contains the encrypted session key. The buffer must contain 256 bytes of data, encrypted using RSA Encryption Scheme - Optimal Asymmetric Encryption Padding (RSAES-OAEP).

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

This method will fail if the channel type is D3D11_AUTHENTICATED_CHANNEL_D3D11, because the Direct3D11 channel does not support authentication.

Requirements

   
Minimum supported client Windows 8 [desktop apps | UWP apps]
Minimum supported server Windows Server 2012 [desktop apps | UWP apps]
Target Platform Windows
Header d3d11.h

See also

ID3D11VideoContext