ID3D11VideoDevice::CreateCryptoSession method
Creates a cryptographic session to encrypt video content that is sent to the graphics driver.
Syntax
HRESULT CreateCryptoSession( [in] const GUID *pCryptoType, [in] const GUID *pDecoderProfile, [in] const GUID *pKeyExchangeType, [out] ID3D11CryptoSession **ppCryptoSession );
Parameters
- pCryptoType [in]
-
A pointer to a GUID that specifies the type of encryption to use. The following GUIDs are defined.
Value Meaning - D3D11_CRYPTO_TYPE_AES128_CTR
128-bit Advanced Encryption Standard CTR mode (AES-CTR) block cipher.
- pDecoderProfile [in]
-
A pointer to a GUID that specifies the decoding profile. For a list of possible values, see ID3D11VideoDevice::GetVideoDecoderProfile. If decoding will not be used, set this parameter to NULL.
- pKeyExchangeType [in]
-
A pointer to a GUID that specifies the type of key exchange.
- ppCryptoSession [out]
-
Receives a pointer to the ID3D11CryptoSession interface. The caller must release the interface.
Return value
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
The ID3D11DeviceContext::ClearState method does not affect the internal state of the cryptographic session.
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