Patent ID: 8239689

Claim:
A device for a secure execution of a program including a sequence of program commands, wherein the program commands include commands of use and checking commands, wherein the checking commands are arranged between the commands of use, so that according to a specified execution path of the program a sequence of executing the checking commands is specified, comprising: a processor configured to execute the sequence of program commands, wherein the processor is implemented to provide a checking value generated according to a setup regulation when executing a checking command and not to provide a corresponding checking value when executing a command of use; a provider configured to separately generate a control value concurrently to the execution of the program, wherein the control value is derived from a preceding control value according to the setup regulation; a comparator configured to compare the checking value to the control value concurrently to the execution of the program; and a provider configured to provide an indication to an interference with the execution of the specified execution path of the program when the checking value and the control value do not match, wherein the providers and the comparator are implemented in hardware separate from the processor.