Share via


DRM_ND_GetPrivateKey (Windows Embedded CE 6.0)

1/5/2010

This function is used to return the private key for your device certificate. The private key must be protected from being 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

Library drm_nd_oem.lib
Windows Embedded CE Windows Embedded CE 6.0

See Also

Other Resources

Windows Media DRM 10 for Network Devices Interfaces