CmEmbedded_4c_transp CmDecryptPioData

Description

CmDecryptPioData decrypts a given encrypted Hidden Data sequence using the Product Item Option Data Key (PIODK).

  • C, C++

Syntax

int CMAPIENTRY CmDecryptPioData(CMBYTE* pabDest, CMUINT cbDest, CMBYTE* pabPiodkDest, CMUINT cbPiodkDest)

Parameter

pabDest points to the data received by CmGetSecureData to be decrypted in this buffer.

cbDest contains the length of data at pabDest. Has to be a multiple of 16.

pabPiodkDest points to the input Product Item Option Decryption Key (PIODK) controlling the decryption.

cbPiodkDest contains the length of data at pabDest. Usually the length is 16.

Return

TRUE is returned, if the decryption was successful - FALSE, if not.