Information transmission method and device, related equipment and computer readable storage medium
By establishing a trusted connection and remote attestation mechanism in TEE, the problem of data demanders being unable to trust the privacy computing platform is solved, and the security protection of data privacy computing is achieved.
Patent Information
- Application Number
- CN202310343874.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-31
- Publication Date
- 2024-10-01
AI Technical Summary
In a solution that uses a Trusted Execution Environment (TEE) to protect data privacy, the data demander cannot remotely prove that it trusts the privacy computing platform, making it impossible to achieve security protection of the data privacy computing process.
By establishing a trusted connection between the deployment server in the TEE and the client created by the privacy computing requester, the server sends remote proof evidence information to the client so that the client can verify whether the deployment environment of the TEE is correct, thereby determining whether there is any damage to the TEE. Trust, and perform data privacy computations in TEE with trust.
The privacy computing requester realizes the security protection of the data privacy computing process through the privacy computing platform, ensuring the confidentiality and integrity of the data in the TEE.
Smart Images

Figure CN118740385A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data security technology, and in particular to an information transmission method, apparatus, related equipment and computer-readable storage medium. Background Art
[0002] In related technologies, some solutions use secure multi-party computing (MPC) (such as privacy intersection, homomorphic encryption, differential privacy) and other methods to achieve data privacy protection in federated learning, and some solutions use trusted execution environment (TEE) to protect data privacy. However, in the solution that uses TEE to protect data privacy, the data demander, that is, the privacy computing requester, cannot trust the privacy computing platform through remote proof, which makes it impossible for the data demander to achieve security protection for the data privacy computing process through the privacy computing platform. Summary of the invention
[0003] In order to solve the technical problems existing in the related art, the embodiments of the present application provide an information transmission method, apparatus, related equipment and computer-readable storage medium.
[0004] To achieve the above purpose, the technical solution of the embodiment of the present application is implemented as follows:
[0005] In a first aspect, an embodiment of the present application provides an information transmission method, which is applied to a server, and the server is deployed in a TEE; the method includes:
[0006] Receive a data privacy computing request initiated by a privacy computing requester;
[0007] In response to the data privacy computing request, a trusted channel is established with a client; the client is created by the corresponding privacy computing requester;
[0008] First information is sent to the client through the trusted channel; the first information is used for the client to determine whether to trust the TEE, and if the TEE is trusted, perform data privacy calculations in the TEE.
[0009] In the above scheme, the method further includes:
[0010] Invoking a trusted root entity so that the trusted root entity generates the first information;
[0011] The first information fed back by the trusted root entity is received.
[0012] In the above scheme, the first information is a first signature result, the first signature result is the result obtained by the trusted root entity by signing the measurement result, and the measurement result is the result obtained by the trusted root entity by measuring the privacy computing software module.
[0013] In the above scheme, the method further comprises:
[0014] Receiving a configuration request initiated by the privacy computing requester;
[0015] In response to the configuration request, configuring the privacy computing software module;
[0016] Among them, the privacy computing software module includes at least one of the following: a federated learning module; a multi-party secure computing module; the privacy computing software module is deployed in the TEE.
[0017] In the above solution, the first signature result is obtained by the trusted root entity signing the measurement result using the public key corresponding to the certificate in the trusted root entity.
[0018] In a second aspect, an embodiment of the present application further provides another information transmission method, which is applied to a client, and the method includes:
[0019] Receiving first information sent by a server through a trusted channel; the server is deployed in TEE; the trusted channel is a channel established between the server and the client in response to a data privacy computing request initiated by a privacy computing requester; the client is created by the corresponding privacy computing requester;
[0020] Based on the first information, determine whether to trust the TEE, and if the TEE is trusted, perform data privacy calculations in the TEE.
[0021] In the above solution, the method further includes: obtaining second information;
[0022] The determining, based on the first information, whether to trust the TEE includes:
[0023] Based on the first information and the second information, determine whether to trust the TEE.
[0024] In the above solution, determining whether to trust the TEE based on the first information and the second information includes:
[0025] Comparing the first information with the second information to obtain a comparison result;
[0026] When the comparison result indicates that the first information is identical to the second information, determining that the TEE is trusted;
[0027] When the comparison result indicates that the first information is different from the second information, it is determined that the TEE is not trusted.
[0028] In the above solution, the obtaining of the second information includes:
[0029] Receiving the second information sent by a certification center (CA); the CA provides a trust endorsement of the TEE to the privacy computing requester;
[0030] The second information is a second signature result obtained by the CA signing a reference value; the reference value is the expected value that should be generated when measuring the privacy computing software module.
[0031] In the above scheme, the second signature result is a signature result obtained by the CA signing the reference value using a private key; the private key is stored by the trusted root entity.
[0032] In a third aspect, an embodiment of the present application provides an information transmission device, which is applied to a server, and the server is deployed in a TEE; the device includes:
[0033] A first receiving unit, configured to receive a data privacy computing request initiated by a privacy computing requester;
[0034] An establishing unit, configured to establish a trusted channel with a client in response to the data privacy computing request; the client is created by the corresponding privacy computing requester;
[0035] A sending unit is used to send first information to the client through the trusted channel; the first information is used for the client to determine whether to trust the TEE, and when the TEE is trusted, perform data privacy calculation in the TEE.
[0036] In a fourth aspect, an embodiment of the present application further provides another information transmission device, which is applied to a client, and the device includes:
[0037] A second receiving unit is configured to receive first information sent by a server through a trusted channel; the server is deployed in the TEE; the trusted channel is a channel established between the server and the client by responding to a data privacy computing request initiated by a privacy computing requester; the client is created by the corresponding privacy computing requester;
[0038] a determining unit, configured to determine whether to trust the TEE based on the first information;
[0039] A processing unit is configured to perform data privacy computations in the TEE while trust is established in the TEE.
[0040] In a fifth aspect, an embodiment of the present application further provides a server, which is deployed in the TEE; including:
[0041] A first communication interface, used to receive a data privacy computing request initiated by a privacy computing requester;
[0042] A first processor, configured to establish a trusted channel with a client in response to the data privacy computing request; the client is created by the corresponding privacy computing requester;
[0043] The first communication interface is also used to send first information to the client through the trusted channel; the first information is used for the client to determine whether to trust the TEE, and if the TEE is trusted, perform data privacy calculations in the TEE.
[0044] In a sixth aspect, an embodiment of the present application further provides a client, including:
[0045] A second communication interface is used to receive first information sent by a server through a trusted channel; the server is deployed in the TEE; the trusted channel is a channel established between the server and the client in response to a data privacy computing request initiated by a privacy computing requester; the client is created by the corresponding privacy computing requester;
[0046] The second processor is used to determine whether to trust the TEE based on the first information, and perform data privacy calculation in the TEE if the TEE is trusted.
[0047] In a seventh aspect, an embodiment of the present application further provides a server, comprising: a processor and a memory for storing a computer program that can be run on the processor,
[0048] Wherein, when the processor is used to run the computer program, it executes the steps of the server-side information transmission method described in the embodiment of the present application.
[0049] In an eighth aspect, an embodiment of the present application further provides a client, comprising: a processor and a memory for storing a computer program that can be run on the processor,
[0050] Wherein, when the processor is used to run the computer program, it executes the steps of the client-side information transmission method described in the embodiment of the present application.
[0051] In the ninth aspect, an embodiment of the present application further provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the information transmission method on the server side described in the embodiment of the present application are implemented, or the steps of the information transmission method on the client side described in the embodiment of the present application are implemented.
[0052] The information transmission method, apparatus, related equipment and computer-readable storage medium provided in the embodiments of the present application establish a trusted connection between a server deployed in the TEE and a client created by a privacy computing requester. After the trusted connection is established, the server sends the first information to the client through the trusted connection, so that the privacy computing requester corresponding to the client can accurately verify whether the deployment environment of the TEE is correct through the first information, and then determine whether to trust the TEE. When trust is established in the TEE, that is, when the privacy computing platform is trusted through remote proof, the data provided by the data owner is called and data privacy computing is performed in the TEE. In this way, the privacy computing requester can achieve security protection for the data privacy computing process through the privacy computing platform. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] Figure 1 The information transmission method of the present invention is shown in FIG. Figure 1 ;
[0054] Figure 2 The information transmission method of the present invention is shown in FIG. Figure 2 ;
[0055] Figure 3 A schematic diagram of the structure of the information transmission method according to an embodiment of the present application;
[0056] Figure 4 The interactive process of the information transmission method of the embodiment of the present application is shown as follows Figure 3 ;
[0057] Figure 5 The structure diagram of the information transmission device according to the embodiment of the present application is shown in FIG. Figure 1 ;
[0058] Figure 6 The structure diagram of the information transmission device according to the embodiment of the present application is shown in FIG. Figure 2 ;
[0059] Figure 7 A schematic diagram of the hardware structure of the server according to an embodiment of the present application;
[0060] Figure 8 This is a schematic diagram of the hardware composition structure of the client of an embodiment of the present application. DETAILED DESCRIPTION
[0061] The present application will be further described in detail below with reference to the accompanying drawings and embodiments.
[0062] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit this application.
[0063] The privacy computing of related technologies is mainly divided into federated learning (FL) computing, MPC and data computing within TEE. For example, the open source project Federated AI Technology Enabler (FATE) provides the software implementation of federated learning, and SPDZ provides the software implementation of secure multi-party computing. SPDZ is the abbreviation of the first letters of the authors of the secure multi-party computing protocol (Smart, Pastro, Damgard, Zakarias); there are also some solutions, such as the "Privacy Computing Method Supporting Interaction of Heterogeneous TEE Computing Nodes", which uses TEE to protect data security.
[0064] However, the privacy computing framework of related technologies does not mention how to deploy software function modules for federated learning computing and secure multi-party computing in TEE, how to remotely prove TEE, or how to use TEE to establish a trusted channel. The lack of this content will result in the privacy computing requester being unable to trust the privacy computing platform through remote proof, and thus the privacy computing requester being unable to achieve security protection for the data privacy computing process through the privacy computing platform.
[0065] Based on this, an embodiment of the present application proposes an information transmission method. In various embodiments of the present application, a trusted connection is established between a server deployed in the TEE and a client created by a privacy computing requester. After the trusted connection is established, the server sends a first information to the client through the trusted connection, so that the privacy computing requester corresponding to the client can accurately verify whether the deployment environment of the TEE is correct through the first information, and then determine whether to trust the TEE. When trust is established in the TEE, that is, when the privacy computing platform is trusted through remote proof, the data provided by the data owner is called, thereby performing data privacy computing in the TEE. In this way, the privacy computing requester can achieve security protection for the data privacy computing process through the privacy computing platform.
[0066] The embodiment of the present application provides an information transmission method, which is applied to a server, and the server is deployed in a TEE; Figure 1The information transmission method of the present invention is shown in FIG. Figure 1 ;like Figure 1 As shown, the method includes:
[0067] Step 101: Receive a data privacy computing request initiated by a privacy computing requester.
[0068] Here, the client corresponding to the privacy computing requester may include various types of client-side computing devices. For example, the client-side computing devices may include personal computer (PC) terminal devices, mobile terminal devices, Internet of Things devices, and other forms of smart devices with certain computing capabilities, etc.
[0069] In actual application, the server used in the information transmission method provided in the embodiment of the present application may specifically be a Transport Layer Security (TLS) server, i.e., a TLS Server; wherein TLS is used to provide confidentiality and data integrity between two communicating applications. The protocol consists of two layers: the TLS Record Protocol (TLSRecord) and the TLS Handshake Protocol (TLS Handshake). When the server used in the information transmission method is a TLS Server, the client corresponding to the privacy computing requester may specifically be a TLS client, i.e., a TLS Client.
[0070] Taking the server as TLS Server as an example, in one embodiment, when different privacy computing requesters want to perform federated learning or multi-party secure computing in TEE, they need to initiate a data privacy computing request to the TLS Server to request that data privacy computing be performed in TEE through the privacy computing software module.
[0071] Here, the privacy computing software module includes at least one of the following: a federated learning module; a multi-party secure computing module.
[0072] Step 102: In response to the data privacy computing request, a trusted channel is established with the client; the client is created by the corresponding privacy computing requester.
[0073] Here, the response is used to indicate the conditions or states on which the executed operations depend. When the dependent conditions or states are met, one or more operations executed may be in real time or have a set delay. Unless otherwise specified, there is no restriction on the order of execution of the multiple operations executed.
[0074] In one embodiment, in response to the data privacy computing request, establishing a trusted channel with the client can be achieved in the following manner: the server responds to the data privacy computing request sent by the privacy computing requester and uses TLS to establish a trusted channel with the client. In this way, the embodiment of the present application uses TLS to establish a trusted channel between the server and the client, and then realizes encrypted transmission of data through the established trusted channel, so as to provide data confidentiality and data integrity between the server and the client.
[0075] Step 103: Send first information to the client through the trusted channel; the first information is used for the client to determine whether to trust the TEE, and if the TEE is trusted, perform data privacy calculations in the TEE.
[0076] In actual application, TEE is a secure area allocated to the processor, running in an independent environment and in parallel with the operating system. The secure area can ensure that the confidentiality and integrity of the code and data loaded in the TEE are protected.
[0077] Here, the first information sent by the server to the client through the trusted channel is used to characterize the evidence information of the remote attestation. The evidence information of the remote attestation is generated and signed by the trusted root entity, and can accurately reflect whether the corresponding privacy computing software module is deployed inside the TEE. The privacy computing software module may, for example, include one of the following modules: a federated learning module; a multi-party secure computing module.
[0078] Based on this, in one embodiment, the method further includes:
[0079] Invoking a trusted root entity so that the trusted root entity generates the first information;
[0080] The first information fed back by the trusted root entity is received.
[0081] In actual application, the first information is a first signature result, which is the result obtained by the trusted root entity by signing the measurement result, and the measurement result is the result obtained by the trusted root entity by measuring the privacy computing software module.
[0082] Here, the trusted root entity is the trusted root in TEE, that is, the trusted root entity is deployed in TEE. Since the trusted root entity can verify the deployment environment of TEE, that is, measure the privacy computing software module deployed in TEE and sign the measurement results, the first information, that is, the evidence information of remote attestation, is obtained, and then the client determines whether to trust TEE through the evidence information of remote attestation, and in the case of trust in TEE, calls the data provided by the data owner and performs data privacy computing in TEE, so that TEE can obtain the trust of the privacy computing requester, so that the privacy computing requester can realize security protection of the data privacy computing process through the privacy computing platform.
[0083] In actual application, the privacy computing software modules, such as the federated learning module and the multi-party secure computing module, need to be deployed in TEE in advance.
[0084] Based on this, in one embodiment, the method further includes:
[0085] Receiving a configuration request initiated by the privacy computing requester;
[0086] In response to the configuration request, configuring the privacy computing software module;
[0087] Among them, the privacy computing software module includes at least one of the following: a federated learning module; a multi-party secure computing module; the privacy computing software module is deployed in the TEE.
[0088] In actual application, the public key corresponding to the certificate in the trusted root entity can be used to sign the measurement results, which can ensure the accuracy and credibility of the signature results.
[0089] Based on this, the first signature result is obtained by the trusted root entity signing the measurement result using the public key corresponding to the certificate in the trusted root entity.
[0090] The present application also provides another information transmission method, which is applied to a client. Figure 2 The information transmission method of the present invention is shown in FIG. Figure 2 ;like Figure 2 As shown, the method includes:
[0091] Step 201: Receive first information sent by a server through a trusted channel; the server is deployed in TEE; the trusted channel is a channel established between the server and the client in response to a data privacy computing request initiated by a privacy computing requester; the client is created by the corresponding privacy computing requester.
[0092] Step 202: Based on the first information, determine whether to trust the TEE, and if the TEE is trusted, perform data privacy calculations in the TEE.
[0093] Here, the client corresponding to the privacy computing requester may include various types of client-side computing devices. For example, the client-side computing devices may include PC terminal devices, mobile terminal devices, Internet of Things devices, and other forms of smart devices with certain computing capabilities, etc.
[0094] In actual application, the client used in the information transmission method provided in the embodiment of the present application can specifically be a TLS client, that is, TLS Client.
[0095] In one embodiment, the trusted channel can be established between the server and the client using TLS in response to a data privacy computing request sent by a privacy computing requester. In this way, a trusted channel between the server and the client is established using TLS, and encrypted data transmission is then achieved through the established trusted channel, thereby providing data confidentiality and data integrity between the server and the client.
[0096] Here, the client receives the first information sent by the server through the trusted channel, which is used to characterize the evidence information of the remote attestation. The evidence information of the remote attestation is generated and signed by the trusted root entity, and can accurately reflect whether the corresponding privacy computing software module is deployed inside the TEE. The privacy computing software module may include one of the following modules: a federated learning module; a multi-party secure computing module.
[0097] In actual application, after receiving the first information, the client also needs to obtain the second information, which is the second signature result obtained by the CA signing the benchmark value; the benchmark value is the expected value that should be generated by measuring the privacy computing software module deployed in the TEE, thereby combining the first information and the second information to determine whether to trust the TEE.
[0098] Based on this, in one embodiment, the method further includes: acquiring second information;
[0099] The determining, based on the first information, whether to trust the TEE includes:
[0100] Based on the first information and the second information, determine whether to trust the TEE.
[0101] In a specific embodiment, determining whether to trust the TEE based on the first information and the second information includes:
[0102] Comparing the first information with the second information to obtain a comparison result;
[0103] When the comparison result indicates that the first information is identical to the second information, determining that the TEE is trusted;
[0104] When the comparison result indicates that the first information is different from the second information, it is determined that the TEE is not trusted.
[0105] Here, taking the client as TLS Client as an example, when TLS Client detects that the first signature result (i.e., first information) corresponding to the measurement result of the privacy computing software module deployed in TEE is the same as the second signature result (i.e., second information) obtained by signing the benchmark value of the TEE environment measurement by the CA, it indicates that the corresponding privacy computing software module is correctly deployed in the TEE. Therefore, by remotely proving the integrity of the TEE, the privacy computing requester corresponding to the TLS Client can trust the deployment environment of the remote TEE. At this time, trust can be generated in the TEE, thereby realizing trust in the privacy computing platform through remote proof and executing data privacy computing in the TEE. In this way, the privacy computing requester can achieve security protection for the data privacy computing process through the privacy computing platform. However, when the TLS Client detects that the first signature result (i.e., the first information) corresponding to the measurement result of the privacy computing software module deployed in the TEE is different from the second signature result (i.e., the second information) obtained by signing the baseline value of the TEE environment measurement by the CA, it indicates that the corresponding privacy computing software module is not correctly deployed in the TEE. At this time, the privacy computing requester corresponding to the TLS Client will not trust the TEE, and will not perform data privacy calculations in the TEE.
[0106] In actual application, in the process of generating the benchmark value of the TEE deployment environment measurement, the CA endorses the benchmark value, which can ensure the accuracy and credibility of the benchmark value, so that the privacy computing requester can believe the validity of the benchmark value.
[0107] Based on this, in one embodiment, obtaining the second information includes:
[0108] Receiving the second information sent by the CA; the CA provides the privacy computing requester with a trust endorsement of the TEE;
[0109] The second information is a second signature result obtained by the CA signing a reference value; the reference value is the expected value that should be generated when measuring the privacy computing software module.
[0110] Here, the second signature result is a signature result obtained by the CA signing the reference value using a private key; the private key is stored by the trusted root entity.
[0111] In one embodiment, in an engineering application, the baseline value of the TEE deployment environment metric may be jointly generated by different participants, such as TEE hardware manufacturers, federated learning / multi-party secure computing module providers, and operators of the privacy computing platform.
[0112] By adopting the technical solution of the embodiment of the present application, a trusted connection is established between a server deployed in the TEE and a client created by a privacy computing requester. After the trusted connection is established, the server sends the first information to the client through the trusted connection, so that the privacy computing requester corresponding to the client can accurately verify whether the deployment environment of the TEE is correct through the first information, and then determine whether to trust the TEE. When trust is established in the TEE, that is, when the privacy computing platform is trusted through remote proof, the data provided by the data owner is called and data privacy computing is performed in the TEE. In this way, the privacy computing requester can achieve security protection for the data privacy computing process through the privacy computing platform.
[0113] The present application is described below in conjunction with scenario embodiments.
[0114] Taking the application of the information transmission method in TLS Server as an example, the embodiment of the present application is exemplarily described. The architecture of the information transmission method is first described below.
[0115] The present application embodiment provides an architecture of an information transmission method. Figure 3 Schematic diagram of the structure of the information transmission method of the embodiment of the present application; Figure 3 As shown, the architecture of the information transmission method includes the following modules: multiple privacy computing requesters, TLS Server, FL / MPC module, Trust Anchor (corresponding to the trusted root entity), ReferenceValue (corresponding to the benchmark value of the deployment environment measurement of TEE), and CA. Among them, the TLSClient corresponding to each privacy computing requester can communicate with the TLS Server for data transmission. The TLS Server can be a server cluster built by one or more servers, and the number of servers can be set according to the actual data computing requirements. The following is an explanation of the various components in the architecture of the information transmission method.
[0116] Data 1 and Data 2: correspond to different privacy computing requesters. Different privacy computing requesters hope to perform federated learning or multi-party secure computing in TEE.
[0117] TLS Server: A server for trusted connection that establishes a trusted channel with the TLS Client corresponding to the privacy computing requester. The TLS Server must be deployed in TEE.
[0118] FL / MPC module: software implementation of federated learning and multi-party secure computing, which must be deployed in TEE.
[0119] Trust Anchor: The trusted root in TEE, which can measure the deployment environment of TEE, obtain the measurement results, and sign the measurement results, such as signatures stored in the form of Quote Enclave, Secure Processor, etc. Here, Quote Enclave and Secure Processor are signature components of the central processing unit (CPU), which are generally hardware-based components. Among them, Quote Enclave is a signature component based on the Intel SGX architecture; Secure Processor is a signature component based on the SEV architecture.
[0120] Reference Value module: Reference Value is the benchmark value measured by the TEE deployment environment and is endorsed by the CA.
[0121] CA: CA center provides TEE trust endorsement for privacy computing requesters.
[0122] in, Figure 3 The REE shown in the figure refers to the ordinary execution environment, which is the abbreviation of Rich Execution Environment and is not protected by TEE security. Among them, REE includes the ordinary operating system (Rich OS, Rich Operating System) running on a general embedded processor and the client application on it.
[0123] The embodiment of the present application involves remote attestation, and the process of remote attestation is specifically as follows: the privacy computing software module deployed in the TEE is measured through the Trust Anchor (the privacy computing software module includes at least one of the following: a federated learning module; a multi-party secure computing module), and the measurement result is signed with the certificate in the Trust Anchor, and the signature result is fed back to the privacy computing requester, so that the privacy computing requester verifies whether the deployment environment of the TEE is correct. In the embodiment of the present application, the CA signs the benchmark value of the TEE deployment environment measurement, which can ensure the accuracy and credibility of the benchmark value.
[0124] Based on the architecture of the above information transmission method, the embodiment of the present application also provides another information transmission method. Figure 4 The interactive process of the information transmission method of the embodiment of the present application is shown as follows Figure 3 ;like Figure 4 As shown, the method includes:
[0125] Step 401: The privacy computing requester configures the corresponding FL / MPC module.
[0126] Step 402: Deploy the FL / MPC module and TLS Server in TEE.
[0127] Here, the privacy computing requester selects the corresponding FL / MPC module and deploys the selected FL / MPC module into TEE, and TLS Server is also deployed in TEE.
[0128] Step 403: Call the Trust Anchor, and the Trust Anchor generates evidence information for remote attestation.
[0129] It should be noted that the TLS Server certificate is provided by Trust Anchor.
[0130] Here, Trust Anchor is deployed in TEE, and TLS Server calls Trust Anchor to generate remote proof information by Trust Anchor. The remote proof information is generated and signed by Trust Anchor. Specifically, Trust Anchor measures the FL / MPC module deployed in TEE, signs the measurement result with the certificate in Trust Anchor, and feeds back the signature result to the privacy computing requester, so that the privacy computing requester can verify whether the deployment environment of TEE is correct.
[0131] Step 404: Trust Anchor feeds back the evidence information of remote attestation to TLSServer deployed in TEE.
[0132] Here, the privacy computing requester creates a TLS Client, and a trusted connection is established between the TLS Client and the TLS Server. During the TLS handshake protocol, the public key corresponding to the TLS Server certificate is provided by the Trust Anchor, and the private key is saved by the Trust Anchor for use in the CertificateVerify phase of the handshake phase. After the trusted connection is established, the TLS Server sends remote attestation evidence information to the TLS Client. Since the remote attestation evidence information is generated and signed by the Trust Anchor, it can accurately reflect whether the corresponding FL / MPC module is deployed in the TEE. Since the server-side certificate information is stored in the TLS Server, the remote attestation evidence information can also accurately reflect the TLS Server deployed in the TEE.
[0133] Step 405: The Reference Value module submits the benchmark value of the TEE deployment environment measurement to the CA for signing.
[0134] Step 406: The CA generates a corresponding certificate for the reference value, and feeds the generated certificate back to the ReferenceValue module.
[0135] Step 407: The Reference Value module sends the reference value and the certificate to the privacy computing requester.
[0136] Here, CA signs the reference value with a private key to obtain the corresponding signature result. The private key can be saved by Trust Anchor. The reference value involved here refers to the expected value that TrustAnchor should generate by measuring the deployment environment of TEE after the corresponding FL / MPC module is deployed in TEE.
[0137] Step 408: The privacy computing requester has a TLS Client deployed on it, and sends a client hello message to the TLS Server deployed in the TEE.
[0138] Step 409: TLS Server calls Trust Anchor to generate CertificateVerify.
[0139] Step 410: The TLS Server sends a ServerHello CertificateVerify to the TLS Client.
[0140] Step 411: The TLS Client sends a Client CertificateVerify message to the TLS Server.
[0141] The embodiment of the present application provides an architecture of an information transmission method based on TEE, which enables the privacy computing requester to trust the deployment environment of the remote TEE by remotely proving the integrity of the TEE, and at the same time, builds a trusted channel between the TLS Server deployed in the TEE and the TLS Client corresponding to the privacy computing requester, and realizes encrypted transmission of data through the trusted channel. At the same time, in the process of generating the benchmark value, the CA endorses the benchmark value, so that the privacy computing requester can trust the validity of the benchmark value.
[0142] In order to implement the information transmission method on the server side of the embodiment of the present application, the embodiment of the present application also provides an information transmission device, which is applied to the server, and the server is deployed in the TEE; Figure 5 The structure diagram of the information transmission device according to the embodiment of the present application is shown in FIG. Figure 1 ;like Figure 5 As shown, the device comprises:
[0143] The first receiving unit 501 is used to receive a data privacy computing request initiated by a privacy computing requester;
[0144] An establishing unit 502 is used to establish a trusted channel with a client in response to the data privacy computing request; the client is created by the corresponding privacy computing requester;
[0145] The sending unit 503 is used to send first information to the client through the trusted channel; the first information is used for the client to determine whether to trust the TEE, and if the TEE is trusted, perform data privacy calculation in the TEE.
[0146] In one embodiment, the device may further include:
[0147] A calling unit, configured to call a trusted root entity so that the trusted root entity generates the first information;
[0148] The third receiving unit is configured to receive the first information fed back by the trusted root entity.
[0149] Here, the first information is a first signature result, the first signature result is a result obtained by the trusted root entity by signing the measurement result, and the measurement result is a result obtained by the trusted root entity by measuring the privacy computing software module.
[0150] In one embodiment, the device further includes: a fourth receiving unit, configured to receive a configuration request initiated by the privacy computing requester;
[0151] A configuration unit, configured to configure the privacy computing software module in response to the configuration request;
[0152] Among them, the privacy computing software module includes at least one of the following: a federated learning module; a multi-party secure computing module; the privacy computing software module is deployed in the TEE.
[0153] Here, the first signature result is obtained by the trusted root entity signing the measurement result using the public key corresponding to the certificate in the trusted root entity.
[0154] In actual application, the first receiving unit 501 can be implemented by a communication interface in the information transmission device; the establishing unit 502 can be implemented by a processor in the information transmission device; and the sending unit 503 can be implemented by a processor in the information transmission device in combination with a communication interface.
[0155] 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 on the server side belong to the same concept. The specific implementation process is detailed in the information transmission method embodiment on the server side, which will not be repeated here.
[0156] In order to implement the information transmission method on the client side of the embodiment of the present application, the embodiment of the present application also provides another information transmission device, which is applied to the client; Figure 6 The structure diagram of the information transmission device according to the embodiment of the present application is shown in FIG. Figure 2 ;like Figure 6 As shown, the device comprises:
[0157] The second receiving unit 601 is used to receive first information sent by the server through a trusted channel; the server is deployed in the TEE; the trusted channel is a channel established between the server and the client by responding to a data privacy computing request initiated by a privacy computing requester; the client is created by the corresponding privacy computing requester;
[0158] A determination unit 602 is configured to determine whether to trust the TEE based on the first information;
[0159] The processing unit 603 is used to perform data privacy calculations in the TEE when trust is established in the TEE.
[0160] In one embodiment, the device may further include: an acquisition unit, the acquisition unit being configured to acquire second information;
[0161] The determining unit 602 is specifically configured to:
[0162] Based on the first information and the second information, determine whether to trust the TEE.
[0163] In practical application, the determining unit 602 is specifically used for:
[0164] Comparing the first information with the second information to obtain a comparison result;
[0165] When the comparison result indicates that the first information is identical to the second information, determining that the TEE is trusted;
[0166] When the comparison result indicates that the first information is different from the second information, it is determined that the TEE is not trusted.
[0167] In one embodiment, the acquisition unit is specifically used to:
[0168] Receiving the second information sent by the CA; the CA provides the privacy computing requester with a trust endorsement of the TEE;
[0169] The second information is a second signature result obtained by the CA signing a reference value; the reference value is the expected value that should be generated when measuring the privacy computing software module.
[0170] Here, the second signature result is a signature result obtained by the CA signing the reference value using a private key; the private key is stored by the trusted root entity.
[0171] In actual application, the second receiving unit 601 can be implemented by a communication interface in the information transmission device; the determining unit 602 and the processing unit 603 can be implemented by a processor in the information transmission device.
[0172] 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 on the client side belong to the same concept. The specific implementation process is detailed in the information transmission method embodiment on the client side, which will not be repeated here.
[0173] Based on the hardware implementation of the above program modules, and in order to implement the information transmission method on the server side of the embodiment of the present application, the embodiment of the present application also provides a server, which is deployed in the TEE. Figure 7 Schematic diagram of the hardware structure of the server of the embodiment of the present application; Figure 7 As shown, the server 70 includes:
[0174] A first communication interface 71, capable of performing information exchange with clients corresponding to multiple privacy computing requesters;
[0175] The first processor 72 is connected to the first communication interface 71 to implement information interaction with the clients corresponding to the multiple privacy computing requesters, and is used to execute the above-mentioned server-side information transmission method when running the computer program. The computer program is stored in the first memory 73.
[0176] Specifically, the first communication interface 71 is used to receive a data privacy computing request initiated by a privacy computing requester;
[0177] A first processor 72 is configured to establish a trusted channel with a client in response to the data privacy computing request; the client is created by the corresponding privacy computing requester;
[0178] The first communication interface 71 is also used to send first information to the client through the trusted channel; the first information is used for the client to determine whether to trust the TEE, and if the TEE is trusted, perform data privacy calculations in the TEE.
[0179] In one embodiment, the first processor 72 is further configured to call a trusted root entity so that the trusted root entity generates the first information;
[0180] The first communication interface 71 is further used to receive the first information fed back by the trusted root entity.
[0181] Here, the first information is a first signature result, the first signature result is a result obtained by the trusted root entity by signing the measurement result, and the measurement result is a result obtained by the trusted root entity by measuring the privacy computing software module.
[0182] In one embodiment, the first communication interface 71 is further used to receive a configuration request initiated by the privacy computing requester;
[0183] The first processor 72 is further configured to configure the privacy computing software module in response to the configuration request;
[0184] Among them, the privacy computing software module includes at least one of the following: a federated learning module; a multi-party secure computing module; the privacy computing software module is deployed in the TEE.
[0185] Here, the first signature result is obtained by the trusted root entity signing the measurement result using the public key corresponding to the certificate in the trusted root entity.
[0186] It should be noted that the specific processing process of the first processor 72 and the first communication interface 71 can be understood by referring to the above-mentioned information transmission method on the server side.
[0187] Of course, in actual application, the various components in the server 70 are coupled together through the first bus system 74. It can be understood that the first bus system 74 is used to realize the connection and communication between these components. In addition to the data bus, the first bus system 74 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, Figure 7 In the figure, various buses are labeled as a first bus system 74 .
[0188] The first memory 73 in the embodiment of the present application is used to store various types of data to support the operation of the server 70. Examples of such data include: any computer program used to operate on the server 70.
[0189] The information transmission method on the server side disclosed in the above embodiment of the present application can be applied to the first processor 72, or implemented by the first processor 72. The first processor 72 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the information transmission method on the server side can be completed by the hardware integrated logic circuit or software instructions in the first processor 72. The above-mentioned first processor 72 may be a general processor, a digital signal processor (DSP, Digital Signal Processor), or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The first processor 72 can implement or execute the information transmission methods, steps and logic block diagrams on the server side disclosed in the embodiment of the present application. The general processor may be a microprocessor or any conventional processor, etc. In combination with the steps of the information transmission method on the server side 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 73. The first processor 72 reads the information in the first memory 73 and completes the steps of the information transmission method on the server side in combination with its hardware.
[0190] In an exemplary embodiment, the server 70 can 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 server-side information transmission method.
[0191] Based on the hardware implementation of the above program modules, and in order to implement the information transmission method on the client side of the embodiment of the present application, the embodiment of the present application also provides a client, Figure 8 Schematic diagram of the hardware structure of the client of the embodiment of the present application; Figure 8 As shown, the client 80 includes:
[0192] The second communication interface 81 is capable of performing information exchange with clients corresponding to multiple privacy computing requesters respectively;
[0193] The second processor 82 is connected to the second communication interface 81 to implement information interaction with the clients corresponding to the multiple privacy computing requesters, and is used to execute the client-side information transmission method provided above when running the computer program. The computer program is stored in the second memory 83.
[0194] Specifically, the second communication interface 81 is used to receive the first information sent by the server through the trusted channel; the server is deployed in the TEE; the trusted channel is a channel established between the server and the client by responding to the data privacy computing request initiated by the privacy computing requester; the client is created by the corresponding privacy computing requester;
[0195] The second processor 82 is used to determine whether to trust the TEE based on the first information, and if the TEE is trusted, perform data privacy calculation in the TEE.
[0196] In one embodiment, the second communication interface 81 is further used to obtain the second information;
[0197] The second processor 82 is specifically configured to:
[0198] Based on the first information and the second information, determine whether to trust the TEE.
[0199] In one embodiment, the second processor 82 is further configured to:
[0200] Comparing the first information with the second information to obtain a comparison result;
[0201] When the comparison result indicates that the first information is identical to the second information, determining that the TEE is trusted;
[0202] When the comparison result indicates that the first information is different from the second information, it is determined that the TEE is not trusted.
[0203] In one embodiment, the second communication interface 81 is specifically used for:
[0204] Receiving the second information sent by the CA; the CA provides the privacy computing requester with a trust endorsement of the TEE;
[0205] The second information is a second signature result obtained by the CA signing a reference value; the reference value is the expected value that should be generated when measuring the privacy computing software module.
[0206] Here, the second signature result is a signature result obtained by the CA signing the reference value using a private key; the private key is stored by the trusted root entity.
[0207] It should be noted that the specific processing process of the second processor 82 and the second communication interface 81 can be understood by referring to the above-mentioned information transmission method on the client side.
[0208] Of course, in actual application, the various components in the client 80 are coupled together through the second bus system 84. It can be understood that the second bus system 84 is used to realize the connection and communication between these components. In addition to the data bus, the second bus system 84 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, Figure 8 In the figure, various buses are labeled as a second bus system 84.
[0209] The second memory 83 in the embodiment of the present application is used to store various types of data to support the operation of the client 80. Examples of such data include: any computer program used to operate on the client 80.
[0210] The information transmission method on the client side disclosed in the above embodiment of the present application can be applied to the second processor 82, or implemented by the second processor 82. The second processor 82 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the information transmission method on the client side can be completed by the hardware integrated logic circuit or software instructions in the second processor 82. The above second processor 82 may be a general processor, DSP, or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The second processor 82 can implement or execute the information transmission methods, steps and logic block diagrams on the client side disclosed in the embodiment of the present application. The general processor may be a microprocessor or any conventional processor, etc. In combination with the steps of the information transmission method on the client side 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 83. The second processor 82 reads the information in the second memory 83 and completes the steps of the information transmission method on the client side in combination with its hardware.
[0211] In an exemplary embodiment, the client 80 can be implemented by one or more ASICs, DSPs, PLDs, CPLDs, FPGAs, general-purpose processors, controllers, MCUs (Micro Controller Units), microprocessors (Microprocessors), or other electronic components to execute the aforementioned server-side information transmission method.
[0212] It can be understood that the memory (including the first memory 73 and the second memory 83) 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 ferromagnetic random access memory, 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, SyncLink Dynamic Random Access Memory), and direct RAM bus random access memory (DRRAM, Direct Rambus Random Access Memory).The memories (including the first memory 73 and the second memory 83) 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.
[0213] In an exemplary embodiment, the embodiment of the present application further provides a storage medium, namely a computer storage medium, specifically a computer-readable storage medium, for example, including a first memory 73 storing a computer program, the computer program can be executed by a first processor 72 in a server 70 to complete the steps of the information transmission method on the server side described in the embodiment of the present application, or including a second memory 83 storing a computer program, the computer program can be executed by a second processor 82 in a client 80 to complete the steps of the information transmission method on the client side described in the embodiment of the present application. The computer-readable storage medium can be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface memory, optical disk, or CD-ROM.
[0214] It should be noted that: "first", "second", "third", etc. are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence.
[0215] In addition, the technical solutions described in the embodiments of the present application can be combined arbitrarily without conflict.
[0216] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. An information transmission method, characterized in that: Applied to a server, the server is deployed in a trusted execution environment TEE; the method comprises: Receive a data privacy computing request initiated by a privacy computing requester; In response to the data privacy computing request, a trusted channel is established with a client; the client is created by the corresponding privacy computing requester; First information is sent to the client through the trusted channel; the first information is used for the client to determine whether to trust the TEE, and if the TEE is trusted, perform data privacy calculations in the TEE.
2. The method according to claim 1, characterized in that The method further comprises: Invoking a trusted root entity so that the trusted root entity generates the first information; The first information fed back by the trusted root entity is received.
3. The method according to claim 2, characterized in that The first information is a first signature result, which is a result obtained by the trusted root entity by signing the measurement result, and the measurement result is a result obtained by the trusted root entity by measuring the privacy computing software module.
4. The method according to claim 3, characterized in that The method further comprises: Receiving a configuration request initiated by the privacy computing requester; In response to the configuration request, configuring the privacy computing software module; Among them, the privacy computing software module includes at least one of the following: a federated learning module; a multi-party secure computing module; the privacy computing software module is deployed in the TEE.
5. The method according to claim 3, characterized in that: The first signature result is obtained by the trusted root entity signing the measurement result using a public key corresponding to a certificate in the trusted root entity.
6. An information transmission method, characterized in that: Applied to a client, the method comprises: Receiving first information sent by a server through a trusted channel; the server is deployed in a trusted execution environment TEE; the trusted channel is a channel established between the server and the client in response to a data privacy computing request initiated by a privacy computing requester; the client is created by the corresponding privacy computing requester; Based on the first information, determine whether to trust the TEE, and if the TEE is trusted, perform data privacy calculations in the TEE.
7. The method according to claim 6, characterized in that The method further includes: acquiring second information; The determining, based on the first information, whether to trust the TEE includes: Based on the first information and the second information, determine whether to trust the TEE.
8. The method according to claim 7, characterized in that The determining whether to trust the TEE based on the first information and the second information includes: Comparing the first information with the second information to obtain a comparison result; When the comparison result indicates that the first information is identical to the second information, determining that the TEE is trusted; When the comparison result indicates that the first information is different from the second information, it is determined that the TEE is not trusted.
9. The method according to claim 7, characterized in that: The obtaining of the second information includes: Receiving the second information sent by a certification center CA; the CA provides a trust endorsement of the TEE to the privacy computing requester; The second information is a second signature result obtained by the CA signing a reference value; the reference value is the expected value that should be generated when measuring the privacy computing software module.
10. The method according to claim 9, characterized in that The second signature result is a signature result obtained by the CA signing the reference value using a private key; the private key is stored by the trusted root entity.
11. An information transmission device, characterized in that: Applied to a server, the server is deployed in a trusted execution environment TEE; the device comprises: A first receiving unit, configured to receive a data privacy computing request initiated by a privacy computing requester; An establishing unit, configured to establish a trusted channel with a client in response to the data privacy computing request; the client is created by the corresponding privacy computing requester; A sending unit is used to send first information to the client through the trusted channel; the first information is used for the client to determine whether to trust the TEE, and when the TEE is trusted, perform data privacy calculation in the TEE.
12. An information transmission device, characterized in that: Applied to a client, the device comprises: A second receiving unit is configured to receive first information sent by a server through a trusted channel; the server is deployed in a trusted execution environment TEE; the trusted channel is a channel established between the server and the client by responding to a data privacy computing request initiated by a privacy computing requester; the client is created by the corresponding privacy computing requester; a determining unit, configured to determine whether to trust the TEE based on the first information; A processing unit is configured to perform data privacy computations in the TEE while trust is established in the TEE.
13. A server, characterized in that: The server is deployed in a trusted execution environment TEE; including: A first communication interface, used to receive a data privacy computing request initiated by a privacy computing requester; A first processor, configured to establish a trusted channel with a client in response to the data privacy computing request; the client is created by the corresponding privacy computing requester; The first communication interface is also used to send first information to the client through the trusted channel; the first information is used for the client to determine whether to trust the TEE, and if the TEE is trusted, perform data privacy calculations in the TEE.
14. A client, characterized in that: include: A second communication interface, used for receiving first information sent by the server through a trusted channel; The server is deployed in a trusted execution environment TEE; The trusted channel is a channel established between the server and the client by responding to a data privacy computing request initiated by a privacy computing requester; The client is created by the corresponding privacy computing requester; The second processor is used to determine whether to trust the TEE based on the first information, and perform data privacy calculation in the TEE if the TEE is trusted.
15. A server, characterized in that: include: 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 described in any one of claims 1 to 5.
16. A client, characterized in that: include: 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 described in any one of claims 6 to 10.
17. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the computer program 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 10.
Citation Information
Cited By
Communication method and communication apparatus
WO2026144832A1
