CmEmbedded_4c_transp CmGetSecureData

Description

CmGetSecureData reads encrypted Hidden Data from a CmContainer entry. The retrieved encrypted data has to be decrypted individually.

  • C, C++

Syntax

int CMAPIENTRY CmGetSecureData(HCMSysEntry hcmse, CMSECUREDATA *pcmSecureData, CMENTRYDATA *pcmEntryData);

Parameter

hcmse contains a handle opened by CmAccess2 (must be Entry Access).

pcmSecureData contains a hmtoggle_plus1 CMSECUREDATA structure.

pcmEntryData contains a hmtoggle_plus1 CMENTRYDATA structure receiving the encrypted data.

Return

The return value contains the number of bytes containing the plain data returned encrypted in CMENTRYDATA::mabData. If an error occurred, 0 is returned.

Notes

For Hidden Data, the Hidden Data Access Code (HDAC) must specified and match the stored value.