Protection interface

If in the container with the interpreter has file interpreter_library_name.dat (file with the secret data), the interface of the INCT_Connect is additionally transferred to the interpreter when the interpreter is initiated.

INCT_Connect is an interface that provides the interpreter with access to data from a file with secret data. The secret data file is not excluded from the container and is therefore only available for reading through the interface transmitted to the interpreter.

The interpreter should be developed in such a way that its work would be provided only after passing the verification of the data obtained through the interface of the INCT_Connect. The check sites, their number and algorithm are determined by the developer themselves.

Description of interface methods:

Method

Method description

Description of use

Get_Count

The function returns the number of bytes contained in the secret data file (integer).

Using the proposed methods, it is necessary to check the data placed by the interpreter in the container with the data transmitted by SprutCAM X to the interpreter (should be the same).

If the developer has placed a sample.dat file in the container (the interpreter's library is called sample.dll), the size of 5 bytes and the following data: 12345

The Get_Count function will return the value to 5.

The Get_Data (0) will return 1, Get_Data (2) will return 3, Get_Data (4) will return the value to 5.

The Get_SCData will return the memory pointer with 12345 data posted.

Get_Data

The function returns a byte from a file with secret data, with a number set in the input setting.

Input parameter: Index (integer) - return byte number. Numbering bytes from 0.

Output parameter: A byte from a file with secret data, with a number set in the Index option.

Get_SCData

The function returns the pointer to the secret data from the file (pointer).