Anti-tamper techniques
OwnerGraeme Harknessinventor
Life of this patent
Estimating the term…
Abstract
Anti-tamper techniques for protecting a program code portion against tampering provide for defining a sequence of code segments having a root-code segment and a plurality of sub-code segment. Each sub-code segment is provided with an integrity checking portion for checking the integrity of a target code segment. At runtime, the integrity checking portion of a given sub-code segment carries out a checking procedure on the respective target code segment to obtain a runtime result which is compared with a reference result to verify that the target portion of the program has not been tampered with.
Claims15
An anti-tamper method for protecting a program code portion against tampering, the anti-tamper method comprising:
- dividing said program code portion into a plurality of code segments;
- defining a sequence of code segments from the code segments, wherein said sequence of code segments comprises a root-code segment and a plurality of sub-code segments;
- and
- providing each sub-code segment with an integrity checking portion for checking the integrity of a target code segment, said target code segment of a given sub-code segment being the code segment that is sequentially adjacent in a checking direction towards said root-code segment;
- wherein the integrity checking portion of a given sub-code segment is operable to configure a computer to carry out a checking procedure on the respective target code segment to obtain a runtime result, and to compare said runtime result with a reference result comprised in said given sub-code segment.
An anti-tamper system for protecting a program code portion against tampering, the anti-tamper system comprising a computer readable storage medium having a plurality of program code segments of a program code portion stored thereon, said program code segments defining a sequence of code segments, wherein said sequence of code segments comprises a root-code segment and a plurality of sub-code segments;
- wherein each sub-code segment comprises with an integrity checking portion for checking the integrity of a target code segment, said target code segment for a given sub-code segment being the code segment that is sequentially adjacent in a checking direction towards said root-code segment;
- and
- wherein the integrity checking portion of a given sub-code segment is operable to carry out a checking procedure on the respective target code segment to obtain a runtime result, and to compare said runtime result with a reference result comprised in said given sub-code segment.
An integrity checking method performed by a computer for checking the integrity of a program portion comprising a plurality of code segments, said program portion having at least one sequence of code segments comprising a root code segment and a plurality of sub-code segments, the integrity checking method comprising, for a given code segment:
- i) performing a runtime checking procedure which checks the integrity of a target code segment to obtain a runtime result, said target code segment for said given sub-code segment being the code segment that is sequentially adjacent in a checking direction towards said root-code segment;
- and
- ii) comparing said runtime result with a reference result.
Dependencies are inferred from the claim text.