首页 / 专利库 / 电脑编程 / 别名 / Computer processor system with software protection

Computer processor system with software protection

阅读:66发布:2022-03-17

专利汇可以提供Computer processor system with software protection专利检索,专利查询,专利分析的服务。并且A computer processor system includes a protection unit (10) for preventing execution of programs not authorised for use with that system while allowing the user's own programs to be executed unimpeded. A RAM (9) in the protection unit (10) is addressed by a buffer (8) holding the function code of a retrieved instruction and outputs a microprogram step number. The function code is larger than is required to specify its effect. Some values of the function code are unprotected and for them the RAM 9 always outputs the correct step number. Other values are protected and for them the correct step number is output only if the value has been enabled by writing the step number into the RAM 9 in response to information input from a removable device (11 Unprotected values may be used in the user's program. The protected values provide aliases for the unprotected values and may be used in a supplier's program.,下面是Computer processor system with software protection专利的具体信息内容。

1. A computer processor system having protection means (10) responsive to retrieved instructions to allow the said instructions to be executed only in the presence of enabling information input into the computer system from a removable and/or external source (11), characterised in that the system has an instruction format including a field (Fo to F8) the size of which is greater than is required to specify its effect within the processor system, the protection means (10) being responsive to each of an unprotected set of values of the said field to allow an instruction containing that value to be executed whenever it occurs and being responsive to each of a protected set of values of the field to allow an instruction containing that value to be executed only if specifically enabled in respect of that value by information input into the system from the said source (11), some at least of the instructions containing protected values of the field each having the same effect as an instruction containing an unprotected value of the field.2. A system as claimed in Claim 1, in which there is provision for the attachment of a purality of different removable devices (11) as, or as part of, the said source of enabling information, whereby each removable device may enable a different set of protected values from any other removable device.3. A system as claimed in Claim 1 or Claim 2 in which the protection means (10) contains look-up means (9) responsive to an addressing signal derived from the value of the said field to output a control signal for means (5,6,7) for executing program instructions, the look-up means (9) containing at each address corresponding to an unprotected value of the field and at only those addresses corresponding to protected values of the field, a value indicative of the control signal to be output.4. A system as claimed in Claim 3, in which the protection means (10) contains means (20,21) responsive to information derived from the said source (11) to write into the look-up means (9), at each address corresponding to an unprotected value of the said field and at only those addresses defined by information derived from the said source (11), the required values to cause the corresponding instructions to be executed correctly.5. A system as claimed in any one of the preceding claims, in which the information derived from the said source (11) defines each protected value to be enabled and indicates its effect.6. A system as claimed in Claim 5, in which the'said information is encrypted and the protection means contains means (20,21,24) for decrypting the said information.7. A system as claimed in any one of the preceding claims, in which the said field holds the function code of the instruction.
说明书全文

This invention relates to computer systems with software protection means.

Computer programs fall into two broad classes. First, there are the user's own programs, usually written specifically by him, and intended to carry out his own applications. Secondly, there are programs written by an external supplier such as the computer manufacturer and intended to carry out tasks which apply to a number of users of the system. The supplier often regards such a program as proprietary and wishes to restrict its use to those he specifically authorises, for example in return for the payment of a licence fee on which the economics of writing the program depend. However, a computer program can be easily copied and come into the hands of unauthorised persons who thereafter use the program but escape any conditions imposed on its use. This is a well-known problem often referred to as "software piracy". It has consequently been recognised that it is desirable to include in the computer system software protection means which present a barrier to the use with the system of programs not authorised to be executed by it.

One approach is to protect the program by encrypting it in some way so that only the possessor of a computer with suitable decrypting equipment can execute the program. Thus it has been proposed in US Patent Specification No. 4,120,030 (Johnstone) and US Patent Specification No. 4,278,837 (Best) to encrypt respectively operand addresses and whole program instructions. The decryption is then carried out as the program is executed. The disadvantage of this approach is that it prevents the use of ordinary unencrypted instructions and thus complicates the use of the computer with the user's own programs.

A solution to this problem is disclosed in US Patent Specification No. 4,246,638 (Thomas). That specification proposes, among other arrangements, one in which the system can operate in either a protected or an unprotected mode. In the former, operation codes are enciphered and cannot be used without a deciphering ROM supplied by the manufacturer. In the latter, which maybe used by the user for his programs, instructions are unenciphered and obeyed as they stand. To change from one mode to the other special instructions are used the effect of which is to cause the processor to switch modes. The use of such instructions complicates the programming and reduces its speed of execution. The object of this invention is to overcome these disadvantages.

This invention provides a computer processor system having an instruction format including a field the size of which is greater than is required to specify its effect within the computer system, the system being such that for each of some (unprotected)values of the field an instruction containing that value of the field will be executed whenever it occurs but for each of other (protected) values of the field an instruction containing that value of the field will be executed only if the system has been specifically enabled in respect of that value by information input into the system from a removable and/or external source, some at least of the instructions containing protected values of the field each being executed in the same way as an instruction containing an unprotected value of the field.

Programs including instructions containing protected values of the field will be executed only if all those values are enabled. A supplier may therefore write a program using such instructions and, provided he retains control of the supply of the enabling information, restrict the use of the program to those he wishes to authorise, to whom he will supply the enabling information. On the other hand the user may write programs restricted to instructions in which the field always has an unprotected value and those programs will be executed normally. The two types of instruction may be mixed, so the user may introduce sections of his own program instructions into an authorised program, which will continue to be executable. Since the protected and unprotected values are distinct there is no need to include special mode-switching instructions, and no time is taken in executing them.

Preferably there is provision for the attachment, as, or as part of, the source of enabling information, of a plurality of removable devices each containing information indicating protected values to be enabled. With this arrangement each such device may indicate all those values required for a particular program. The system may therefore be authorised to run a plurality of protected programs by having attached to it the appropriate devices and the processor will be able to switch from one program to another without special instructions.

An example of a system constructed in accordance with the invention will now be described in greater detail with reference to the accompanying drawings, in which:

  • Figure 1 is a block diagram of the overall system;
  • Figure 2 is a diagram showing part of an illustrative instruction format; and
  • Figure 3 is a block diagram of the protection unit of the system.

Overall system

Referring to Figure 1, the system has a store 1 connected to a data bus 2. The store 1 contains both program instructions and data and is accessed by an addressing unit 3 through an address bus 4. The addressing unit 3 calculates store addresses for both data and program instructions and holds retrieved program instructions. Retrieved operands are passed to an arithmetic and logic unit (ALU) 5 for the appropriate manipulation. Control signals for the various parts of the system are derived from the output of a microprogram store 6 accessed by a microprogram controller 7, which receives as one of its inputs indications of the state of various parts of the system.

When a new program instruction is retrieved by the addressing unit 3 its function code is held in a buffer 8. The output of the buffer 8 addresses a memory 9 in a protection unit 10. In normal operation the memory 9 outputs in response a selection signal which in this case is microprogram step number which is passed to the microprogram controller 7 to indicate the address in the microprogram store 6 of the microinstruction, or the first of the sequence of microinstructions, corresponding to the program instruction concerned. The instruction will then be executed under the control of signals derived from the microprogram store 6.

The system contains input/output units (not shown) as required.

The various parts of the system so far described, with the exception of the protection unit 10, carry out well-known functions and may be constructed in ways well known to a skilled person in the field. They will therefore not be described in more detail.

The normal computer instruction includes a field for the function code (alternatively known as the operation code) which specifies the function (add, compare, etc) to be carried out. In this system the instruction format includes a field containing the function code and having more bits than are required to specify its effect. There are therefore more possible values of the function code than there are functions to be selected. One set of possible values will be termed "unprotected": the memory 9 will always output the correct step number when one of these values is met, and the corresponding instruction will therefore always be obeyed correctly. These values of the function code are the ones used in programs written by the user of the system, which therefore run unhindered. A second set of possible values will be termed "protected": each duplicates the effect of one of the unprotected set, but when it is met the memory 9 will output the correct step number only if its has been specifically enabled for that function code in response to information contained in a removable device 11. A selection of these values may be used in a program from an external supplier, who when he authorises a user to use the program will at the same time supply the removable device to cause the system to be enabled to obey the values used in that program. Only when the device is present will the program run correctly.

Instruction format

The instruction format will now be described with reference to Figure 2.

Each instruction has a number of bytes. Certain bit positions, denoted in Figure 2 by the references Fo to F8, are dedicated to the function code. Other bit positions are used for other fields of the instruction, which are not shown because they are not relevant to the use of the invention in the example being described and may in any case vary from function to function.

It will be assumed, purely as an illustration, that the system is capable of executing 32 different functions and has, as shown, nine bit positions for the function code. Nine bits allow 512 different values for the function code. 32 are used as unprotected function codes, one for each possible function. The remaining 480 are available as unprotected function codes. Each is given the same meaning as one of the unprotected function codes, and can be regarded as an "alias" of the unprotected function code. Every unprotected function code has a number of aliases.

The 32 functions are each given a five-bit identifier, from which the corresponding unprotected function code is derived in a simple manner. First, the identifier itself is incorporated as bits F4 to Fo. Then the remaining bits are derived by making each bit 6 that appears in the function code the inverse of bit 7 of the same byte. That is, F8 to F5 are F4 to F1 respectively. Hence if "add" has the identifier 01001 its full unprotected function code becomes

  • (F8, F7, F6, F5, F4, F3, F2,.Fl, Fo) = (1,0,1,1,0,1,0,0,1)

(In subsequent examples it will be assumed that the bits F8 to Fo are given in the same order as here.)

The protected function codes are assigned to the different functions arbitrarily so that the corresponding function identifier cannot be derived in any obvious way from the value of the code. For example, continuing the example given above, "add" might in addition be represented by the following two protected function codes (as well as others):

  • (1,1,0,1,0,0,0,0,1)
  • (0,1,0,1,1,0,0,1,1)

Protection unit

The protection unit 10 will now be described in greater detail with reference to Figure 3.

In normal operation of the system, as each instruction is retrieved the bits of the function-code field (which as Figure 2 shows need not be contiguous in the instruction) are assembled in the buffer 8. They then pass to the protection unit 10, where they are supplied as an address to the memory 9, a random-access memory (RAM) which at this stage is enabled to be read.

Provided the function code is unprotected, or is one of the currently enabled protected function codes, the addressed location holds, as has been explained, the corresponding microprogram step-number, which is output and passed to the microprogram controller 6 to bring about execution of the instruction in which the function code occurred.

The step numbers of those function codes that are to be enabled are written into the memory 9 during an initialisation procedure carried out by a microprocessor 20 whenever the system is powered up. The program and data for the microprocessor 20 are held in a read-only memory (ROM) 21.

The microprocessor 20 learns which protected function codes are to be enabled from the removable devices 11 that are present. Each device 11 is a programmable read-only memory (PROM) which is plugged into one a set of sockets accessible to the user. The sockets are connected in parallel by cable to an address bus 22 and a data bus 23 in the protection unit 10.

Each device is associated with a particular program to be executed by the system. It contains, in an encrypted form, each protected function code used in that program with, appended to it, the identifier of the function it represents. The.encryption may, as an illustration, be carried out by modulo-2 summation of the bits of this quantity with the corresponding bits of a key consisting of a machine identifier unique to the system and held in a PROM 24. The removable devices 11 are therefore personalised to the system concerned.

The following table shows, as an example, the encryption in this manner of the quantity held for the first of the protected aliases of "add" given above.

Decryption then consists of the modulo-2 summation of the bits of the machine identifier with the corresponding bits of encrypted quantity.

The procedure for initialisation is as follows.

  • 1. The microprocessor generates each unprotected function code in turn from its function identifier. It obtains the microprogram number corresponding to the function identifier from a table held in the ROM 21 and writes that value into the location whose address is the function code.
  • 2. For each device 11 in turn it reads out each quantity held, decrypts it to obtain the corresponding function code and its identifier, obtains the corresponding step number from the table in the ROM 21 and writes that value into the location whose address is the decrypted function code.
  • 3. It then inserts a pseudo-random step number into each location of the RAM 9 that has not been loaded in either of the preceding steps.

The system has therefore been enabled to respond correctly to all unprotected function codes and those protected function codes specifically identified in any of the removable devices.

The protection unit 10 is made as far as practicable physically secure so that the user cannot obtain access to its circuits.

General aspects

The following illustrates, by way of example, one way in which the system so far described with reference to the drawings may be employed as part-of a general scheme for software protection.

Assemblers and compilers supplied to the user output instructions using unprotected values for the function code to ensure that his programs are executed unhindered by the presence of the protection unit 10.

The system supplier makes a once-for-all random assignment of protected function codes to functions, giving each function a number of aliases roughly proportional to the frequency with which it is used. Then, when he wishes to protect a program, he selects a certain number of aliases for each function. These form the set of protected function codes used in the program; it must not be identical to the set used for any other program. The program is initially prepared using function identifiers, and is then encoded by replacing each function identifier with a function code chosen at random from those that represent the function and have been selected for use in the program. The result is the protected version of the program that is given to authorised users.

Assigning and selecting between function codes in the manner described gives an approximately equal rate of usage of function codes, with the aim of hindering the making of deductions about the meaning of the protected function codes by analysing the program in its protected form.

Restricted sets of protected function codes and their meanings may be made available to trusted third- party suppliers of software so that they can use the protection feature included in the system. But apart from this the supplier takes care to keep the meaning of the protected function codes secret and it is preferable for him to be the sole supplier of removable devices since they require knowledge of the machine identifier.

When a user is to be authorised to use a protected program a removable device is prepared for him encrypting the set of protected function codes used in the program together with their identifiers using as a key the machine identifier of the system on which it is to be authorised to run. The user then plugs the device into his system in addition to any already present. It may then remain permanently in place so that, as far as the user is concerned, the program runs in a normal fashion.

If an attempt is made to run the protected program on a system which is not authorised to use it (that is, which does not have the appropriate removable device) the program will fail when it reaches an instruction using a function code that has not been enabled. Since the RAM 9 will have a random step number at this point the program will fail in an unpredictable way, which also makes it difficult to make deductions about the program from the way it failed.

Since the removable device is specific to the intended system it is not possible to circumvent the protection by moving both the program and the device to another system.

The user may combine program sections he has written with protected program sections he is authorised to use and the combined program will be executed as it stands. There is no need to include special instructions to switch the processor between a protected and an unprotected mode and no time will be wasted retrieving and obeying such instructions.

When protected programs and the accompanying removable devices are prepared as described the same version of the program is supplied to all users. That has the advantage that modifications or updates of the software can be prepared, using the appropriate protected function codes, without the need to personalise each copy for its intended user, a process which would make the issue of the software much less convenient. Personalisation takes place once only, in preparing the removable device which thereafter serves to authorise the use of the subsequent issues.

Modifications

Greater security of protection can be achieved at the cost of greater complexity. For example, a more elaborate encryption of the contents of the removable devices 11 can be used if the protection device 10 is equipped to decrypt it. The removable devices may include date information defining the period for which the user is authorised to use the program. This information would be checked by the microprocesor 20 against a real-time clock during initialisation and the corresponding function codes enabled only if the period of use had not expired. Enabling information could be sent over a communications link by the supplier, for example to update the period for which use of the program is authorised, or to override the protection to allow engineering work to be carried out or the program to be run on a back-up machine.

Alternatively if a lower level of protection is acceptable the protection system could be simplified, for example by omitting the machine identity PROM 24. In this case the removable devices would not be encrypted and hence not unique to the system.

In the system described every function has both protected and unprotected function codes. But the two sets need not be identical. For example, some functions might not have an unprotected function code.

They would then only be usable if authorised.

It is convenient but not essential to derive the unprotected function codes from the function identifiers in a systematic way, as for example in the system described with reference to the drawings.

The organisation shown in Figure 1 can be modified in any suitable way, for example to use a dedicated instruction fetching unit. The significant feature is the way the protection unit 10 is introduced. Indeed many existing computer designs could be modified to use the protection feature provided they allow use of an expanded function-code field. In designs where that is not possible it will often be possible to modify the design so that the extra bits for an expanded function code are fetched and loaded separately, either from an alternative address derived with the aid of the address of the original instruction, or from a separate "parallel" memory area.

Other fields of the instruction could be used for protection. For example the index-register field could be used in the place of the function code field. It would therefore be expanded to allow protected as well as unprotected values. In this case only those instruction formats including an index register field would be subject to protection and the protection unit would control the selection of the required index register.

高效检索全球专利

专利汇是专利免费检索,专利查询,专利分析-国家发明专利查询检索分析平台,是提供专利分析,专利查询,专利检索等数据服务功能的知识产权数据服务商。

我们的产品包含105个国家的1.26亿组数据,免费查、免费专利分析。

申请试用

分析报告

专利汇分析报告产品可以对行业情报数据进行梳理分析,涉及维度包括行业专利基本状况分析、地域分析、技术分析、发明人分析、申请人分析、专利权人分析、失效分析、核心专利分析、法律分析、研发重点分析、企业专利处境分析、技术处境分析、专利寿命分析、企业定位分析、引证分析等超过60个分析角度,系统通过AI智能系统对图表进行解读,只需1分钟,一键生成行业专利分析报告。

申请试用

QQ群二维码
意见反馈