// d3d10umddi.h
PFND3D11_1DDI_STARTSESSIONKEYREFRESH Pfnd3d111DdiStartsessionkeyrefresh;
VOID Pfnd3d111DdiStartsessionkeyrefresh(
D3D10DDI_HDEVICE hDevice,
D3D11_1DDI_HCRYPTOSESSION hCryptoSession,
UINT RandomNumberSize,
VOID *pRandomNumber
)
{...}
View the official Windows Driver Kit DDI referenceNo description available.
Gets a random number that can be used to refresh the session key.
hDeviceA handle to the display device (graphics context).
hCryptoSessionA handle to the cryptographic session object that was created through a call to the CreateCryptoSession function.
RandomNumberSizeThe size, in bytes, of the number in the buffer that is referenced by the pRandomNumber parameter.
pRandomNumberA pointer to a buffer that contains the status sequence number for the random start.
The hardware and driver can optionally support StartSessionKeyRefresh for all cryptographic types.
When the Microsoft Direct3D runtime calls the driver's StartSessionKeyRefresh function, the driver generates and saves a random number and returns it in the buffer that the pRandomNumber parameter points to.
When the runtime subsequently calls the driver's FinishSessionKeyRefresh function, the driver refreshes the session key by performing an XOR operation of the random number with the key.