Protecting data stored in memory of IoT devices during low power modes

By encrypting the stored content in the low-power mode of the IoT device and using a secure link to communicate with the server, the problems of data protection and clock loss are solved, and secure loading of data and anti-replay protection are achieved.

CN112703500BActive Publication Date: 2024-08-30NAGRAVISION SA
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN201980055465.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-08-13
Publication Date
2024-08-30
Estimated Expiration
2039-08-13

AI Technical Summary

Technical Problem

It is difficult for IoT devices to securely protect data stored in secure memory in low-power mode, and there is a risk of clock loss and anti-replay attacks.

Method used

Encrypt the stored content during low power mode and store it in external memory, use a secure link to communicate with the remote server to obtain and use a security stamp for encryption and decryption, ensure the security of the data, and pass Diffie -Hermann Key Exchange Protocol establishes a secure connection.

Benefits of technology

This ensures the security of stored content during low-power mode, preventing malicious use and anti-replay attacks, while being able to safely load data and maintain security features after exiting low-power mode.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112703500B_ABST
    Figure CN112703500B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a method for enabling security functions of a chipset (1), in particular encryption of the contents of a secure memory (7), when a device enters a low power mode. The contents of the secure memory (7) can be encrypted and stored in an external memory (20) during the low power mode of the chipset (1).
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure generally relates to protecting data stored in a memory of a device. More specifically, the present disclosure relates to an Internet of Things (IoT) device that can enter a low power mode, and protecting data stored in the memory of the IoT device before, during, and after the low power mode. Background Art

[0002] IoT is a network of physical devices, supplies or items embedded in electronics or software that enables these objects to exchange data without human-machine interaction. ITU-T Recommendation Y.2060 defines IoT as the global infrastructure of the information society that enables advanced services by interconnecting things (physical and virtual) based on existing and evolving interoperable information and communication technologies. The "things" in the term "IoT" are considered to be objects in the physical world (physical things) or the information world (virtual things) that can be identified and integrated into communication networks. In this definition, physical things exist in the physical world and can be sensed, driven, and connected. Examples of physical things include the surrounding environment, industrial robots, commodities, and electrical equipment. In this definition, virtual things exist in the information world and can be stored, processed, and accessed. Examples of virtual things include multimedia content and application software.

[0003] In ITU-T Y.2060, IoT devices are considered to have mandatory functions of communication and optional functions of sensing, actuation, data capture, data storage and / or data processing. IoT devices typically communicate with other devices: they can communicate through a communication network through a gateway, through a communication network without a gateway, or directly without using a communication network. Moreover, a combination of communication scenarios can be made. For example, a device can communicate with other devices using direct communication through a local network (i.e., a network that provides local connections between devices and between devices and gateways, such as an ad hoc network), and then communicate through a communication network through a local network gateway.

[0004] Communication networks can transmit data captured by IoT devices to applications and other devices, as well as transmit instructions from applications to devices. Communication networks generally provide capabilities for reliable and efficient data transmission. IoT network infrastructure can be implemented through existing networks such as traditional TCP / IP-based networks and / or evolved networks such as next-generation networks (NGNs).

[0005] IoT devices can be built around integrated circuits, for example in the form of a system on a chip (SoC). Such an SoC can include a secure portion that includes a secure memory that can store data in a secure manner that is typically accessible only to the secure portion or through a secure protocol.

[0006] To conserve power, IoT devices may enter a low power mode when not in use. In low power mode, most components of the IoT device may be turned off except for components required to exit low power mode or receive a trigger to exit low power mode. Typically, when an IoT device enters low power mode, secure portions of the SoC, such as secure memory, are disabled, and generated keys, such as random encryption keys, used to encrypt and protect data stored in the secure memory are typically lost. As a result, it is difficult to protect data stored in the secure memory in a secure manner in low power mode.

[0007] The secure memory may be protected using a global key stored in a non-volatile memory, thereby remaining available in and after the low power mode. A disadvantage of using such a global key is that the previous contents of the secure memory, i.e. the data stored in the secure memory before entering the low power mode, may be reloaded. Thus, using a global key may result in a situation where there is no anti-replay countermeasure.

[0008] Furthermore, the secure portion of the IoT device may execute commands even before its security is fully initialized. This may lead to a potentially unsafe situation where the security of the IoT device cannot be ensured.

[0009] Another mechanism that is difficult to ensure is a secure and accurate clock. When an IoT device enters a low-power mode, the clock is often lost, or the IoT device relies on other components outside the SoC for a clock that may not be secure. Summary of the invention

[0010] The present disclosure solves the above-mentioned problems existing in the prior art.

[0011] According to one aspect of the present disclosure, a method is provided in which the storage contents of a first memory of a secure portion of a chipset can be protected during a low power mode. The low power mode can cause the storage contents to be erased from the first memory. When entering the low power mode, at least a portion of the storage contents can be encrypted, optionally signed, to obtain encrypted storage contents. The encrypted storage contents can be stored in an external memory outside the secure portion during the low power mode.

[0012] In this way, the storage content of the first memory is ensured even during the low power mode. In addition, since the storage content is encrypted, the storage content is protected from malicious or unauthorized use.

[0013] In one embodiment, when exiting the low power mode, the encrypted storage content can be received from the external memory in the secure portion. The encrypted storage content can be decrypted, optionally authenticated, to obtain the decrypted storage content, and the decrypted storage content can be loaded into the first memory.

[0014] In this way, the storage content of the first memory can be loaded back into the first memory in a safe manner and may be used again thereafter.

[0015] In one embodiment, the chipset may be configured to establish a secure link between the security portion and a remote client access server. In addition, the security portion may be configured to receive a security stamp from a client access server in the security portion via the secure link. Here, the security stamp may include data for protecting the stored content. Moreover, the security portion may be configured to store the security stamp in a second memory of the security portion, wherein in the low power mode, the security stamp may remain stored in the second memory. When entering the low power mode, the security portion may be configured to encrypt at least a portion of the content using the security stamp. In addition, when exiting the low power mode, the security portion may be configured to decrypt the encrypted stored content using the security stamp.

[0016] In this way, the security stamp is received from the client access server via a secure link, thereby protecting the security stamp from malicious or unauthorized use. Moreover, the security stamp cannot be modified by an attacker. In addition, the security stamp is retained by the security part during the low power mode, so that it can be used before and after the low power mode to perform security functions. Moreover, the security stamp can be used to encrypt or decrypt the stored content.

[0017] In one embodiment, the chipset may be configured to remove the security stamp from the second memory when the encrypted storage content is decrypted.

[0018] In one embodiment, the chipset may be functionally restricted prior to passing the security stamp through the secure link.

[0019] This enforces a connection to the Client Access Server before executing arbitrary commands using the secure enclave. Additionally, this ensures that security features can be applied in an optimal manner.

[0020] In one embodiment, a new security stamp received after establishing a secure link between the client access server and the secure portion may be different from a previous security stamp.

[0021] In this way, anti-replay attacks on the stored content are made possible.

[0022] In one embodiment, the secure link between the client access server and the secure portion may be implemented using a Diffie-Hellman key exchange protocol.

[0023] In this way, a secure link is obtained that can exchange data in a secure manner between the client access server and the security part. Here, the client access server knows that it is docking with an authentic chip, and the security part knows that it is connected to an authentic client access server.

[0024] In one embodiment, the security stamp may include a timestamp.

[0025] In this way, a precise clock can be provided to the chipset.

[0026] In one embodiment, the security portion may encrypt the storage content of the first memory based on an encryption algorithm that uses the security stamp as an initialization vector for the encryption algorithm.

[0027] In this way, an anti-replay attack on the stored content is made possible.

[0028] In an embodiment, the secure portion may be part of a trusted execution environment of the chipset.

[0029] In one embodiment, when entering low power mode, the trusted execution environment can control the storage of the encrypted storage content in the external memory; and when exiting low power mode, the trusted execution environment can control the loading of the encrypted storage content in the secure part.

[0030] In one embodiment, the security portion may generate a random key. Furthermore, when entering the low power mode, the trusted execution environment may use the random key as an encryption key and the security stamp as an initialization vector to encrypt computer code running in the trusted execution environment to obtain encrypted computer code. Furthermore, when exiting the low power mode, the trusted execution environment may use the random key as an encryption key and the security stamp as an initialization vector to decrypt the encrypted computer code.

[0031] In this way, the computer code running in the trusted execution environment can be retained in a secure manner in low power mode. In addition, anti-replay memory attacks on the computer code are made possible.

[0032] In one embodiment, the random key may be stored in the second memory.

[0033] In this way, the random key is retained during the low power mode and can be used to decrypt the computer code after the low power mode.

[0034] In one embodiment, another secure link may communicatively connect the secure portion to the trusted execution environment. The another secure link may use a random shared key to cryptographically protect the another secure link.

[0035] In this way, the further secure link may be used to transfer data between the trusted execution environment and the secure part in a secure manner.

[0036] In one embodiment, the random shared key may bind the random key to the security stamp.

[0037] In this way, the random key and the security stamp may be encrypted in a single operation.

[0038] In an embodiment, the another secure link may be reinitialized after each low power mode using a new random shared key.

[0039] This makes anti-replay attacks possible.

[0040] In one embodiment, the another secure link may be implemented using the KeyProt protocol.

[0041] According to another aspect of the present disclosure, an apparatus is proposed, which may include a processor configured to perform the steps of the method according to any one of the described embodiments.

[0042] According to another aspect of the present disclosure, an apparatus is proposed, which may include an integrated circuit configured to perform the steps of the method according to any one of the described embodiments.

[0043] In one embodiment, the device may be an Internet of Things (IoT) device.

[0044] According to another aspect of the present disclosure, a computer program product that can be implemented on a computer-readable non-temporary storage medium is proposed, wherein the computer program product may include computer-executable instructions, which when executed by a processor can enable the processor to perform the steps of the method according to any one of the described embodiments.

[0045] According to another aspect of the present disclosure, a computer-readable non-transitory storage medium is provided, which may include computer-executable instructions, which when executed by a processor may enable the processor to perform the steps of the method according to any one of the described embodiments.

[0046] The following examples are described in more detail. However, it should be understood that these examples cannot be construed as limiting the scope of protection of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] Next, embodiments will be described by way of example only with reference to the accompanying schematic drawings in which corresponding reference numerals indicate corresponding parts, wherein:

[0048] Figure 1 An exemplary embodiment in which a device is connected to a server via a network is shown.

[0049] Figure 2 Another exemplary embodiment of a device connected to a server via a network is shown.

[0050] Figure 3 A schematic diagram showing the implementation of the Diffie-Hellman protocol.

[0051] Figure 4 A schematic diagram showing the implementation of the Diffie-Hellman protocol through TEE.

[0052] Figure 5 Shown in more detail Figure 2 Data flow of an embodiment.

[0053] Figure 6 is a schematic diagram of the secure enclave initialization protocol.

[0054] Figure 7 is a schematic diagram of the protocol when the device enters low power mode.

[0055] Figure 8 is a schematic diagram of the protocol when a device exits low power mode.

[0056] These drawings are for illustrative purposes only and are not intended to limit the scope or protection provided by the claims. DETAILED DESCRIPTION

[0057] When reference is made to client devices in the following examples, it should be understood that the present disclosure is not limited to application in client devices.

[0058] Figure 1 An exemplary embodiment of a device 1 such as an IoT device that is communicatively connected to a server via a network is shown. The device may include a secure portion, also known as a secure enclave 2, which is typically the most secure hardware block on the SoC. The secure enclave is typically more secure than, for example, a trusted execution environment (TEE) on the SoC and may be part of the TEE. The secure enclave 2 may have its own independent secure boot process to ensure that it is fully secure and can perform specific security functions.

[0059] The secure enclave 2 may include a storage block 7, such as internal RAM, to store data and code for the secure enclave 2. Preferably, the storage block 7 is only accessible by the secure enclave 2. When the device enters a low power mode, the data stored in the storage block 7 may be lost because the storage block 7 is typically a volatile memory.

[0060] The secure enclave 2 may include one or more always-open registers 5 that can store data even when the device enters a low-power mode. These always-open registers 5 may, for example, store data that is needed immediately after the secure enclave 2 exits a low-power mode. The always-open registers 5 may have a secure clock 3 and a key table 4. The secure clock 3 and the key table 4 may be placed separately from the always-open registers 5.

[0061] The secure enclave 2 can send and receive data to and from the external memory 20. Preferably, the external memory 20 is part of the device 1, but may alternatively be external to the device 1. The external memory 20 is configured to cause data to be stored when the device 1 enters a low power mode. Preferably, the external memory 20 is a non-volatile memory that allows the external memory 20 to enter a low power mode with the device 1. Alternatively, the external memory 20 may be a volatile memory, in which case the external memory 20 should not be placed in a low power mode when the device 1 enters a low power mode to save its contents.

[0062] The secure enclave 2 may include a cryptographic processor 6. The cryptographic processor 6 may be used to encrypt (and optionally sign) or decrypt (and optionally authenticate) code and data on a memory block 7 of the secure enclave 2. The cryptographic processor 6 is configured to perform cryptographic functions and may use a cryptographic key and, depending on the cryptographic function, an initialization vector (IV) as input.

[0063] The device may be configured to communicate with an external client access server 11 via a network 10. The client access server 11 may be a server that is communicatively connected to a plurality of clients including the device 1. When the device 1 is an audio, video or other media-related device, the network 10 may be an OTT (Over The Top) network, a digital video broadcasting (DVB) network or other media-related network. The device 1 may be an IoT device, in which case the network 10 further or optionally includes features of an IoT network, or is an IoT network.

[0064] In one embodiment, the secure enclave 2 resets the always-open register 5 when the device boots up. Next, the secure enclave 2 initializes a secure link with the client access server 11. In this way, the secure enclave 2 and the client access server 11 can be sure that the data over the secure link is communicated between the correct recipient and sender. An implementation of this secure link between the client access server 11 and the secure enclave 2 is based on the Diffie-Hellman key exchange protocol. Figure 3 An embodiment of the Diffie-Hellman key exchange protocol used in the context of the present disclosure is described in more detail.

[0065] Figure 3 A schematic diagram showing an example implementation of the Diffie-Hellman key exchange protocol. After, for example, prompting initialization of the secure enclave 2, the secure enclave generates (51) a random key pair consisting of a private portion of a key (a private device key) and a public portion of a key (a public device key). This is typically a random key pair. The private device key may be a nonce (a number or bit string used only once for cryptographic purposes). The public device key may be calculated based on the private device key.

[0066] The secure enclave 2 transmits (41) the public device key to the client access server 11. The transmission may be direct or may be made through another part of the device 1 with a lower security level. The secure enclave 2 may also transmit its unique ID or the unique ID of the device 1 to the client access server 11. The secure enclave 2 may also transmit its secure enclave certificate to prove that it is an authenticated device. The client access server 11 may check the unique ID belonging to the device 1 or the secure enclave 2 to verify the identity of the secure enclave 2 attempting to establish a secure link with the client access server 11, and may verify whether the unique ID belongs to an actual manufactured chip. In addition, the secure enclave 2 may sign the transmission (41), for example based on a public key infrastructure known to both the client access server and the device. The device may sign the message using its private PKI key. This may be used to check authentication, non-repudiation, and that the message has not been altered after transmission.

[0067] After receiving the transmission 41 , the client access server 11 checks the parameters of the transmission ( 42 ). This means, for example, checking the signature or the unique ID transmitted by the secure enclave 2 .

[0068] Next, the client access server 11 generates (53) a key pair consisting of a private part of a key (private server key) and a public part of a key (public server key). This may be a random key pair. The private server key may be a nonce, and the public server key may be calculated based on the private server key.

[0069] Next, the client access server 11 may calculate (54) a secure link key based on the public device key and the private server key. The secure link key may be used to protect a secure link to be formed between the client access server 11 and the secure enclave 2.

[0070] After calculating the secure link key, the client access server 11 transmits (42) the public server key to the secure enclave 2. The transmission (42) may be made via a less secure portion of the device 1, or directly to the secure enclave 2. The client access server 11 may also transmit its server certificate, which is used to prove that the public server key sent in the transmission (42) is indeed owned by the client access server 11. In addition, the client access server 11 may sign the transmission (42) with its signature, for example based on a public key infrastructure known to both the client access server and the device.

[0071] Upon receiving the transmission (42), the secure enclave 2 checks (55) the parameters of the transmission (42) (signature, server certificate) and computes a secure link key based on the private key of the secure enclave 2 and the public key of the client access server 11. Both the secure enclave 2 and the client access server 11 now agree on the secure link key. This key can then be used to encrypt and decrypt data transmitted over the secure link between the secure enclave 2 and the client access server 11.

[0072] The secure enclave 2 may send (43) a secure enclave certificate signed, for example, with a signature when computing the secure link key, to indicate, for example, that the secure enclave 2 has computed the secure link key.

[0073] Once the secure link between the Client Access Server 11 and the Secure Enclave 2 is established (after checking (56) the parameters of the transmission (43)), the Client Access Server 11 may send 44 a security stamp (possibly signed with a signature) to the Secure Enclave 2. Since the security stamp is sent over the secure link, only the Secure Enclave 2 that established the secure link has access to the security stamp. This ensures that the security stamp cannot be captured or modified by a potential attacker. The security stamp contains data that enables security functions of the Secure Enclave 2. In particular, the security stamp enables encryption of data stored in the memory block 7 when the device enters a low power mode.

[0074] The security stamp may include a random number. Alternatively or further, the security stamp may include a timestamp indicating a date and / or time. The advantage of using a timestamp is that the security stamp may also be used as a clock signal for the device 1 when starting up and / or exiting a low power mode. For example, the security clock 3 may be set or updated based on the timestamp.

[0075] Once the secure link between the Client Access Server 11 and the Secure Enclave 2 is established, and the Secure Enclave 2 has received the security stamp, which is typically stored (58) in the normally open register 5, and the parameters of the transmission (44) have been checked (57), the Secure Enclave 2 is initialized.

[0076] Next, the security functions of the secure enclave 2 may be enabled. The security functions of the secure enclave 2 may be enabled only after a secure link with the client access server 11 is established and a security stamp is received. The advantage of this is that, since the data on the storage block 7 is encrypted using the security stamp, the security stamp is set before enabling the security functions of the secure enclave 2, ensuring that, for example, the data on the storage block 7 can be encrypted if necessary.

[0077] After initialization, the secure enclave 2 may generate a random key (KSE) that may be used by the secure enclave 2 to encrypt its own contents, such as data in memory block 7. The random key (KSE) may be stored in an always-on register 5, such as in a key table 4.

[0078] When entering low power mode, the device limits the amount of power supplied to certain parts of the device. As a result, data stored in memory block 7 may be erased. In order to preserve the data of memory block 7, the stored contents of memory block 7 may be stored in a secure manner on external memory 20 before being erased. The secure enclave 2 is typically only allowed to enter low power mode after having received a security stamp from the client access server 11.

[0079] When entering low power mode, the secure enclave 2 may encrypt the content on the storage block 7 using the cryptographic processor 6. The cryptographic function performed by the cryptographic processor 6 may be performed using a random key (KSE) as a cryptographic key and a security stamp as an IV. Optionally, the cryptographic processor 6 may also sign the encrypted content.

[0080] The encrypted content is then stored (31) in the external memory 20, after which the secure enclave 2 may enter a low power mode.

[0081] When the secure enclave 2 exits low power mode, for example upon receipt of a wake-up trigger in the form of a wake-up packet, operations may be performed to restore the content and reinitialize itself according to its internal ROM code. Hereby, the encrypted content stored on the external memory 20 may be received by the secure enclave 2, after which the cryptographic processor 6 may decrypt the content. For decryption, the random key (KSE) may again be used as an encryption key and the security stamp may be used as an IV, which may be obtained from the always-on register 5 which is not erased during low power mode. In the event that the encrypted content has been signed, the cryptographic processor 6 may authenticate the content.

[0082] After the encryption processor 6 completes the decryption, the decrypted content can be stored in the storage block 7. Therefore, the storage content of the storage block 7 stored in the external memory 20 during the low power mode can be restored safely and surely.

[0083] Next, the secure enclave 2 may clear the security stamp register, i.e., remove the security stamp from the always-open register 5. This forces the secure enclave 2 to be reactivated by initializing a new secure link between the client access server 11 and the secure enclave 2, thereby acquiring a new security stamp before the next low-power mode. As described above, the Diffie-Hellman protocol may again be used to implement this secure link.

[0084] Preferably, the new security stamp is different from the last security stamp so that the stored content can be encrypted differently in each low power mode. This advantageously enables anti-replay attacks on the secure memory. When the new security stamp includes a new latest timestamp, it can be used to (re)set the device's clock to the correct time.

[0085] Figure 2Another exemplary embodiment of a device 1 such as an IoT device that is communicatively connected to a server via a network is shown. This exemplary embodiment may have all or part of the above-described functionality. In this embodiment, the secure portion or secure enclave 2 is part of the TEE 12. The TEE 12 is part of the device 1 and may be embedded in the SoC. The TEE 12 provides data isolation between untrusted applications running on the rich execution environment of the device 1 and trusted applications running on the TEE 12. The TEE 12 is considered less secure than the secure portion or secure enclave 2, but typically has more functionality.

[0086] The TEE 12 may have its own memory block 17 containing the code or data of the TEE 12. This code or data also needs to be protected during the low power mode of the device 1. The memory block 17 may be an internal RAM. In that case, when the device 1 enters the low power mode, the data stored in the memory block 17 may be lost because the memory block 17 is a volatile memory. Alternatively, the memory block 17 may be a non-volatile memory. In that case, when the device 1 enters the low power mode, the data stored in the memory block 17 may be retained.

[0087] The TEE 12 may also have a key table 15 which is a storage block that may store encryption keys of the device 1. The encryption keys may be encrypted and signed before being stored in the key table 15.

[0088] The TEE 12 may also include a cryptographic processor 16. The cryptographic processor 16 may be used to encrypt (and optionally sign) or decrypt (and optionally authenticate) code and data on a storage block 17 of the TEE 12. The cryptographic processor 16 is configured to perform cryptographic functions and may use a cryptographic key and, depending on the cryptographic function, an initialization vector (IV) as input.

[0089] Initialization of secure enclave 2 can be done with the same Figure 3 In the same manner as the embodiments of Figure 4 Execute in the manner shown.

[0090] Figure 4 Figure 1 shows a schematic diagram of implementing the Diffie-Hellman protocol through TEE. The steps are the same as in Figure 3 However, the TEE initiates the initialization process by sending (40) an Initialization Request to the Secure Enclave.

[0091] The transmissions 40, 41, 42, 43, 44 may be made through the TEE, or only selected transmissions 40, 41, 42, 43, 44 may be made through the TEE. The rest of the process is the same as Figure 3At the end of the protocol, secure enclave 2 is initialized.

[0092] After initialization of the secure enclave 2, the secure enclave 2 may also generate a random key (KTEE) that may be used by the TEE 12 to encrypt its own contents, such as data in the memory block 17. The random key (KTEE) may be stored in an always-on register 5 of the secure enclave 2, such as in the key table 4. The random key KTEE may be generated at the same time as the secure enclave 2 generates the random key KSE, but may also be generated at another time.

[0093] Both the TEE 12 and the secure enclave 2 in this embodiment may have KeyProt blocks (9 and 8 respectively). These blocks are used to protect the secure enclave keys (e.g., the key KTEE) from being accessed by the TEE 12 or other parts of the device 1 that are generally less secure, such as the REE (Rich Execution Environment).

[0094] KeyProt blocks 8 and 9 are used to enable the KeyProt mechanism. The KeyProt mechanism is described in, for example, International Patent Application Publication WO 2015 / 007549 A1, which will be described in more detail below.

[0095] During the initialization of the secure enclave 2, the KeyProt blocks 8, 9 may also be initialized. These two blocks 8, 9 are able to generate a random shared key KP shared between the two KeyProt blocks 8, 9. In this way a secure link is formed and data can be encrypted and decrypted using this random shared key KP.

[0096] The advantage of using the KeyProt mechanism is that data transmitted over the secure link formed by the KeyProt mechanism is fully protected, so the data cannot be transmitted from the secure enclave 2 to the TEE 12 over this path in an unprotected form.

[0097] The KeyProt mechanism is just one example of a possible secure link between the secure enclave 2 and the TEE 12. Any other method may be used to form a secure link between the secure enclave 2 and the TEE 12. In addition, a non-fixed link may be formed.

[0098] When entering low power mode, the secure enclave 2 encrypts the random key KTEE using the random shared key KP. In addition, the secure enclave 2 can transfer the security stamp on the random key KTEE. Once transferred to the random key KTEE, the security stamp can be kept transparent or encrypted using the random shared key KP. Preferably, the random key KTEE and the security stamp will be encrypted in a single operation using the random shared key KP.

[0099] The TEE 12 may store the received encrypted KTEE and security stamp in the key table 15 in an encrypted or decrypted form. The TEE 12 may use the decrypted random key KTEE and security stamp using the cryptographic processor 16 to protect its own code and data. The cryptographic function performed by the cryptographic processor 16 may be performed using the random key (KTEE) as an encryption key and the security stamp as an IV. Optionally, the cryptographic processor 16 may also sign the encrypted content.

[0100] The encrypted content may optionally be stored ( 32 ) in external memory 20 , after which TEE 12 may enter a low power mode.

[0101] When the device 1 exits low power mode, the secure enclave may be awakened by the TEE 12, for example, upon receipt of a wake-up trigger in the form of a wake-up packet, and, based on its ROM code, may initialize the KeyProt blocks 8, 9 to enable the KeyProt mechanism. In this way, a new random shared key KP is generated, which in turn is shared by the secure enclave 2 and the TEE 12. In the same manner as before, the secure enclave may encrypt and bind the KTEE and security stamp stored in the always-on registers using the new random shared key KP. This new encrypted KTEE and security stamp may be stored by the TEE in the key table 15.

[0102] If the encrypted content is stored on the external memory 20, it can be received by the TEE 12 (32). When the encrypted content is available to the TEE 12, the cryptographic processor 16 can decrypt the content. For decryption, the random key (KTEE) that can be obtained from the key table 15 can be used as the encryption key and the security stamp can be used as the IV. When the encrypted content has been signed, the cryptographic processor 16 can authenticate the content.

[0103] After the encryption processor 16 completes the decryption, the decrypted content can be stored in the storage block 17. Therefore, the storage content of the storage block 17 stored in the external memory 20 during the low power mode can be restored safely and surely.

[0104] Figure 5 Shown in more detail Figure 2 Some examples of data flows of embodiments of the present invention. There may be more data flow paths.

[0105] The storage block 7 and the cryptographic processor 6 of the secure enclave 2 can transfer data to each other. The storage block 17 and the cryptographic processor 16 of the TEE 12 can also transfer data to each other. The key table 4 of the normally open register 5 can transfer data to the KeyProt block 8 and the cryptographic processor 6. In the KeyProt mechanism, for example, communication between the KeyProt blocks 8 and 9 can use inputs from the secure clock 3 or can generate outputs for the secure clock 3. The KeyProt block 8 can communicate with the key table 15. The key table 15 can communicate with the KeyProt block 9. The KeyProt block 9 can communicate with the cryptographic processor 16.

[0106] Data that can be shared between the client access server 11 and the device 1 may include a client access server certificate 100, a security stamp 101, and a secure enclave certificate 102. The client access server certificate 100 and the secure enclave certificate 102 may be sent without a secure link between the secure enclave 2 and the client access server 11.

[0107] Figure 6 is a schematic diagram of the secure enclave initialization protocol.

[0108] In step 60, the secure enclave 2 is prompted to reset or initialize. In step 61, the secure enclave 2 resets or initializes the always-open registers. Next, in step 62, the secure enclave 2 resets or initializes the random shared key KP of the KeyProt blocks 8, 9.

[0109] In step 63, the secure link between the secure enclave 2 and the client access server 11 is initialized. After the secure link has been established, the security stamp is provided to the secure enclave 2 by the client access server 11. In step 64, the secure enclave 2 checks whether step 63 went smoothly. If there is a problem, step 63 is re-executed. If there is no problem, the secure enclave 2 continues to execute step 65 and stores the security stamp in the normally open register 5.

[0110] The secure enclave 2 may continually update the security stamp in step 66. This may occur at fixed or variable intervals when prompted to do so.

[0111] In step 67, Secure Enclave 2 generates random keys (KSE, KTEE) and stores them in Always-Open Register 5. After completing this step, in step 68, Secure Enclave 2 has reached the end of its initialization protocol.

[0112] Figure 7 is a schematic diagram of the protocol when the device enters low power mode.

[0113] In step 70, the secure enclave 2 is prompted to enter low power mode. In step 71, the secure clock value is checked. If the secure clock value is not a special value (e.g., zero), the secure enclave 2 may proceed to step 72. If the secure clock value is a special value (e.g., zero), the secure enclave may proceed to step 74 (see below).

[0114] In step 72, the secure enclave may encrypt and possibly sign its internal memory with a random key KSE and store it in the external memory 20. Next, in step 73, the secure enclave may encrypt the random key KTEE with the KeyProt mechanism and store it in the TEE key table 15. This KTEE may then be used to encrypt the computer code of the TEE 12.

[0115] Next, in step 74, the secure enclave 2 enters low power mode and waits for a prompt to exit low power mode.

[0116] Figure 8 is a schematic diagram of the protocol when a device exits low power mode.

[0117] In step 80, the secure enclave 2 is prompted to exit low power mode. In step 81, the secure enclave resets or initializes the random shared key KP of the KeyProt mechanism. The secure enclave 2 then outputs the KTEE encrypted with the KeyProt and outputs the security stamp. The KTEE and security stamp can be used to decrypt the computer code of the TEE 12.

[0118] Next, in step 82 , the secure enclave 2 decrypts and possibly verifies the external memory 20 using the KSE and the security stamp as an initialization vector, and stores it in the memory block 7 .

[0119] Next, in step 83 , the secure enclave 2 clears the security stamp in the always-open register 5 .

[0120] Finally, from step A, the secure enclave 2 undergoes an initialization protocol starting from step 63.

[0121] One or more embodiments may be implemented as a computer program product for use with a computer system. The program of the program product may define the functions of the embodiments (including the methods described in this specification) and may be contained on various computer-readable storage media. The computer-readable storage medium may be a non-temporary storage medium. Illustrative computer-readable storage media include, but are not limited to: (i) non-writable storage media that can permanently store information (e.g., a read-only storage device within a computer, such as a CD-ROM disc readable by a CD-ROM drive, a ROM chip, or any type of solid-state non-volatile semiconductor memory); and (ii) writable storage media, such as a hard drive or any type of solid-state random access semiconductor memory, flash memory that can store variable information.

[0122] Two or more of the above-described embodiments may be combined in any appropriate manner.

Claims

1. A method for protecting the storage contents of a first memory (7) of a secure part (2) of a chipset (1) during a low power mode, wherein: The low power mode causes the storage content to be erased from the first memory (7), the method comprising: When entering the low power mode, at least a portion of the storage content is encrypted and signed to obtain encrypted storage content, and the encrypted storage content is stored in an external memory (20) outside the secure part (2) during the low power mode.

2. The method according to claim 1, further comprising: When exiting the low power mode, the encrypted storage content is received from the external memory (20) in the security part (2), the encrypted storage content is decrypted and optionally authenticated to obtain the decrypted storage content, and the decrypted storage content is loaded into the first memory (7).

3. The method according to claim 2, wherein: The chipset (1) is configured as follows: Establishing a secure link between the security part (2) and the remote client access server (11); receiving a security stamp from a client access server (11) in the secure portion (2) via the secure link, wherein the security stamp includes data for protecting the stored content; storing the security stamp in a second memory (5) of the security part (2), wherein in the low power mode, the security stamp remains stored in the second memory (5); When entering the low power mode, encrypting at least a portion of the content using the security stamp; and When the low power mode is exited, the encrypted stored contents are decrypted using the security stamp.

4. The method according to claim 3, wherein: The method comprises: when the encrypted storage content is decrypted, the chipset (1) removes the security stamp from the second memory (5).

5. The method according to any one of claims 3 to 4, wherein: The method comprises receiving a new security stamp received after establishing a secure link with the client access server (11), wherein the security part (2) is different from the previous security stamp.

6. The method according to any one of claims 3 to 4, wherein: The method comprises: implementing a secure link between the client access server (11) and the secure part (2) using the Diffie-Hellman key exchange protocol.

7. The method according to any one of claims 3 to 4, wherein: The method includes using a timestamp as a security stamp.

8. The method according to any one of claims 3 to 4, wherein: The method comprises: the security part (2) encrypts the storage content of the first memory (7) based on an encryption algorithm using the security stamp as an initialization vector for the encryption algorithm.

9. The method according to any one of claims 2 to 4, wherein: The method comprises using the secure portion (2) as part of a trusted execution environment (12) of the chipset (1).

10. The method according to claim 9, wherein: The method comprises: when entering a low power mode, the trusted execution environment (12) controls the storage of the encrypted storage content in the external memory (20); and when exiting the low power mode, the trusted execution environment (12) controls the loading of the encrypted storage content in the secure part (2).

11. The method according to claim 9, further comprising: The security part (2) generates a random key; When entering the low power mode, the trusted execution environment (12) uses the random key as an encryption key and the security stamp as an initialization vector to encrypt computer code running in the trusted execution environment (12) to obtain encrypted computer code; as well as When exiting the low power mode, the trusted execution environment (12) decrypts the encrypted computer code using the random key as an encryption key and the security stamp as an initialization vector.

12. The method according to claim 11, further comprising: The random key is stored in the second memory (5).

13. The method according to claim 11, wherein: The method comprises: communicatively connecting the secure part (2) to the trusted execution environment (12) using another secure link, the another secure link using a random shared key to cryptographically protect the another secure link.

14. The method according to claim 13, wherein: The method includes binding the random key to the security stamp via the random shared key.

15. The method according to claim 13, wherein: The method comprises reinitializing the further secure link after each low power mode using a new random shared key.

16. An apparatus comprising a processor configured to perform the steps of the method according to any one of claims 1 to 15.

17. A computer-readable non-transitory storage medium comprising computer-executable instructions which, when executed by a processor, cause the processor to perform the steps of the method according to any one of claims 1 to 15.

Citation Information

Patent Citations

  • Method for protecting decryption keys in a decoder and decoder for implementing said method

    WO2015007549A1

  • Secure processing device, method and program

    CN101379537A

  • Encryption / decryption apparatus, controller and encryption key protection method

    US20170039397A1