Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ID3D11VideoContext::StartSessionKeyRefresh method

Gets a random number that can be used to refresh the session key.

Syntax


HRESULT StartSessionKeyRefresh(
  [in]  ID3D11CryptoSession *pCryptoSession,
  [in]  UINT                RandomNumberSize,
  [out] void                *pRandomNumber
);

Parameters

pCryptoSession [in]

A pointer to the ID3D11CryptoSession interface.

RandomNumberSize [in]

The size of the pRandomNumber array, in bytes. The size should match the size of the session key.

pRandomNumber [out]

A pointer to a byte array that receives a random number.

Return value

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

Remarks

To generate a new session key, perform a bitwise XOR between the previous session key and the random number. The new session key does not take affect until the application calls ID3D11VideoContext::FinishSessionKeyRefresh.

To query whether the driver supports this method, call ID3D11VideoDevice::GetContentProtectionCaps and check for the D3D11_CONTENT_PROTECTION_CAPS_FRESHEN_SESSION_KEY capabilities flag.

Requirements

Minimum supported client

Windows 8 [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2012 [desktop apps | Windows Store apps]

Minimum supported phone

Windows Phone 8

Header

D3d11.h

See also

ID3D11VideoContext

 

 

Show:
© 2017 Microsoft