Information transmission method, device, system and equipment and storage medium

By receiving and comparing the code fragment benchmark values ​​and metric values ​​of the application in a trusted execution environment, the problem of big data application deployment and safe execution in TEE is solved, and the safe processing and distributed configuration method of the application are realized.

CN118797624APending Publication Date: 2024-10-18CHINA MOBILE COMM LTD RES INST +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311104007.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-08-29
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

Existing technologies make it difficult to dynamically deploy and securely execute big data applications in a Trusted Execution Environment (TEE), especially in the fields of cloud computing and big data, which lack effective deployment and secure execution solutions.

Method used

By receiving and comparing the benchmark values ​​and metric values ​​of the application's code fragments in the trusted execution environment, it is judged whether the application is safely executed in the TEE, and the hash function and identity authentication key are used to generate the benchmark values ​​and tokens to achieve Dynamic deployment and secure execution of applications.

Benefits of technology

Ensure the safe execution of applications in TEE, provide a full life cycle distributed configuration method for applications in TEE environment, and ensure the effective configuration and deployment of cloud computing and big data resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118797624A_ABST
    Figure CN118797624A_ABST
Patent Text Reader

Abstract

The invention discloses an information transmission method, device and system, equipment and a storage medium. The method is applied to a first device, and the method comprises the following steps: receiving first information sent by a master node in a trusted execution environment; the first information comprises a reference value corresponding to each code snippet of the application program; each code snippet of the application program is executed by each slave node in the trusted execution environment; receiving second information sent by each slave node in the trusted execution environment; the second information comprises a metric value corresponding to a code snippet of an application program executed by the corresponding slave node; and comparing the first information with the second information sent by each slave node to obtain a comparison result, and judging whether the application program is safely executed in the trusted execution environment based on the comparison result.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of wireless communication technology, and in particular to an information transmission method, device, system, equipment and storage medium. Background Art

[0002] At present, the Trusted Execution Environment (TEE) technology is mainly applicable to single-machine scenarios, for example, using TEE on a single server to process data securely. However, there is currently no relevant technical solution for how to dynamically deploy applications in TEE, such as big data applications, and how to ensure that applications deployed in TEE are executed securely. Summary of the invention

[0003] In view of this, embodiments of the present application hope to provide an information transmission method, apparatus, system, device and storage medium.

[0004] The technical solution of the embodiment of the present application is implemented as follows:

[0005] The present application provides an information transmission method, which is applied to a first device, and the method includes:

[0006] Receiving first information sent by a master node in a trusted execution environment; the first information includes reference values ​​corresponding to respective code fragments of an application; and each code fragment of the application is executed by each slave node in the trusted execution environment;

[0007] Receiving second information respectively sent by each slave node in the trusted execution environment; the second information includes a metric value corresponding to a code fragment of an application program executed by the corresponding slave node;

[0008] The first information is compared with the second information respectively sent by each of the slave nodes to obtain a comparison result, and based on the comparison result, it is determined whether the application is securely executed in the trusted execution environment.

[0009] In addition, according to at least one embodiment of the present application, the comparing the first information with the second information respectively sent by each of the slave nodes to obtain a comparison result includes:

[0010] Perform the following operations for each code snippet of the application:

[0011] The benchmark value and the metric value corresponding to the code snippet are compared to obtain a comparison result.

[0012] In addition, according to at least one embodiment of the present application, judging whether the application is securely executed in the trusted execution environment based on the comparison result includes:

[0013] When the comparison result indicates that the reference values ​​and the measurement values ​​respectively corresponding to the code snippets are the same, it is determined that the application is securely executed in the trusted execution environment.

[0014] In addition, according to at least one embodiment of the present application, the method further includes:

[0015] Sending the application to the master node;

[0016] The application is used by the master node to perform the following operations:

[0017] deploying the application locally;

[0018] According to the data size of the application and the resource size of each slave node, the application is divided into a plurality of code fragments; the benchmark values ​​corresponding to each code fragment of the application are determined; and the first information is obtained according to the benchmark values ​​corresponding to each code fragment of the application;

[0019] Each code snippet of the application is sent to a corresponding slave node respectively, so that each slave node determines a metric value corresponding to the code snippet of the application executed by each slave node; and obtains the corresponding second information according to the metric value corresponding to the code snippet of the application executed by each slave node.

[0020] In addition, according to at least one embodiment of the present application, the method further includes:

[0021] A remote attestation challenge is sent to each of the slave nodes respectively, so that each of the slave nodes sends the second information corresponding to the respective slave nodes as a remote attestation result to the first device.

[0022] At least one embodiment of the present application provides an information transmission method, which is applied to a first node, where the first node is a master node in a trusted execution environment, and the method includes:

[0023] Sending first information to a first device; the first information includes reference values ​​corresponding to respective code snippets of an application; and each code snippet of the application is executed by each slave node in the trusted execution environment;

[0024] Among them, the first device compares the first information with the second information sent by each of the slave nodes to obtain a comparison result, and based on the comparison result, determines whether the application is securely executed in the trusted execution environment; the second information includes a measurement value corresponding to the code snippet of the application executed by the corresponding slave node.

[0025] In addition, according to at least one embodiment of the present application, the method further includes:

[0026] The application program sent by the first device is obtained, and the application program is deployed locally.

[0027] In addition, according to at least one embodiment of the present application, the method further includes:

[0028] Dividing the application into a plurality of code segments according to the data size of the application and the resource size of each of the slave nodes;

[0029] For each code snippet, do the following:

[0030] Generate a first hash value corresponding to the code snippet;

[0031] Generate a first token corresponding to the code snippet;

[0032] Using the first hash value and the first token as reference values ​​corresponding to the code snippet;

[0033] The first information is obtained according to the benchmark values ​​respectively corresponding to the code snippets of the application.

[0034] In addition, according to at least one embodiment of the present application, generating a first hash value corresponding to the code snippet includes:

[0035] The code snippet is mapped to the first hash value through a hash function.

[0036] In addition, according to at least one embodiment of the present application, generating a first token corresponding to the code snippet includes:

[0037] Obtaining an identity certification key corresponding to the application;

[0038] The identity certification key is used to generate a first token corresponding to the code snippet.

[0039] In addition, according to at least one embodiment of the present application, the method further includes:

[0040] Each code snippet of the application is sent to a corresponding slave node respectively.

[0041] At least one embodiment of the present application provides an information transmission method, which is applied to a second node, where the second node is a slave node in a trusted execution environment, and the method includes:

[0042] Sending second information to the first device; the second information includes a metric value corresponding to a code snippet of the application program executed by the slave node;

[0043] Among them, the first device compares the first information sent by the master node in the trusted execution environment with the second information sent by each of the slave nodes to obtain a comparison result, and based on the comparison result, determines whether the application is securely executed in the trusted execution environment; the first information includes benchmark values ​​corresponding to each code fragment of the application; and each code fragment of the application is executed by each slave node in the trusted execution environment.

[0044] In addition, according to at least one embodiment of the present application, the method further includes:

[0045] Receive a code snippet of an application program sent by the master node;

[0046] Perform the following actions for the code snippet:

[0047] Generate a second hash value corresponding to the code snippet;

[0048] Generate a second token corresponding to the code snippet;

[0049] Using the second hash value and the second token as a metric value corresponding to the code snippet;

[0050] The second information is obtained according to the metric value corresponding to the code snippet of the executed application program.

[0051] In addition, according to at least one embodiment of the present application, sending the second information to the first device includes:

[0052] receiving a remote attestation challenge sent by the first device;

[0053] The second information is sent to the first device as a remote certification result.

[0054] At least one embodiment of the present application provides an information transmission device, including:

[0055] A receiving module, configured to receive first information sent by a master node in a trusted execution environment; the first information includes benchmark values ​​corresponding to respective code snippets of an application program; the respective code snippets of the application program are executed by respective slave nodes in the trusted execution environment; and receive second information sent by respective slave nodes in the trusted execution environment; the second information includes metric values ​​corresponding to the code snippets of the application program executed by the corresponding slave nodes;

[0056] The processing module is used to compare the first information with the second information respectively sent by each of the slave nodes to obtain a comparison result, and based on the comparison result, determine whether the application is securely executed in the trusted execution environment.

[0057] At least one embodiment of the present application provides an information transmission device, including:

[0058] A first sending module, configured to send first information to a first device; the first information includes reference values ​​corresponding to respective code snippets of an application; and each code snippet of the application is executed by each slave node in the trusted execution environment;

[0059] Among them, the first device compares the first information with the second information sent by each of the slave nodes to obtain a comparison result, and based on the comparison result, determines whether the application is securely executed in the trusted execution environment; the second information includes a measurement value corresponding to the code snippet of the application executed by the corresponding slave node.

[0060] At least one embodiment of the present application provides an information transmission device, including:

[0061] A second sending module, configured to send second information to the first device; the second information includes a metric value corresponding to a code snippet of the application program executed by the slave node;

[0062] Among them, the first device compares the first information sent by the master node in the trusted execution environment with the second information sent by each of the slave nodes to obtain a comparison result, and based on the comparison result, determines whether the application is securely executed in the trusted execution environment; the first information includes benchmark values ​​corresponding to each code fragment of the application; and each code fragment of the application is executed by each slave node in the trusted execution environment.

[0063] At least one embodiment of the present application provides an information transmission system, including:

[0064] A master node in a trusted execution environment is used to send first information to a first device; the first information includes reference values ​​corresponding to each code fragment of an application program; each code fragment of the application program is executed by each slave node in the trusted execution environment;

[0065] Each slave node in the trusted execution environment is used to send second information to the first device respectively; the second information includes a measurement value corresponding to a code fragment of an application program executed by the slave node;

[0066] The first device is used to receive the first information sent by the master node and the second information sent by each of the slave nodes; compare the first information with the second information sent by each of the slave nodes to obtain a comparison result, and based on the comparison result, determine whether the application is securely executed in the trusted execution environment.

[0067] At least one embodiment of the present application provides a first device, including a processor and a memory for storing a computer program that can be run on the processor.

[0068] Wherein, when the processor is used to run the computer program, it executes the steps of any one of the methods described above on the first device side.

[0069] At least one embodiment of the present application provides a first node, including a processor and a memory for storing a computer program that can be run on the processor.

[0070] Wherein, when the processor is used to run the computer program, it executes the steps of any one of the methods described above on the first node side.

[0071] At least one embodiment of the present application provides a second node, including a processor and a memory for storing a computer program that can be run on the processor.

[0072] Wherein, when the processor is used to run the computer program, it executes the steps of any one of the methods described above on the second node side.

[0073] At least one embodiment of the present application provides a storage medium having a computer program stored thereon, wherein the computer program implements the steps of any of the above methods when executed by a processor.

[0074] The information transmission method, apparatus, system, device and storage medium provided by the embodiments of the present application, the first device receives first information sent by a master node in a trusted execution environment; the first information includes benchmark values ​​corresponding to each code fragment of an application; each code fragment of the application is executed by each slave node in the trusted execution environment; second information sent by each slave node in the trusted execution environment is received; the second information includes measurement values ​​corresponding to the code fragment of the application executed by the corresponding slave node; the first information is compared with the second information sent by each slave node to obtain a comparison result, and based on the comparison result, it is determined whether the application is securely executed in the trusted execution environment.

[0075] Using the technical solution provided in the embodiment of the present application, an application, such as a big data application, is deployed in the master node of the trusted execution environment. The first device obtains the benchmark values ​​corresponding to each code fragment of the application from the master node in the trusted execution environment, and obtains the measurement values ​​corresponding to the code fragments of the respectively executed application from each slave node in the trusted execution environment. Then, the benchmark value and measurement value corresponding to each code fragment are compared, and based on the comparison result, it is determined whether the application is securely executed in the trusted execution environment. When it is determined that the application is securely executed in the trusted execution environment, it can be ensured that the data is securely processed in the trusted execution environment. BRIEF DESCRIPTION OF THE DRAWINGS

[0076] Figure 1 It is a schematic diagram of the master node (Master)-slave node (Worker) computing architecture for big data in the related technology;

[0077] Figure 2 This is a schematic diagram of the implementation process of the information transmission method of the embodiment of the present application Figure 1 ;

[0078] Figure 3 This is a schematic diagram of the implementation process of the information transmission method of the embodiment of the present application Figure 2 ;

[0079] Figure 4 This is a schematic diagram of the implementation process of the information transmission method of the embodiment of the present application Figure 3 ;

[0080] Figure 5 This is a schematic diagram of the system architecture of the information transmission method of the embodiment of the present application;

[0081] Figure 6 This is a schematic diagram of the structure of the information transmission device according to the embodiment of the present application. Figure 1 ;

[0082] Figure 7 This is a schematic diagram of the structure of the information transmission device according to the embodiment of the present application. Figure 2 ;

[0083] Figure 8 This is a schematic diagram of the structure of the information transmission device according to the embodiment of the present application. Figure 3 ;

[0084] Fig. 9 It is a schematic diagram of the structure of the information transmission system according to the embodiment of the present application;

[0085] Fig.10 It is a schematic diagram of the composition structure of the first device in the embodiment of the present application;

[0086] Fig.11 It is a schematic diagram of the composition structure of the first node in the embodiment of the present application;

[0087] Fig.12 It is a schematic diagram of the composition structure of the second node in the embodiment of the present application. DETAILED DESCRIPTION

[0088] Before introducing the technical solutions of the embodiments of the present application, the related technologies are first introduced.

[0089] At present, TEE technology is mainly applicable to stand-alone scenarios, for example, using TEE on a single server for secure data processing. There is currently no public information or relevant implementation methods in the industry on how TEE technology can be adapted to the fields of cloud computing and big data, and how to dynamically deploy big data applications (APPs) in TEE.

[0090] Figure 1 This is a schematic diagram of the master node (Master)-slave node (Worker) computing architecture for big data in related technologies, such as Figure 1 As shown, the big data application is distributed from the master node (Master) to the slave node (Worker), and the slave node (Worker) performs the specific big information transmission work.

[0091] Due to the lack of mature solutions, there is no clear clarification and solution for the deployment of TEE in the fields of cloud computing and big data. TEE is usually used in static ways such as all-in-one machines. However, this method cannot achieve dynamic allocation of TEE computing resources.

[0092] To sum up, in the related technologies, there is currently no relevant technical solution on how to dynamically deploy applications in TEE, such as big data applications, and how to ensure that applications deployed in TEE are securely executed in TEE.

[0093] Based on this, in an embodiment of the present application, first information sent by a master node in a trusted execution environment is received; the first information includes benchmark values ​​corresponding to each code fragment of an application; each code fragment of the application is executed by each slave node in the trusted execution environment; second information sent by each slave node in the trusted execution environment is received; the second information includes measurement values ​​corresponding to the code fragments of the application executed by the corresponding slave node; the first information is compared with the second information sent by each of the slave nodes to obtain a comparison result, and based on the comparison result, it is determined whether the application is securely executed in the trusted execution environment.

[0094] See also Figure 2 , Figure 2 201 to 203:

[0095] Step 201: Receive first information sent by a master node in a trusted execution environment; the first information includes benchmark values ​​corresponding to respective code snippets of an application; and each code snippet of the application is executed by each slave node in the trusted execution environment.

[0096] As an example, the trusted execution environment may also be referred to as a TEE cluster.

[0097] As an example, a master node and at least one slave node may be deployed in the trusted execution environment. The master node may be represented by TA-Driver, and the slave node may be represented by TA-Worker. Assuming there are three slave nodes, they are represented as TA-Worker-1, TA-Worker-2, and TA-Worker-3. As an example, the application may refer to a trusted application, and the trusted application may refer to an application that is expected to be executed in the TEE, for example, a big data application (Spark application, etc.).

[0098] In actual application, in order to realize dynamic deployment of applications in TEE, the first device can send the application to the master node in TEE, and the master node deploys the application locally.

[0099] Based on this, in some embodiments, the method further includes:

[0100] Sending the application to the master node;

[0101] The application is used by the master node to perform the following operations:

[0102] deploying the application locally;

[0103] According to the data size of the application and the resource size of each slave node, the application is divided into a plurality of code fragments; the benchmark values ​​corresponding to each code fragment of the application are determined; and the first information is obtained according to the benchmark values ​​corresponding to each code fragment of the application;

[0104] Each code snippet of the application is sent to a corresponding slave node respectively, so that each slave node determines a metric value corresponding to the code snippet of the application executed by each slave node; and obtains the corresponding second information according to the metric value corresponding to the code snippet of the application executed by each slave node.

[0105] As an example, the data volume size of the application may refer to the size of data that can be processed by the application.

[0106] As an example, when the first device sends the application to the master node, the data size of the application may be sent to the master node. The master node may store the resource size of each slave node.

[0107] As an example, a corresponding amount of data can be allocated to each slave node based on the data size of the application. The data size only needs to be less than or equal to the resource size of the slave node, and the sum of the data amounts allocated to each slave node is equal to the data size of the application.

[0108] That is to say, the master node (TA-Driver node) is responsible for task division, and the task division mechanism is determined by the master node (TA-Driver) according to its own mechanism, for example, it can be based on Spark technology, or based on the open source distributed resource management framework (MESOS) technology.

[0109] In actual application, after the application is deployed in the master node of TEE, the master node can determine the benchmark values ​​corresponding to each code fragment of the application, and the benchmark value can be composed of two parts, namely a hash value and a token.

[0110] Based on this, in some embodiments, the master node determines the benchmark values ​​corresponding to the respective code snippets of the application program, including:

[0111] For each code snippet, do the following:

[0112] Generate a first hash value corresponding to the code snippet;

[0113] Generate a first token corresponding to the code snippet;

[0114] Using the first hash value and the first token as reference values ​​corresponding to the code snippet;

[0115] The first information is obtained according to the benchmark values ​​respectively corresponding to the code snippets of the application.

[0116] In some embodiments, the master node generates a first hash value corresponding to the code snippet, including:

[0117] The code snippet is mapped to the first hash value through a hash function.

[0118] As an example, the hash function may refer to a Hash function, which may be used to map data of any size to data of a fixed size, and a value returned by the Hash function may be referred to as a hash value.

[0119] In some embodiments, the master node generates a first token corresponding to the code snippet, including:

[0120] Obtaining an identity certification key corresponding to the application;

[0121] The identity certification key is used to generate a first token corresponding to the code snippet.

[0122] As an example, the identity authentication key may refer to AIK, where the AIK key is an asymmetric public-private key pair, which is randomly generated by the first device and sent to the master node.

[0123] As an example, the identity proof key can be used to sign the content of the code snippet to obtain a first token corresponding to the code snippet. For example, assuming that the code snippet is represented by TA-Slide and the first token is represented by Token, the AIK private key can be used to sign the content of TA-Slide to obtain a Token corresponding to TA-Slide.

[0124] Step 202: receiving second information respectively sent by each slave node in the trusted execution environment; the second information includes a measurement value corresponding to a code snippet of an application program executed by the corresponding slave node.

[0125] As an example, each slave node in the trusted execution environment respectively receives a code snippet of the application sent by the master node; performs the following operations on the code snippet: generates a second hash value corresponding to the code snippet; generates a second token corresponding to the code snippet; uses the second hash value and the second token as measurement values ​​corresponding to the code snippet; and obtains the second information based on the measurement value corresponding to the code snippet of the executed application.

[0126] In some embodiments, generating a second hash value corresponding to the code snippet includes:

[0127] The code snippet is mapped to the second hash value through a hash function.

[0128] As an example, the hash function may refer to a Hash function, which may be used to map data of any size to data of a fixed size, and a value returned by the Hash function may be referred to as a hash value.

[0129] In some embodiments, generating a second token corresponding to the code snippet includes:

[0130] Obtaining an identity certification key corresponding to the application;

[0131] A second token corresponding to the code snippet is generated using the identity certification key.

[0132] As an example, the identity authentication key may refer to AIK, where the AIK key is an asymmetric public-private key pair, which is randomly generated by the first device and sent to the slave node.

[0133] As an example, the identity proof key can be used to sign the content of the code snippet to obtain a second token corresponding to the code snippet. For example, assuming that the code snippet is represented by TA-Slide and the second token is represented by Token, the AIK private key can be used to sign the content of TA-Slide to obtain the Token corresponding to TA-Slide.

[0134] In actual application, when the first device initiates a remote attestation challenge to each slave node in the trusted execution environment, each slave node may send the corresponding second information to the first device.

[0135] Based on this, in some embodiments, the method further includes:

[0136] A remote attestation challenge is sent to each of the slave nodes respectively, so that each of the slave nodes sends the second information corresponding to the respective slave nodes as a remote attestation result to the first device.

[0137] Step 203: Compare the first information with the second information respectively sent by each of the slave nodes to obtain a comparison result, and based on the comparison result, determine whether the application is securely executed in the trusted execution environment.

[0138] As an example, the application being securely executed in the trusted execution environment may mean that each slave node in the trusted execution environment executes each code fragment of the current application instead of each code fragment of other applications.

[0139] In some embodiments, the comparing the first information with the second information respectively sent by each of the slave nodes to obtain a comparison result includes:

[0140] Perform the following operations for each code snippet of the application:

[0141] The benchmark value and the metric value corresponding to the code snippet are compared to obtain a comparison result.

[0142] In some embodiments, the determining, based on the comparison result, whether the application is securely executed in the trusted execution environment includes:

[0143] When the comparison result indicates that the reference values ​​and the measurement values ​​respectively corresponding to the code snippets are the same, it is determined that the application is securely executed in the trusted execution environment.

[0144] As an example, the measurement values ​​of each code snippet of the application are measured by each slave node in the TEE. When each slave node currently executes each code snippet of the application, the measurement values ​​of each code snippet obtained are credible based on the TEE hardware.

[0145] In other words, when the respective slave nodes are currently executing respective code fragments of the application, it is determined that the application is securely executed in the trusted execution environment.

[0146] As an example, when the comparison result indicates that the reference value and the metric value corresponding to a certain code fragment among the code fragments are different, it is determined that the application is not securely executed in the trusted execution environment. In other words, when the code fragments currently executed by each slave node are not the code fragments of the application, it is determined that the application is not securely executed in the trusted execution environment.

[0147] In the embodiment of the present application, the following advantages are possessed:

[0148] (1) Based on the master-worker architecture in the TEE, the benchmark values ​​corresponding to each code snippet of the application are obtained from the master node, and the measurement values ​​corresponding to the code snippets of the application executed by each slave node are obtained. Then, the benchmark values ​​and measurement values ​​corresponding to each code snippet are compared. When the comparison result indicates that the benchmark values ​​and measurement values ​​corresponding to each code snippet are the same, it is determined that the application is securely executed in the trusted execution environment. When it is determined that the application is securely executed in the trusted execution environment, it can be ensured that data is securely processed in the trusted execution environment.

[0149] (2) The Master-Worker architecture of cloud computing and big data computing is integrated to propose a distributed configuration method for TEE throughout its entire life cycle, ensuring that users can effectively configure or deploy applications, such as big data applications, in the TEE environment when using TEE-based cloud computing and big data resources.

[0150] See also Figure 3 , Figure 3 Schematic diagram of the implementation process of the information transmission method of the embodiment of the present application, applied to the first node, the first node is the master node in the trusted execution environment, such as Figure 3 As shown, the method comprises step 301:

[0151] Step 301: Sending first information to a first device; the first information includes reference values ​​corresponding to each code fragment of an application; each code fragment of the application is executed by each slave node in a trusted execution environment;

[0152] Among them, the first device compares the first information with the second information sent by each of the slave nodes to obtain a comparison result, and based on the comparison result, determines whether the application is securely executed in the trusted execution environment; the second information includes a measurement value corresponding to the code snippet of the application executed by the corresponding slave node.

[0153] As an example, the trusted execution environment may also be referred to as a TEE cluster.

[0154] As an example, a master node and at least one slave node may be deployed in the trusted execution environment. The master node may be represented by TA-Driver, and the slave node may be represented by TA-Worker. Assume that there are three slave nodes, represented as TA-Worker-1, TA-Worker-2, and TA-Worker-3.

[0155] As an example, the application may refer to a trusted application, which may refer to an application that is expected to be executed in the TEE, such as a big data application (Spark application, etc.).

[0156] In actual application, the first device may provide an application to the master node in the trusted execution environment, so that the master node in the trusted execution environment may deploy the application locally.

[0157] Based on this, in some embodiments, the method further includes:

[0158] The application program sent by the first device is obtained, and the application program is deployed locally.

[0159] In actual application, after the application is deployed in the master node of TEE, the master node can determine the benchmark values ​​corresponding to each code fragment of the application, and the benchmark value can be composed of two parts, namely a hash value and a token.

[0160] Based on this, in some embodiments, the method further includes:

[0161] Dividing the application into a plurality of code segments according to the data size of the application and the resource size of each of the slave nodes;

[0162] For each code snippet, do the following:

[0163] Generate a first hash value corresponding to the code snippet;

[0164] Generate a first token corresponding to the code snippet;

[0165] Using the first hash value and the first token as reference values ​​corresponding to the code snippet;

[0166] The first information is obtained according to the benchmark values ​​respectively corresponding to the code snippets of the application.

[0167] As an example, the data volume size of the application may refer to the size of data that can be processed by the application.

[0168] As an example, when the first device sends the application to the master node, the data size of the application may be sent to the master node.

[0169] As an example, the master node may store the resource size of each slave node.

[0170] As an example, a corresponding amount of data can be allocated to each slave node based on the data size of the application. The data size only needs to be less than or equal to the resource size of the slave node, and the sum of the data amounts allocated to each slave node is equal to the data size of the application.

[0171] That is to say, the master node (TA-Driver node) is responsible for task division, and the task division mechanism is determined by the master node (TA-Driver) according to its own mechanism, for example, it can be based on Spark technology, or based on the open source distributed resource management framework (MESOS) technology.

[0172] In some embodiments, the master node generates a first hash value corresponding to the code snippet, including:

[0173] The code snippet is mapped to the first hash value through a hash function.

[0174] As an example, the hash function may refer to a Hash function, which may be used to map data of any size to data of a fixed size, and a value returned by the Hash function may be referred to as a hash value.

[0175] In some embodiments, the master node generates a first token corresponding to the code snippet, including:

[0176] Obtaining an identity certification key corresponding to the application;

[0177] The identity certification key is used to generate a first token corresponding to the code snippet.

[0178] As an example, the identity authentication key may refer to AIK, where the AIK key is an asymmetric public-private key pair, which is randomly generated by the first device and sent to the master node.

[0179] As an example, the identity proof key can be used to sign the content of the code snippet to obtain a first token corresponding to the code snippet. For example, assuming that the code snippet is represented by TA-Slide and the first token is represented by Token, the AIK private key can be used to sign the content of TA-Slide to obtain a Token corresponding to TA-Slide.

[0180] In some embodiments, the method further comprises:

[0181] Each code snippet of the application is sent to a corresponding slave node respectively.

[0182] As an example, each slave node in the trusted execution environment respectively receives a code snippet of an application sent by the master node; performs the following operations on the code snippet: generates a second hash value corresponding to the code snippet; generates a second token corresponding to the code snippet; uses the second hash value and the second token as measurement values ​​corresponding to the code snippet; obtains the second information based on the measurement value corresponding to the code snippet of the executed application, and sends it to the first device.

[0183] In the embodiment of the present application, the following advantages are possessed:

[0184] (1) Based on the master-worker architecture in the TEE, the master node obtains the benchmark values ​​corresponding to each code snippet of the application, and the slave nodes obtain the measurement values ​​corresponding to the code snippets of the application respectively executed. Then, the benchmark values ​​and measurement values ​​corresponding to each code snippet are compared. When the comparison result indicates that the benchmark values ​​and measurement values ​​corresponding to each code snippet are the same, it is determined that the application is securely executed in the trusted execution environment. When it is determined that the application is securely executed in the trusted execution environment, it can be ensured that the data is securely processed in the trusted execution environment.

[0185] (2) The Master-Worker architecture of cloud computing and big data computing is integrated to propose a distributed configuration method for TEE throughout its entire life cycle, ensuring that users can effectively configure or deploy applications, such as big data applications, in the TEE environment when using TEE-based cloud computing and big data resources.

[0186] See also Figure 4 , Figure 4 Schematic diagram of the implementation process of the information transmission method of the embodiment of the present application, which is applied to the second node, where the second node is a slave node in the trusted execution environment, such as Figure 4 As shown, the method includes step 401:

[0187] Step 401: Sending second information to a first device; the second information includes a metric value corresponding to a code snippet of an application program executed by the slave node;

[0188] Among them, the first device compares the first information sent by the master node in the trusted execution environment with the second information sent by each of the slave nodes to obtain a comparison result, and based on the comparison result, determines whether the application is securely executed in the trusted execution environment; the first information includes benchmark values ​​corresponding to each code fragment of the application; and each code fragment of the application is executed by each slave node in the trusted execution environment.

[0189] In some embodiments, the method further comprises:

[0190] Receive a code snippet of an application program sent by the master node;

[0191] Perform the following actions for the code snippet:

[0192] Generate a second hash value corresponding to the code snippet;

[0193] Generate a second token corresponding to the code snippet;

[0194] Using the second hash value and the second token as a metric value corresponding to the code snippet;

[0195] The second information is obtained according to the metric value corresponding to the code snippet of the executed application program.

[0196] In some embodiments, generating a second hash value corresponding to the code snippet includes:

[0197] The code snippet is mapped to the second hash value through a hash function.

[0198] As an example, the hash function may refer to a Hash function, which may be used to map data of any size to data of a fixed size, and a value returned by the Hash function may be referred to as a hash value.

[0199] In some embodiments, generating a second token corresponding to the code snippet includes:

[0200] Obtaining an identity certification key corresponding to the application;

[0201] A second token corresponding to the code snippet is generated using the identity certification key.

[0202] As an example, the identity authentication key may refer to AIK, where the AIK key is an asymmetric public-private key pair, which is randomly generated by the first device and sent to the slave node.

[0203] As an example, the identity proof key can be used to sign the content of the code snippet to obtain a second token corresponding to the code snippet. For example, assuming that the code snippet is represented by TA-Slide and the second token is represented by Token, the AIK private key can be used to sign the content of TA-Slide to obtain the Token corresponding to TA-Slide.

[0204] In actual application, when the first device initiates a remote attestation challenge to each slave node in the trusted execution environment, each slave node may send the corresponding second information to the first device.

[0205] Based on this, in some embodiments, sending the second information to the first device includes:

[0206] receiving a remote attestation challenge sent by the first device;

[0207] The second information is sent to the first device as a remote certification result.

[0208] In the embodiment of the present application, the following advantages are possessed:

[0209] Based on the Master-Worker architecture in TEE, it is possible to obtain the benchmark values ​​corresponding to each code snippet of the application from the master node, obtain the measurement values ​​corresponding to the code snippets of the application executed by each slave node, and then compare the benchmark values ​​and measurement values ​​corresponding to each code snippet. When the comparison result indicates that the benchmark values ​​and measurement values ​​corresponding to each code snippet are the same, it is determined that the application is securely executed in the trusted execution environment. When it is determined that the application is securely executed in the trusted execution environment, it can be ensured that the data is securely processed in the trusted execution environment.

[0210] (2) The Master-Worker architecture of cloud computing and big data computing is integrated to propose a distributed configuration method for TEE throughout its entire life cycle, ensuring that users can effectively configure or deploy applications, such as big data applications, in the TEE environment when using TEE-based cloud computing and big data resources.

[0211] See also Figure 5 , Figure 5 Schematic diagram of the system architecture of the information transmission method of the present application embodiment. Figure 5 As shown, the system comprises:

[0212] TA-Driver represents the master node deployed in the TEE cluster. As the master node of the trusted application (TA, TrustApplication), it is responsible for calculating the TA load, determining each code snippet (TA-slide) of TA, and allocating each code snippet of TA to each slave node deployed in the TEE cluster so that each slave node executes its own code snippet; it is also used to send first information to the first device; the first information includes the benchmark values ​​corresponding to each code snippet of TA.

[0213] TA-Worker, which represents multiple slave nodes deployed in the TEE cluster, serves as a slave node of the TA and is responsible for executing each code snippet (TA-slide) of the TA; it is also used to send second information to the first device; the second information includes the measurement value corresponding to the code snippet of the TA executed by the corresponding slave node.

[0214] Trusted Application Manager (TAM) refers to a first device responsible for providing the TA to the master node and determining whether the TA is securely executed in the TEE based on the first information and the second information.

[0215] Combine the following Figure 5 The system architecture shown describes the implementation process of the information transmission method of the embodiment of the present application, which may specifically include the following steps:

[0216] Step 1: The first device (TAM) sends the TA to the master node (TA-Driver) in the TEE cluster.

[0217] Here, TA represents a big data application that needs to run in TEE, such as a Spark application.

[0218] Here, the first device (TAM) generates the identity authentication key (AIK) corresponding to TA, and sends the AIK corresponding to TA to the master node (TA-Driver) and slave node (TA-Worker) in the TEE cluster. The first device (TAM) randomly generates an AIK key as TA's AIK, and the AIK key is an asymmetric public-private key pair.

[0219] Here, the first device (TAM) sends the AIK corresponding to the TA to the master node (TA-Driver) and the slave node (TA-Worker).

[0220] Step 2: The master node (TA-Driver) divides TA into multiple TA-slides according to the amount of data and computing resources required to be processed for this task, generates a benchmark value for each TA-slide, and feeds back the benchmark value of each TA-slide to the first device (TAM).

[0221] Here, the reference value is usually the first hash value and the first token of the executable code segment in the memory.

[0222] Here, the master node (TA-Driver) maps each TA-slide to a first hash value through a hash function. The master node (TA-Driver) generates a first token for each TA-slide using the AIK corresponding to the TA. The first token is obtained by signing the content of the TA-slide using the AIK corresponding to the TA. The first token can be used as the identity proof of the TA-slide.

[0223] Step 3: The master node (TA-Driver) sends each TA-slide to the corresponding slave node (TA-Worker) in the TEE cluster.

[0224] Here, the Token corresponding to each TA-slide may also be sent to the corresponding slave node (TA-Worker).

[0225] Step 4: Generate the metric value corresponding to the corresponding TA-slide from the node (TA-Worker).

[0226] Here, the slave node (TA-Worker) maps each TA-slide to a second hash value through a hash function. The slave node (TA-Worker) generates a second token for each TA-slide using the AIK corresponding to the TA. The second token is obtained by signing the content of the TA-slide using the AIK corresponding to the TA, and the second token can be used as the identity proof of the TA-slide.

[0227] Step 5: The first device (TAM) performs a remote attestation challenge on the slave node (TA-Worker).

[0228] Step 6: The slave node (TA-Worker) generates a remote attestation result through the TEE hardware and feeds the result back to the first device (TAM).

[0229] Step 7: The first device (TAM) compares the reference value of each TA-slide sent by the master node (TA-Driver) with the measurement value of the TA-slide sent by each slave node (TA-Worker) to determine whether the TA is run securely in the TEE.

[0230] Here, when the comparison result indicates that the reference values ​​and the measurement values ​​corresponding to the respective code snippets are the same, it is determined that the application is securely executed in the trusted execution environment.

[0231] In this example, the following advantages are achieved:

[0232] (1) Based on the master-worker architecture in the TEE, the master node obtains the benchmark values ​​corresponding to each code snippet of the application, and the slave nodes obtain the measurement values ​​corresponding to the code snippets of the application respectively executed. Then, the benchmark values ​​and measurement values ​​corresponding to each code snippet are compared. When the comparison result indicates that the benchmark values ​​and measurement values ​​corresponding to each code snippet are the same, it is determined that the application is securely executed in the trusted execution environment. When it is determined that the application is securely executed in the trusted execution environment, it can be ensured that the data is securely processed in the trusted execution environment.

[0233] (2) The Master-Worker architecture of cloud computing and big data computing is integrated to propose a distributed configuration method for TEE throughout its entire life cycle, ensuring that users can effectively configure or deploy applications, such as big data applications, in the TEE environment when using TEE-based cloud computing and big data resources.

[0234] In order to implement the information transmission method of the embodiment of the present application, the embodiment of the present application also provides an information transmission device, which is arranged in the first device. Figure 6 Schematic diagram of the structure of the information transmission device according to the embodiment of the present application. Figure 6 As shown, the device comprises:

[0235] The receiving module 61 is configured to receive first information sent by a master node in a trusted execution environment; the first information includes benchmark values ​​corresponding to respective code snippets of an application program; the respective code snippets of the application program are executed by respective slave nodes in the trusted execution environment; and receive second information sent by respective slave nodes in the trusted execution environment; the second information includes metric values ​​corresponding to the code snippets of the application program executed by the corresponding slave nodes;

[0236] The processing module 62 is used to compare the first information with the second information respectively sent by each of the slave nodes to obtain a comparison result, and based on the comparison result, determine whether the application is securely executed in the trusted execution environment.

[0237] In one embodiment, the processing module 62 is used to:

[0238] Perform the following operations for each code snippet of the application:

[0239] The benchmark value and the metric value corresponding to the code snippet are compared to obtain a comparison result.

[0240] In one embodiment, the processing module 62 is used to:

[0241] When the comparison result indicates that the reference values ​​and the measurement values ​​respectively corresponding to the code snippets are the same, it is determined that the application is securely executed in the trusted execution environment.

[0242] In one embodiment, the device is further used for:

[0243] Sending the application to the master node;

[0244] The application is used by the master node to perform the following operations:

[0245] deploying the application locally;

[0246] According to the data size of the application and the resource size of each slave node, the application is divided into a plurality of code fragments; the benchmark values ​​corresponding to each code fragment of the application are determined; and the first information is obtained according to the benchmark values ​​corresponding to each code fragment of the application;

[0247] Each code snippet of the application is sent to a corresponding slave node respectively, so that each slave node determines a metric value corresponding to the code snippet of the application executed by each slave node; and obtains the corresponding second information according to the metric value corresponding to the code snippet of the application executed by each slave node.

[0248] In one embodiment, the device is further used for:

[0249] A remote attestation challenge is sent to each of the slave nodes respectively, so that each of the slave nodes sends the second information corresponding to the respective slave nodes as a remote attestation result to the first device.

[0250] In actual application, the receiving module 61 can be implemented by a communication interface in the information transmission device; the processing module 62 can be implemented by a processor in the information transmission device.

[0251] It should be noted that: the information transmission device provided in the above embodiment only uses the division of the above program modules as an example when performing information transmission. In actual applications, the above processing can be assigned to different program modules as needed, that is, the internal structure of the device is divided into different program modules to complete all or part of the processing described above. In addition, the information transmission device provided in the above embodiment and the information transmission method embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.

[0252] In order to implement the information transmission method of the embodiment of the present application, the embodiment of the present application also provides an information transmission device, which is arranged at the first node. Figure 7 Schematic diagram of the structure of the information transmission device according to the embodiment of the present application. Figure 7As shown, the device comprises:

[0253] A first sending module 71 is used to send first information to a first device; the first information includes reference values ​​corresponding to each code fragment of the application; each code fragment of the application is executed by each slave node in the trusted execution environment;

[0254] Among them, the first device compares the first information with the second information sent by each of the slave nodes to obtain a comparison result, and based on the comparison result, determines whether the application is securely executed in the trusted execution environment; the second information includes a measurement value corresponding to the code snippet of the application executed by the corresponding slave node.

[0255] In one embodiment, the device is further used for:

[0256] The application program sent by the first device is obtained, and the application program is deployed locally.

[0257] In addition, according to at least one embodiment of the present application, the device is also used for:

[0258] Dividing the application into a plurality of code segments according to the data size of the application and the resource size of each of the slave nodes;

[0259] For each code snippet, do the following:

[0260] Generate a first hash value corresponding to the code snippet;

[0261] Generate a first token corresponding to the code snippet;

[0262] Using the first hash value and the first token as reference values ​​corresponding to the code snippet;

[0263] The first information is obtained according to the benchmark values ​​respectively corresponding to the code snippets of the application.

[0264] In one embodiment, the device is further used for:

[0265] The code snippet is mapped to the first hash value through a hash function.

[0266] In one embodiment, the device is further used for:

[0267] Obtaining an identity certification key corresponding to the application;

[0268] The identity certification key is used to generate a first token corresponding to the code snippet.

[0269] In one embodiment, the first sending module 71 is further used for:

[0270] Each code snippet of the application is sent to a corresponding slave node respectively.

[0271] In actual application, the first sending module 71 can be implemented by a communication interface in an information transmission device.

[0272] It should be noted that: the information transmission device provided in the above embodiment only uses the division of the above program modules as an example when performing information transmission. In actual applications, the above processing can be assigned to different program modules as needed, that is, the internal structure of the device is divided into different program modules to complete all or part of the processing described above. In addition, the information transmission device provided in the above embodiment and the information transmission method embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.

[0273] In order to implement the information transmission method of the embodiment of the present application, the embodiment of the present application also provides an information transmission device, which is arranged at the second node. Figure 8 Schematic diagram of the structure of the information transmission device according to the embodiment of the present application. Figure 8 As shown, the device comprises:

[0274] A second sending module 81 is used to send second information to the first device; the second information includes a metric value corresponding to a code snippet of the application program executed by the slave node;

[0275] Among them, the first device compares the first information sent by the master node in the trusted execution environment with the second information sent by each of the slave nodes to obtain a comparison result, and based on the comparison result, determines whether the application is securely executed in the trusted execution environment; the first information includes benchmark values ​​corresponding to each code fragment of the application; and each code fragment of the application is executed by each slave node in the trusted execution environment.

[0276] In one embodiment, the device is further used for:

[0277] Receive a code snippet of an application program sent by the master node;

[0278] Perform the following actions for the code snippet:

[0279] Generate a second hash value corresponding to the code snippet;

[0280] Generate a second token corresponding to the code snippet;

[0281] Using the second hash value and the second token as a metric value corresponding to the code snippet;

[0282] The second information is obtained according to the metric value corresponding to the code snippet of the executed application program.

[0283] In one embodiment, the second sending module 81 is used to:

[0284] receiving a remote attestation challenge sent by the first device;

[0285] The second information is sent to the first device as a remote certification result.

[0286] In actual application, the second sending module 81 can be implemented by a communication interface in the information transmission device.

[0287] It should be noted that: the information transmission device provided in the above embodiment only uses the division of the above program modules as an example when performing information transmission. In actual applications, the above processing can be assigned to different program modules as needed, that is, the internal structure of the device is divided into different program modules to complete all or part of the processing described above. In addition, the information transmission device provided in the above embodiment and the information transmission method embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.

[0288] In order to implement the information transmission method of the embodiment of the present application, the embodiment of the present application also provides an information transmission system. Fig. 9 Schematic diagram of the structure of the information transmission system of the present application embodiment. Fig. 9 As shown, the system comprises:

[0289] A master node in a trusted execution environment is used to send first information to a first device; the first information includes reference values ​​corresponding to each code fragment of an application program; each code fragment of the application program is executed by each slave node in the trusted execution environment;

[0290] Each slave node in the trusted execution environment is used to send second information to the first device respectively; the second information includes a measurement value corresponding to a code fragment of an application program executed by the slave node;

[0291] The first device is used to receive the first information sent by the master node and the second information sent by each of the slave nodes; compare the first information with the second information sent by each of the slave nodes to obtain a comparison result, and based on the comparison result, determine whether the application is securely executed in the trusted execution environment.

[0292] It should be noted that the process of the master node, the slave node, and the first device jointly implementing information transmission has been described above and will not be repeated here.

[0293] The present application also provides a first device, such as Fig.10 As shown, including:

[0294] The first communication interface 101 is capable of exchanging information with other first devices;

[0295] The first processor 102 is connected to the first communication interface 101 and is used to execute the method provided by one or more technical solutions of the first device side when running a computer program. The computer program is stored in the first memory 103.

[0296] It should be noted that: the specific processing process of the first processor 102 and the first communication interface 101 is detailed in the method embodiment and will not be repeated here.

[0297] Of course, in actual application, the various components in the first device 100 are coupled together through the bus system 104. It can be understood that the bus system 104 is used to realize the connection and communication between these components. In addition to the data bus, the bus system 104 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clarity, Fig.10 Various buses are labeled as bus system 104 .

[0298] The first memory 103 in the embodiment of the present application is used to store various types of data to support the operation of the first device 100. Examples of such data include: any computer program used to operate on the first device 100.

[0299] The method disclosed in the above embodiment of the present application can be applied to the first processor 102, or implemented by the first processor 102. The first processor 102 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware or software instructions in the first processor 102. The above-mentioned first processor 102 may be a general-purpose processor, a digital data processor (DSP, Digital Signal Processor), or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The first processor 102 can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiments of the present application. A general-purpose processor may be a microprocessor or any conventional processor, etc. In combination with the steps of the method disclosed in the embodiment of the present application, it can be directly embodied as a hardware decoding processor to execute, or it can be executed by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium, which is located in the first memory 103, and the first processor 102 reads the information in the first memory 103 and completes the steps of the above method in combination with its hardware.

[0300] The embodiment of the present application also provides a first node, such as Fig.11 As shown, including:

[0301] The second communication interface 111 is capable of exchanging information with other first devices;

[0302] The second processor 112 is connected to the second communication interface 111 and is used to execute the method provided by one or more technical solutions of the first node side when running a computer program. The computer program is stored in the second memory 113.

[0303] It should be noted that: the specific processing process of the second processor 112 and the second communication interface 111 is detailed in the method embodiment, which will not be repeated here.

[0304] Of course, in actual application, the various components in the first node 110 are coupled together through the bus system 114. It can be understood that the bus system 114 is used to realize the connection and communication between these components. In addition to the data bus, the bus system 114 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, Fig.11 Various buses are labeled as bus system 114 .

[0305] The second memory 113 in the embodiment of the present application is used to store various types of data to support the operation of the first node 110. Examples of such data include: any computer program used to operate on the first node 110.

[0306] The method disclosed in the above embodiment of the present application can be applied to the second processor 112, or implemented by the second processor 112. The second processor 112 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the second processor 112. The above-mentioned second processor 112 may be a general-purpose processor, a digital data processor (DSP, Digital Signal Processor), or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The second processor 112 can implement or execute the methods, steps and logic block diagrams disclosed in the embodiments of the present application. The general-purpose processor may be a microprocessor or any conventional processor, etc. In combination with the steps of the method disclosed in the embodiment of the present application, it can be directly embodied as a hardware decoding processor to execute, or it can be executed by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium, which is located in the second memory 113, and the second processor 112 reads the information in the second memory 113 and completes the steps of the above method in combination with its hardware.

[0307] The embodiment of the present invention further provides a second node, such as Fig.12 As shown, including:

[0308] The third communication interface 121 is capable of exchanging information with other devices;

[0309] The third processor 122 is connected to the third communication interface 121 and is used to execute the method provided by one or more technical solutions of the second node side when running a computer program. The computer program is stored in the third memory 123.

[0310] It should be noted that the specific processing process of the third processor 122 and the third communication interface 121 is detailed in the method embodiment and will not be repeated here.

[0311] Of course, in actual application, the various components in the second node 120 are coupled together through the bus system 124. It can be understood that the bus system 124 is used to realize the connection and communication between these components. In addition to the data bus, the bus system 124 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clarity, Fig.12 Various buses are labeled as bus system 124 .

[0312] The third memory 123 in the embodiment of the present application is used to store various types of data to support the operation of the second node 120. Examples of such data include: any computer program used to operate on the second node 120.

[0313] The method disclosed in the above embodiment of the present application can be applied to the third processor 122, or implemented by the third processor 122. The third processor 122 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the third processor 122. The above-mentioned third processor 122 may be a general third processor, a digital data third processor (DSP, Digital Signal Processor), or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The third processor 122 can implement or execute the methods, steps and logic block diagrams disclosed in the embodiments of the present application. The general third processor may be a micro third processor or any conventional third processor, etc. In combination with the steps of the method disclosed in the embodiment of the present application, it can be directly embodied as a hardware decoding third processor to execute, or a combination of hardware and software modules in the decoding third processor to execute. The software module may be located in a storage medium, which is located in the third memory 123, and the third processor 122 reads the information in the third memory 123 and completes the steps of the above method in combination with its hardware.

[0314] In an exemplary embodiment, the first device 100, the first node 110, and the second node 120 may be implemented by one or more application-specific integrated circuits (ASICs), DSPs, programmable logic devices (PLDs), complex programmable logic devices (CPLDs), field-programmable gate arrays (FPGAs), general-purpose processors, controllers, microcontrollers (MCUs), microprocessors, or other electronic components to execute the aforementioned method.

[0315] It can be understood that the memory (first memory 103, second memory 113) of the embodiment of the present application can be a volatile memory or a non-volatile memory, and can also include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic random access memory (FRAM), a flash memory, a magnetic surface memory, an optical disc, or a compact disc read-only memory (CD-ROM); the magnetic surface memory can be a disk memory or a tape memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), synchronous static random access memory (SSRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct RAM bus random access memory (DRRAM).The memories described in the embodiments of the present application are intended to include, but are not limited to, these and any other suitable types of memories.

[0316] In an exemplary embodiment, the present application also provides a storage medium, namely a computer storage medium, specifically a computer-readable storage medium, for example, a memory storing a computer program, and the computer program can be executed by the first processor 102 of the first device 100 to complete the steps of the first device side method. The computer-readable storage medium can be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface storage, optical disk, or CD-ROM.

[0317] It should be noted that: "first", "second", etc. are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0318] In addition, the technical solutions described in the embodiments of the present application can be combined arbitrarily without conflict.

[0319] The above description is only a preferred embodiment of the present application and is not intended to limit the protection scope of the present application.

Claims

1. An information transmission method, characterized in that: Applied to a first device, the method includes: Receiving first information sent by a master node in a trusted execution environment; the first information includes benchmark values ​​corresponding to respective code snippets of an application; and each code snippet of the application is executed by each slave node in the trusted execution environment; receiving second information respectively sent by each slave node in the trusted execution environment; the second information including a metric value corresponding to a code snippet of an application program executed by the corresponding slave node; The first information is compared with the second information respectively sent by each of the slave nodes to obtain a comparison result, and based on the comparison result, it is determined whether the application is securely executed in the trusted execution environment.

2. The method according to claim 1, characterized in that The comparing the first information with the second information respectively sent by each of the slave nodes to obtain a comparison result includes: For each code snippet of the application, perform the following: The benchmark value and the metric value corresponding to the code snippet are compared to obtain a comparison result.

3. The method according to claim 1 or 2, characterized in that The determining, based on the comparison result, whether the application is securely executed in the trusted execution environment includes: When the comparison result indicates that the reference values ​​and the metric values ​​corresponding to the respective code snippets are the same, it is determined that the application is securely executed in the trusted execution environment.

4. The method according to claim 1, wherein The method further comprises: Sending the application to the master node; The application is used by the master node to perform the following operations: deploying the application locally; Dividing the application into a plurality of code segments according to the data size of the application and the resource size of each of the slave nodes; determining a benchmark value corresponding to each of the code segments of the application; and obtaining the first information according to the benchmark value corresponding to each of the code segments of the application; Each code snippet of the application is sent to a corresponding slave node respectively, so that each slave node determines a metric value corresponding to the code snippet of the application executed by each slave node; and obtains the corresponding second information according to the metric value corresponding to the code snippet of the application executed by each slave node.

5. The method according to claim 1, wherein The method further comprises: A remote attestation challenge is sent to each of the slave nodes respectively, so that each of the slave nodes sends the second information corresponding to the respective slave nodes as a remote attestation result to the first device.

6. An information transmission method, characterized in that: Applied to a first node, where the first node is a master node in a trusted execution environment, the method includes: Sending first information to a first device; the first information includes benchmark values ​​corresponding to respective code snippets of an application; and each code snippet of the application is executed by each slave node in the trusted execution environment; Among them, the first device compares the first information with the second information sent by each of the slave nodes to obtain a comparison result, and based on the comparison result, determines whether the application is securely executed in the trusted execution environment; the second information includes a measurement value corresponding to the code fragment of the application executed by the corresponding slave node.

7. The method according to claim 6, characterized in that The method further comprises: Obtain the application sent by the first device, and deploy the application locally.

8. The method according to claim 6, characterized in that The method further comprises: Dividing the application into a plurality of code segments according to the data size of the application and the resource size of each of the slave nodes; For each code snippet, do the following: Generate a first hash value corresponding to the code snippet; generating a first token corresponding to the code snippet; Using the first hash value and the first token as reference values ​​corresponding to the code snippet; The first information is obtained according to the benchmark values ​​corresponding to the respective code snippets of the application.

9. The method according to claim 8, characterized in that Generating a first hash value corresponding to the code snippet includes: The code snippet is mapped to the first hash value through a hash function.

10. The method according to claim 8, characterized in that Generating a first token corresponding to the code snippet includes: Obtaining an identity authentication key corresponding to the application; A first token corresponding to the code snippet is generated using the identity certification key.

11. The method according to claim 8, characterized in that The method further comprises: Each code snippet of the application is sent to a corresponding slave node.

12. An information transmission method, characterized in that: Applied to a second node, where the second node is a slave node in a trusted execution environment, the method includes: Sending second information to the first device; the second information includes a metric value corresponding to a code snippet of the application executed by the slave node; Among them, the first device compares the first information sent by the master node in the trusted execution environment with the second information sent by each of the slave nodes to obtain a comparison result, and based on the comparison result, determines whether the application is securely executed in the trusted execution environment; the first information includes the benchmark values ​​corresponding to each code fragment of the application; and each code fragment of the application is executed by each slave node in the trusted execution environment.

13. The method according to claim 12, characterized in that The method further comprises: Receive a code snippet of the application sent by the master node; Perform the following actions for the code snippet: Generate a second hash value corresponding to the code snippet; generating a second token corresponding to the code snippet; Using the second hash value and the second token as a metric value corresponding to the code snippet; The second information is obtained according to the metric value corresponding to the code snippet of the executed application program.

14. The method according to claim 12, characterized in that The sending the second information to the first device includes: receiving a remote attestation challenge sent by the first device; The second information is sent to the first device as a remote certification result.

15. An information transmission device, characterized in that: include: A receiving module, configured to receive first information sent by a master node in a trusted execution environment; The first information includes benchmark values ​​corresponding to respective code snippets of the application; Each code segment of the application is executed by each slave node in the trusted execution environment; and second information is received from each slave node in the trusted execution environment, wherein the second information includes a metric value corresponding to the code segment of the application executed by the corresponding slave node; The processing module is configured to compare the first information with the second information respectively sent by each of the slave nodes to obtain a comparison result, and based on the comparison result, determine whether the application is securely executed in the trusted execution environment.

16. An information transmission device, characterized in that: include: A first sending module is configured to send first information to a first device; the first information includes reference values ​​corresponding to respective code snippets of the application; Each code segment of the application is executed by each slave node in the trusted execution environment; The first device compares the first information with the second information respectively sent by each of the slave nodes to obtain a comparison result, and determines whether the application is securely executed in the trusted execution environment based on the comparison result; The second information includes a metric value corresponding to a code snippet of an application program executed by the corresponding slave node.

17. An information transmission device, characterized in that: include: A second sending module, configured to send second information to the first device; The second information includes a metric value corresponding to a code snippet of the application program executed by the slave node; Among them, the first device compares the first information sent by the master node in the trusted execution environment with the second information sent by each of the slave nodes to obtain a comparison result, and based on the comparison result, determines whether the application is securely executed in the trusted execution environment; the first information includes the benchmark values ​​corresponding to each code fragment of the application; and each code fragment of the application is executed by each slave node in the trusted execution environment.

18. An information transmission system, characterized in that: include: A master node in a trusted execution environment is configured to send first information to a first device; the first information includes benchmark values ​​corresponding to respective code snippets of an application program; Each code segment of the application is executed by each slave node in the trusted execution environment; Each slave node in the trusted execution environment is configured to send second information to the first device respectively; the second information includes a metric value corresponding to a code fragment of an application program executed by the slave node; The first device is configured to receive the first information sent by the master node and the second information sent by each of the slave nodes; The first information is compared with the second information respectively sent by each of the slave nodes to obtain a comparison result, and based on the comparison result, it is determined whether the application is securely executed in the trusted execution environment.

19. A first device, characterized in that: comprising a processor and a memory for storing a computer program capable of being executed on the processor, Wherein, when the processor is used to run the computer program, it executes the steps of the method according to any one of claims 1 to 5.

20. A first node, characterized in that: comprising a processor and a memory for storing a computer program capable of being executed on the processor, Wherein, when the processor is used to run the computer program, it executes the steps of the method according to any one of claims 6 to 11.

21. A second node, characterized in that: comprising a processor and a memory for storing a computer program capable of being executed on the processor, Wherein, when the processor is used to run the computer program, it executes the steps of the method according to any one of claims 12 to 14.

22. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 5, or implements the steps of the method according to any one of claims 6 to 11, or implements the steps of the method according to any one of claims 12 to 14.