ID3D11VideoContext::FinishSessionKeyRefresh method
Switches to a new session key.
Syntax
HRESULT FinishSessionKeyRefresh(
[in] ID3D11CryptoSession *pCryptoSession
);
Parameters
- pCryptoSession [in]
-
A pointer to the ID3D11CryptoSession interface.
Return value
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
This function can only be called when the D3D11_CONTENT_PROTECTION_CAPS_FRESHEN_SESSION_KEY cap is reported.
Before calling this method, call ID3D11VideoContext::StartSessionKeyRefresh. The StartSessionKeyRefresh method gets a random number from the driver, which is used to create a new session key. The new session key does not become active until the application calls FinishSessionKeyRefresh. After the application calls FinishSessionKeyRefresh, all protected surfaces are encrypted using the new session key.
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 |
|
See also