US 11,704,442 B2
Instance handling of a trusted execution environment
Alexander Maximov, Lund (SE); Bernard Smeets, Dalby (SE); and Lina Pålsson, Genarp (SE)
Assigned to TELEFONAKTIEBOLAGET LM ERICSSON (publ), Stockholm (SE)
Appl. No. 17/40,970
Filed by Telefonaktiebolaget LM Ericsson (publ), Stockholm (SE)
PCT Filed Mar. 27, 2018, PCT No. PCT/EP2018/057808
§ 371(c)(1), (2) Date Sep. 23, 2020,
PCT Pub. No. WO2019/185126, PCT Pub. Date Oct. 3, 2019.
Prior Publication US 2021/0374262 A1, Dec. 2, 2021
Int. Cl. G06F 21/62 (2013.01); G06F 21/53 (2013.01); G06F 21/57 (2013.01); G06F 21/60 (2013.01); G06F 21/72 (2013.01)
CPC G06F 21/629 (2013.01) [G06F 21/53 (2013.01); G06F 21/572 (2013.01); G06F 21/602 (2013.01); G06F 21/72 (2013.01); G06F 2221/0751 (2013.01)] 22 Claims
OG exemplary drawing
 
1. A method for handling instances of a trusted execution environment on an execution platform, the trusted execution environment being associated with a secure cryptoprocessor, wherein the secure cryptoprocessor holds a register, and wherein the trusted execution environment is configured to read from and write to the register at a given index i, the method being performed by the trusted execution environment, the method comprising:
checking, upon start of a new instance of the trusted execution environment, status of the register at the given index i, and wherein, when the register at the given index i has its status set to “undefined”, an internal status value is set to a first value, and else, when a value is read from the register at the given index i, the internal status value is set to a second value based on the read value;
writing the internal status value to the register at the given index i;
running the new instance, and whilst doing so:
reading a current value from the register at the given index i; and
enabling the new instance to keep running only when the current value equals the internal status value.