Gets the cryptographic key to decrypt the data returned by the ID3D11VideoContext::EncryptionBlt method.
public:
HRESULT GetEncryptionBltKey(
ID3D11CryptoSession *pCryptoSession,
UINT KeySize,
void *pReadbackKey
)
pCryptoSession
Type: ID3D11CryptoSession *
[in] A pointer to the ID3D11CryptoSession interface.
KeySize
Type: UINT
[in] The size of the pReadbackKey array, in bytes. The size should match the size of the session key.
pReadbackKey
Type: void *
[out] A pointer to a byte array that receives the key. The key is encrypted using the session key.
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
See Direct3D 11 return codes for possible return values.
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.
Header: Declared in d3d11_x.h (d3d11.h on other Windows platforms).