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.
|
Triple Mode Redundancy-related information (TMR)
|
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:
CM_VAL_SIGNEDLIST specifies that the passed sequence is a signed list.
CM_VAL_SIGNEDTIME specifies that the passed sequence is a (see structure
CMSIGNEDTIME).
|
CMSIGNEDTIME stores the time values of Certified-, Box- and System Time and a Trailing Validation Block to validate them. The time is returned in UTC. Syntax
Parameter mcmBoxTime contains all time values of the CmContainer (see
mabTrailingValidationBlock contains a 16-byte TVB (Trailing Validation Block). The TVB is a signature calculated out of the Certified-, Box- and System Time for later validation.
|
CM_VAL_DELETE_FI specifies that the passed sequence is a
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:
SignedList specifies that the passed sequence is a signed list.
SignedTime specifies that the passed sequence is a
CmSignedTime class created by CmGetInfo()/SignedTime.
|
CmSignedTime stores the time values of Certified-, Box- and System Time and a Trailing Validation Block to validate them. The time is returned in UTC. Syntax
Parameter BoxTime contains all time values of the CmContainer (see class
TrailingValidationBlock contains a 16-byte TVB (Trailing Validation Block). The TVB is a signature calculated out of the Certified-, Box- and System Time for later validation.
|
DeleteFirmItem specifies that the passed sequence is a
CmValidateDeleteFi structure created by CmProgram()/DeleteFirmItem.
|
CmdMask specifies mask bit values for validating entries.
CmBoxInfo contains a byte array of the class
CmBoxInfo.
|
CmBoxInfo contains information on a CmContainer. Syntax
Parameter MajorVersion contains the major version of the CmContainer. MinorVersion contains the minor version of the CmContainer. BoxMask contains the box mask of the CmContainer. SerialNumber contains the serial number of the CmContainer. BoxKeyId contains the ID of the used BoxKey of the CmContainer. UserKeyId contains the ID of the used UserKey of the CmContainer. BoxPublicKey contains the public Box Key of the CmContainer. SerialPublicKey contains the public Serial Key of the CmContainer. Notes The length of the BoxPublicKey and SerialPublicKey is 64 byte long. The used public key are currently 224 bits = 28 bytes long. In Elliptic Curve Cryptography the public key is a 2 dimensional point, so the x-value is stored in the first 28 bytes (0..27) and the y-value is store in byte 32..59.
|
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:
SignedList specifies that the passed sequence is a signed list.
SignedTime specifies that the passed sequence is a
CmSignedTime class created by CmGetInfo()/SignedTime.
|
CmSignedTime stores the time values of Certified-, Box- and System Time and a Trailing Validation Block to validate them. The time is returned in UTC. Syntax
Parameter BoxTime contains all time values of the CmContainer (see class
TrailingValidationBlock contains a 16-byte TVB (Trailing Validation Block). The TVB is a signature calculated out of the Certified-, Box- and System Time for later validation.
|
DeleteFirmItem specifies that the passed sequence is a
CmValidateDeleteFi structure created by CmProgram()/DeleteFirmItem.
|
CmdMask specifies mask bit values for validating entries.
CmBoxInfo contains a byte array of the class
CmBoxInfo.
|
CmBoxInfo contains information on a CmContainer. Syntax
Parameter MajorVersion contains the major version of the CmContainer. MinorVersion contains the minor version of the CmContainer. BoxMask contains the box mask of the CmContainer. SerialNumber contains the serial number of the CmContainer. BoxKeyId contains the ID of the used BoxKey of the CmContainer. UserKeyId contains the ID of the used UserKey of the CmContainer. BoxPublicKey contains the public Box Key of the CmContainer. SerialPublicKey contains the public Serial Key of the CmContainer. Notes The length of the BoxPublicKey and SerialPublicKey is 64 byte long. The used public key are currently 224 bits = 28 bytes long. In Elliptic Curve Cryptography the public key is a 2 dimensional point, so the x-value is stored in the first 28 bytes (0..27) and the y-value is store in byte 32..59.
|
Validate contains the sequence to validate.
SignedListKeyInfo holds the information of class
CmSignedListKeyInfo.
|
CmSignedListKeyInfo contains information on a CmContainer. Syntax
Parameter MajorVersion contains the major version of the CmContainer. MinorVersion contains the minor version of the CmContainer. BoxMask contains the box mask of the CmContainer. SerialNumber contains the serial number of the CmContainer. BoxKeyId contains the ID of the used BoxKey of the CmContainer. UserKeyId contains the ID of the used UserKey of the CmContainer. BoxPublicKey contains the public Box Key of the CmContainer. SerialPublicKey contains the public Serial Key of the CmContainer. Notes The length of the BoxPublicKey and SerialPublicKey is 64 byte long. The used public key are currently 224 bits = 28 bytes long. In Elliptic Curve Cryptography the public key is a 2 dimensional point, so the x-value is stored in the first 28 bytes (0..27) and the y-value is store in byte 32..59.
|
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.