Method to protect a stack from manipulation in a data processing system
AssigneeNXP B.V.
InventorsMarcel Medwed, Erik Kraft, Jan Hoogerbrugge, Tobias Schneider
Life of this patent
Estimating the term…
Loading patent…
AssigneeNXP B.V.
InventorsMarcel Medwed, Erik Kraft, Jan Hoogerbrugge, Tobias Schneider
Estimating the term…
A method is provided to protect a stack of return addresses from manipulation. The return address indicates where to return in a computer program after a subroutine is called. In the method, an encryption key and an initial tweak value is selected. For a return address to be stored on the stack, a first chained address is generated by encrypting the return address with the encryption key and the initial tweak value. The first chained address is provided to the stack instead of the return address. For a subsequent return address that is subsequent to the return address, a second chained address is generated by encrypting the subsequent return address with the encryption key and the first chained address. The second chained address is provided to the stack instead of the subsequent return address. The method provides effective protection without requiring additional memory in a memory limited system.
A method to protect a stack of return addresses from manipulation in a data processing system, the method comprising:
A computer program stored on a non-transitory medium comprising executable instructions that when executed by a processor protect a stack of return addresses from manipulation in a data processing system, the instructions comprising:
Dependencies are inferred from the claim text.