DRM_ND_GetPrivateKey (Windows CE 5.0)
This function is used to return the private key for your device certificate. The private key must be protected from stolen using a debugger or other methods, since if an attacker gets your private key it will compromise your certificate which will cause it to be revoked.
Syntax
BOOL DRM_ND_GetPrivateKey(
PrivateKeyDef *pDef);
Parameters
pDef
A pointer to the Private Key Definition. This is a structure with the following definition:typedef struct { DWORD m_DataSize; DWORD m_Exponent; WORD m_cbHeader; WORD m_cbModulus; WORD m_cbP; WORD m_cbQ; WORD m_cbDP; WORD m_cbDQ; WORD m_cbInverseQ; WORD m_cbD; BYTE m_Data[8*128]; } PrivateKeyDef;
Return Values
This function returns either TRUE or FALSE.
Requirements
OS Versions: Windows CE 5.0 Networked Media Device Feature Pack.
Link Library: drm_nd_oem.lib
See Also
Windows Media DRM 10 For Network Devices Interfaces
Send Feedback on this topic to the authors