Skip to main content
ID3D11VideoContext::GetEncryptionBltKey method

Gets the cryptographic key to decrypt the data returned by the ID3D11VideoContext::EncryptionBlt method.

Syntax


HRESULT GetEncryptionBltKey(
  [in]   ID3D11CryptoSession *pCryptoSession,
  [in]   UINT KeySize,
  [out]  void *pReadbackKey
);

Parameters

pCryptoSession [in]

A pointer to the ID3D11CryptoSession interface.

KeySize [in]

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

pReadbackKey [out]

A pointer to a byte array that receives the key. The key is encrypted using the session key.

Return value

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

Remarks

This method applies only when the driver requires a separate content key for the EncryptionBlt method. For more information, see the Remarks for EncryptionBlt.

Each time this method is called, the driver generates a new key.

The KeySize should match the size of the session key.

The read back key is encrypted by the driver/hardware using the session key.

Windows Phone 8: This API is supported.

Requirements

Minimum supported client

Windows 8 [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2012 [desktop apps | Windows Store apps]

Header

D3d11.h

See also

ID3D11VideoContext