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.

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.

ValueMeaning
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.

ValueMeaning
D3D11_KEY_EXCHANGE_RSAES_OAEP

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.

 

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

D3d11.h

See also

ID3D11VideoDevice

 

 

Show:
© 2017 Microsoft