IDirect3DAuthenticatedChannel9::NegotiateKeyExchange method
Establishes a session key for the authenticated channel.
Syntax
HRESULT NegotiateKeyExchange( UINT DataSize, VOID *pData );
Parameters
- DataSize
-
The size of the data in the pData array, in bytes.
- 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 fails if the channel type is D3DAUTHENTICATEDCHANNEL_D3D9, because the Direct3D 9 channel does not support authentication.
Requirements
|
Minimum supported client |
Windows 7 [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows Server 2008 R2 [desktop apps only] |
|
Header |
|
See also