cookie CmValidateEntry

Description

CmValidateEntry validates a given sequence. This sequence can be a signature created by the deletion of a Firm Item or a signed list sequence.

tmr_02

Triple Mode Redundancy-related information (TMR)

  • C, C++
  • C#
  • Python

Syntax

int CMAPIENTRY CmValidateEntry(HCMSysEntry hcmse, CMULONG flCtrl, CMBOXINFO *pcmBoxInfo, void *pvValidate, CMUINT cbValidate)

Parameter

hcmse contains a handle opened by CmAccess / CmAccess2 and must be Entry Access to a FSB Entry. The handle is connected to a CmLocal or a CmLAN subsystem with a connected CmContainer.

flCtrl contains one of the following commands:

nav_open CM_VAL_SIGNEDLIST specifies that the passed sequence is a signed list.

nav_open CM_VAL_SIGNEDTIME specifies that the passed sequence is a (see structure hmtoggle_plus1 CMSIGNEDTIME).

nav_open CM_VAL_DELETE_FI specifies that the passed sequence is a hmtoggle_plus1 CMVALIDATE_DELETEFI structure created by CmProgram()/CM_GF_DELETE_FIRMITEM.

pcmBoxInfo contains the CmContainer information of the User's CmContainer.

pvValidate contains the sequence to validate.

cbValidate contains the length of data stored in pvValidate.

Return

The function returns TRUE, if the given sequence is valid and FALSE, if the sequence is invalid.

Notes

The sequence to validate is usually created by CmProgram() or CmGetInfo()/CM_GEI_SIGNEDLIST.

This function is for Licensor site only because a FSB is required.

Syntax

public bool CmValidateEntry(HCMSysEntry hcmse, CmValidateEntryOption Ctrl, CmBoxInfo BoxInfo, byte[] Validate)

Parameter

hcmse contains a handle opened by CmAccess / CmAccess2. The Access Mode must be Entry Access to a FSB Entry for a regular license. The handle is related to a CmLocal or a CmLAN subsystem with a connected Firm Security Box (FSB). If the license is an evaluation license not needing any security mechanisms like a FSB, the access can be Box Access. To update the IFI of a local CmDongle the access can also be Box Access. The access can be performed to the CmDongle to be programmed or updated. A matching entry in the CmLicensor/CmFirm.wbc file has to exist in both cases.

Ctrl contains one of the following flags of the enum CmValidateEntryOption:

nav_open SignedList specifies that the passed sequence is a signed list.

nav_open SignedTime specifies that the passed sequence is a hmtoggle_plus1 CmSignedTime class created by CmGetInfo()/SignedTime.

nav_open DeleteFirmItem specifies that the passed sequence is a hmtoggle_plus1 CmValidateDeleteFi structure created by CmProgram()/DeleteFirmItem.

nav_open CmdMask specifies mask bit values for validating entries.

CmBoxInfo contains a byte array of the class hmtoggle_plus1 CmBoxInfo.

Validate contains the sequence to validate.

Return

The function returns true, if the given sequence is valid and false, if the sequence is invalid.

Notes

The sequence to validate is usually created by CmProgram() or CmGetInfo()/SignedList.

This function is for Licensor site only because a FSB is required.

 

CmValidateEntry2

Description

CmValidateEntry2 validates a given sequence. This sequence can be a signature created by the deletion of a Firm Item or a signed list sequence.

Syntax

public bool CmValidateEntry2(HCMSysEntry hcmse, CmValidateEntryOption Ctrl, CmBoxInfo BoxInfo, byte[] Validate, out CmSignedListKeyInfo SignedListKeyInfo)

 

Parameter

hcmse contains a handle opened by CmAccess / CmAccess2. The Access Mode must be Entry Access to a FSB Entry for a regular license. The handle is related to a CmLocal or a CmLAN subsystem with a connected Firm Security Box (FSB). If the license is an evaluation license not needing any security mechanisms like a FSB, the access can be Box Access. To update the IFI of a local CmDongle the access can also be Box Access. The access can be performed to the CmDongle to be programmed or updated. A matching entry in the CmLicensor/CmFirm.wbc file has to exist in both cases.

Ctrl contains one of the following flags of the enum CmValidateEntryOption:

nav_open SignedList specifies that the passed sequence is a signed list.

nav_open SignedTime specifies that the passed sequence is a hmtoggle_plus1 CmSignedTime class created by CmGetInfo()/SignedTime.

nav_open DeleteFirmItem specifies that the passed sequence is a hmtoggle_plus1 CmValidateDeleteFi structure created by CmProgram()/DeleteFirmItem.

nav_open CmdMask specifies mask bit values for validating entries.

CmBoxInfo contains a byte array of the class hmtoggle_plus1 CmBoxInfo.

Validate contains the sequence to validate.

SignedListKeyInfo holds the information of class hmtoggle_plus1 CmSignedListKeyInfo.

Return

The function returns true, if the given sequence is valid and false, if the sequence is invalid.

Notes

The sequence to validate is usually created by CmProgram() or CmGetInfo()/CM_GEI_SIGNEDLIST.

This function is for Licensor site only because a FSB is required.

 

Currently not yet documented.