Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
ID3D11VideoDevice::CreateCryptoSession method (d3d11.h)
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
[in] pCryptoType
A pointer to a GUID that specifies the type of encryption to use. The following GUIDs are defined.
| Value | Meaning |
|---|---|
|
128-bit Advanced Encryption Standard CTR mode (AES-CTR) block cipher. |
[in] pDecoderProfile
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.
[in] pKeyExchangeType
A pointer to a GUID that specifies the type of key exchange.
| Value | Meaning |
|---|---|
|
The caller will create the session key, encrypt it with RSA Encryption Scheme - Optimal Asymmetric Encryption Padding (RSAES-OAEP) by using the driver's public key, and pass the session key to the driver. |
[out] ppCryptoSession
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
| Requirement | Value |
|---|---|
| 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
Feedback
Was this page helpful?
