Data calculation method, device, system and electronic equipment

By using symmetric encryption technology in the trusted execution module to decrypt data and perform homomorphic encryption, it is sent to the untrusted computing module for homomorphic calculation, which solves the problem of high resource consumption in homomorphic encryption technology and realizes efficient data calculation.

CN113612597BActive Publication Date: 2024-11-26JINGDONG TECH HLDG CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110846193.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-07-26
Publication Date
2024-11-26
Estimated Expiration
2041-07-26

AI Technical Summary

Technical Problem

In the fields of cloud computing and machine learning, existing homomorphic encryption technology has caused large consumption of storage space, transmission network bandwidth and computing resources during data calculation, low computing speed, and lack of practical homomorphic encryption application modes and architectures.

Method used

By using symmetric encryption technology to decrypt data in the trusted execution module, homomorphic encryption is sent to the untrusted computing module for homomorphic calculation. Compared with directly using homomorphic encryption technology to store and decrypt data, the data storage space is saved. Transmission network bandwidth and computing resource consumption improve computing speed.

Benefits of technology

On the premise of ensuring data security, through the interactive cooperation of multiple participants such as client, trusted execution module, and untrusted computing module, a practical homomorphic encryption application mode is formed, which improves the computing speed and reduces resources Consumption.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113612597B_ABST
    Figure CN113612597B_ABST
Patent Text Reader

Abstract

The present application proposes a data calculation method, device, system and electronic device, wherein the data calculation method includes: a trusted execution module obtains a data calculation request sent by a client, obtains corresponding symmetric ciphertext data from a data storage module according to the data calculation request, decrypts the symmetric ciphertext data to obtain first plaintext data, homomorphically encrypts the first plaintext data to obtain homomorphic ciphertext data, and sends the homomorphic ciphertext data to an untrusted computing module, so that the untrusted computing module performs homomorphic calculations based on the homomorphic ciphertext data to obtain homomorphic ciphertext calculation results. The trusted execution module is used to decrypt symmetric ciphertexts, and assists the untrusted execution module in calculating key steps, which ensures data security while enhancing calculation efficiency. A practical homomorphic encryption application mode is formed through the interactive collaboration of multiple participants such as the client, the trusted execution module, the untrusted computing module and the data storage module.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a data calculation method, device, system and electronic equipment. Background Art

[0002] At present, homomorphic encryption technology, as an important data security and privacy protection technology, is widely used in cloud computing, machine learning and other fields. Homomorphic encryption allows calculations on ciphertext data, which can protect the confidentiality of data while using it.

[0003] In the related technologies, when data calculations are performed based on homomorphic encryption technology, the storage space, transmission network bandwidth and computing resources consumed by homomorphic ciphertext data are large, the calculation speed is low, and there is a lack of practical homomorphic encryption application models and architectures. Summary of the invention

[0004] The present application proposes a data calculation method, device, system and electronic equipment.

[0005] The first aspect of the present application proposes a data calculation method, including: obtaining a data calculation request sent by a client; obtaining corresponding symmetric ciphertext data from a data storage module according to the data calculation request; decrypting the symmetric ciphertext data to obtain first plaintext data; homomorphically encrypting the first plaintext data to obtain homomorphic ciphertext data; sending the homomorphic ciphertext data to an untrusted computing module, so that the untrusted computing module can perform homomorphic calculation based on the homomorphic ciphertext data to obtain a homomorphic ciphertext calculation result.

[0006] The data calculation method of the embodiment of the present application is that the trusted execution module obtains the data calculation request sent by the client, obtains the corresponding symmetric ciphertext data from the data storage module according to the data calculation request, decrypts the symmetric ciphertext data to obtain the first plaintext data, homomorphically encrypts the first plaintext data to obtain the homomorphic ciphertext data, and sends the homomorphic ciphertext data to the untrusted computing module, so that the untrusted computing module can perform homomorphic calculations based on the homomorphic ciphertext data to obtain the homomorphic ciphertext calculation results. The embodiment of the present application stores and decrypts data based on symmetric encryption technology and then performs subsequent calculations. Compared with storing and decrypting data based on homomorphic encryption technology and then performing subsequent calculations, under the premise of ensuring data security, it saves data storage space, data transmission network bandwidth and computing resource consumption, improves the computing speed, and forms a practical homomorphic encryption application mode through the interactive collaboration of multiple participants such as the client, the trusted execution module, the untrusted computing module and the data storage module.

[0007] The second aspect embodiment of the present application proposes a data calculation method, including: receiving homomorphic ciphertext data sent by a trusted execution module, wherein the homomorphic ciphertext data is obtained by the trusted execution module through decryption and homomorphic encryption based on symmetric ciphertext data obtained from a data storage module; performing homomorphic calculation based on the homomorphic ciphertext data to obtain a homomorphic ciphertext calculation result.

[0008] In the data calculation method of the embodiment of the present application, the untrusted computing module receives the homomorphic ciphertext data sent by the trusted execution module, wherein the homomorphic ciphertext data is obtained by the trusted execution module through decryption and homomorphic encryption according to the symmetric ciphertext data obtained from the data storage module; and the homomorphic ciphertext calculation result is obtained by performing homomorphic calculation according to the homomorphic ciphertext data. The embodiment of the present application stores and decrypts data based on symmetric encryption technology for subsequent calculations. Compared with storing and decrypting data based on homomorphic encryption technology for subsequent calculations, under the premise of ensuring data security, it saves data storage space, data transmission network bandwidth and computing resource consumption, improves the computing speed, and forms a practical homomorphic encryption application mode through the interactive collaboration of multiple participants such as the client, the trusted execution module, the untrusted computing module and the data storage module.

[0009] The third aspect embodiment of the present application proposes a data calculation method, including: sending a data calculation request to a trusted execution module, so that the trusted execution module obtains corresponding symmetric ciphertext data from a data storage module according to the data calculation request, decrypting the symmetric ciphertext data to obtain first plaintext data, homomorphically encrypting the first plaintext data to obtain homomorphic ciphertext data, sending the homomorphic ciphertext data to an untrusted computing module for homomorphic calculation to obtain a homomorphic ciphertext calculation result; receiving the homomorphic ciphertext calculation result sent by the untrusted computing module; decrypting the homomorphic ciphertext calculation result to obtain a plaintext calculation result.

[0010] In the data calculation method of the embodiment of the present application, the client sends a data calculation request to the trusted execution module, so that the trusted execution module obtains the corresponding symmetric ciphertext data from the data storage module according to the data calculation request, decrypts the symmetric ciphertext data to obtain the first plaintext data, homomorphically encrypts the first plaintext data to obtain the homomorphic ciphertext data, sends the homomorphic ciphertext data to the untrusted computing module for homomorphic calculation to obtain the homomorphic ciphertext calculation result, receives the homomorphic ciphertext calculation result sent by the untrusted computing module, decrypts the homomorphic ciphertext calculation result, and obtains the plaintext calculation result. The embodiment of the present application stores and decrypts data based on symmetric encryption technology and then performs subsequent calculations. Compared with storing and decrypting data based on homomorphic encryption technology and then performing subsequent calculations, under the premise of ensuring data security, it saves data storage space, data transmission network bandwidth and computing resource consumption, improves the computing speed, and forms a practical homomorphic encryption application mode through the interactive collaboration of multiple participants such as the client, the trusted execution module, the untrusted computing module and the data storage module.

[0011] The fourth aspect embodiment of the present application proposes a data computing device, including: a first acquisition module, configured to obtain a data computing request sent by a client; a second acquisition module, configured to obtain corresponding symmetric ciphertext data from a data storage module according to the data computing request; a first decryption module, configured to decrypt the symmetric ciphertext data to obtain first plaintext data; a first encryption module, configured to perform homomorphic encryption on the first plaintext data to obtain homomorphic ciphertext data; a first sending module, configured to send the homomorphic ciphertext data to an untrusted computing module, so that the untrusted computing module can perform homomorphic calculation based on the homomorphic ciphertext data to obtain a homomorphic ciphertext calculation result.

[0012] In the data computing device of the embodiment of the present application, the trusted execution module obtains the data computing request sent by the client, obtains the corresponding symmetric ciphertext data from the data storage module according to the data computing request, decrypts the symmetric ciphertext data to obtain the first plaintext data, homomorphically encrypts the first plaintext data to obtain the homomorphic ciphertext data, and sends the homomorphic ciphertext data to the untrusted computing module, so that the untrusted computing module can perform homomorphic computing based on the homomorphic ciphertext data to obtain the homomorphic ciphertext computing result. The embodiment of the present application stores and decrypts data based on symmetric encryption technology and then performs subsequent calculations. Compared with storing and decrypting data based on homomorphic encryption technology and then performing subsequent calculations, under the premise of ensuring data security, it saves data storage space, data transmission network bandwidth and computing resource consumption, improves computing speed, and forms a practical homomorphic encryption application mode through the interactive collaboration of multiple participants such as the client, the trusted execution module, the untrusted computing module and the data storage module.

[0013] The fifth aspect embodiment of the present application proposes a data computing device, including: a first receiving module, configured to receive homomorphic ciphertext data sent by a trusted execution module, wherein the homomorphic ciphertext data is obtained by the trusted execution module through decryption and homomorphic encryption based on symmetric ciphertext data obtained from a data storage module; a first computing module, configured to perform homomorphic computing based on the homomorphic ciphertext data to obtain a homomorphic ciphertext computing result.

[0014] In the data computing device of the embodiment of the present application, the untrusted computing module receives the homomorphic ciphertext data sent by the trusted execution module, wherein the homomorphic ciphertext data is obtained by the trusted execution module through decryption and homomorphic encryption according to the symmetric ciphertext data obtained from the data storage module; and the homomorphic ciphertext calculation result is obtained by performing homomorphic calculation according to the homomorphic ciphertext data. The embodiment of the present application stores and decrypts data based on symmetric encryption technology for subsequent calculations. Compared with storing and decrypting data based on homomorphic encryption technology for subsequent calculations, under the premise of ensuring data security, it saves data storage space, data transmission network bandwidth and computing resource consumption, improves the computing speed, and forms a practical homomorphic encryption application mode through the interactive collaboration of multiple participants such as the client, the trusted execution module, the untrusted computing module and the data storage module.

[0015] The sixth aspect embodiment of the present application proposes a data computing device, including: a second sending module, configured to send a data computing request to a trusted execution module, so that the trusted execution module obtains corresponding symmetric ciphertext data from the data storage module according to the data computing request, decrypts the symmetric ciphertext data to obtain first plaintext data, homomorphically encrypts the first plaintext data to obtain homomorphic ciphertext data, and sends the homomorphic ciphertext data to an untrusted computing module for homomorphic computing to obtain a homomorphic ciphertext computing result; a second receiving module, configured to receive the homomorphic ciphertext computing result sent by the untrusted computing module; and a second decryption module, configured to decrypt the homomorphic ciphertext computing result to obtain a plaintext computing result.

[0016] In the data computing device of the embodiment of the present application, the client sends a data computing request to the trusted execution module, so that the trusted execution module obtains the corresponding symmetric ciphertext data from the data storage module according to the data computing request, decrypts the symmetric ciphertext data to obtain the first plaintext data, homomorphically encrypts the first plaintext data to obtain the homomorphic ciphertext data, sends the homomorphic ciphertext data to the untrusted computing module for homomorphic computing to obtain the homomorphic ciphertext computing result, receives the homomorphic ciphertext computing result sent by the untrusted computing module, decrypts the homomorphic ciphertext computing result, and obtains the plaintext computing result. The embodiment of the present application stores and decrypts data based on symmetric encryption technology and then performs subsequent calculations. Compared with storing and decrypting data based on homomorphic encryption technology and then performing subsequent calculations, under the premise of ensuring data security, it saves data storage space, data transmission network bandwidth and computing resource consumption, improves computing speed, and forms a practical homomorphic encryption application mode through the interactive collaboration of multiple participants such as the client, the trusted execution module, the untrusted computing module and the data storage module.

[0017] The seventh aspect embodiment of the present application proposes a data computing system, including: a data storage module, a trusted execution module provided with the data computing device as described in the fourth aspect embodiment above, an untrusted computing module provided with the data computing device as described in the fifth aspect embodiment above, and a client provided with the data computing device as described in the sixth aspect embodiment above.

[0018] An eighth aspect embodiment of the present application proposes an electronic device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the data calculation method as described in the first aspect embodiment above, or execute the data calculation method as described in the second aspect embodiment above, or execute the data calculation method as described in the third aspect embodiment above.

[0019] The ninth aspect embodiment of the present application proposes a computer-readable storage medium storing computer instructions, wherein the computer instructions are used to enable the computer to execute the data calculation method as described in the first aspect embodiment above, or execute the data calculation method as described in the second aspect embodiment above, or execute the data calculation method as described in the third aspect embodiment above.

[0020] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:

[0022] Figure 1 A flowchart of a data calculation method provided in one embodiment of the present application;

[0023] Figure 2 A flowchart of a data calculation method provided in another embodiment of the present application;

[0024] Figure 3 A flowchart of a data calculation method provided in another embodiment of the present application;

[0025] Figure 4 A flowchart of a data calculation method provided in another embodiment of the present application;

[0026] Figure 5 A flowchart of a data calculation method provided in another embodiment of the present application;

[0027] Figure 6 A flowchart of a data calculation method provided in another embodiment of the present application;

[0028] Figure 7 A flowchart of a data calculation method provided in another embodiment of the present application;

[0029] Figure 8 A schematic diagram of signaling interaction of a data calculation method according to an embodiment of the present application;

[0030] Fig. 9 A schematic diagram of the structure of a data computing device according to an embodiment of the present application;

[0031] Fig.10 A schematic diagram of the structure of a data computing device according to another embodiment of the present application;

[0032] Fig.11 A schematic diagram of the structure of a data computing device according to another embodiment of the present application;

[0033] Fig.12 This is a schematic diagram of the structure of a data computing system according to an embodiment of the present application;

[0034] Fig.13 A schematic diagram of the structure of an electronic device provided in one embodiment of the present application. DETAILED DESCRIPTION

[0035] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, and should not be construed as limiting the present application. The data calculation method, device, system, and electronic device of the embodiments of the present application are described below with reference to the accompanying drawings.

[0036] Figure 1 The data computing method of the embodiment of the present application can be executed by the data computing device provided in the embodiment of the present application, and the data computing device can be set in the trusted execution module of the data computing system. Figure 1 As shown, the data calculation method of the embodiment of the present application may specifically include the following steps:

[0037] S101, obtaining a data calculation request sent by a client.

[0038] Specifically, in application scenarios built on computer technology, data computing can be completed by multiple participants, which can be simply divided into the client where the user is located, the data storage module that provides data storage services, and the participants who undertake computing services (for example, cloud computing services). The computing service can be divided into two parts: the trusted execution module and the untrusted computing module.

[0039] Among them, the trusted execution module is built on the trusted execution environment (TEE). The trusted execution environment provides an isolated and secure program execution space that can protect its internal code and data from access and damage by the external computing environment. The trusted execution environment can be hardware-based, such as Intel® SGX, or software-based, such as a trusted hypervisor that protects applications from operating system attacks.

[0040] In a specific implementation, when the client needs to use the data stored in the data storage module to perform some kind of calculation, for example, data calculation in machine learning model training, the client can send a data calculation request to the trusted execution module. The trusted execution module receives the data calculation request sent by the client and provides computing services.

[0041] It should be noted here that the data calculation request sent by the client may include but is not limited to the data information that needs to be obtained from the data storage module and the call information of the computing program used to implement the data calculation. After the client reviews and determines that the computing program functions correctly and has no security vulnerabilities, the computing program is uploaded and loaded into the trusted execution module so that the trusted execution module can implement data calculation according to the computing program. The client interacts with the trusted execution module and uses the security mechanism provided by the trusted execution module (for example, Intel® SGX's Remote Attestation) to authenticate the identity of the trusted execution module and the integrity of the computing program, and at the same time establishes a secure channel between the client and the trusted execution module.

[0042] S102, obtaining corresponding symmetric ciphertext data from a data storage module according to a data calculation request.

[0043] Specifically, the trusted execution module obtains corresponding symmetric ciphertext data from the data storage module according to the data calculation request obtained in step S101.

[0044] It should be noted here that the data storage module can store data for a long time and provide data according to the needs of the client. The data storage module may be located at a remote end outside the control range of the client and provided by a data storage service provider. To ensure data security, the data needs to be encrypted. Based on the consideration of the ciphertext size and encryption and decryption speed, the data storage module generally uses a symmetric encryption scheme to implement data encryption. For example, the encryption scheme can be the SM4 algorithm and Counter mode, or the AES algorithm with a 256-bit key and GCM mode.

[0045] S103, decrypt the symmetric ciphertext data to obtain first plaintext data.

[0046] Specifically, the trusted execution module decrypts the symmetric ciphertext data acquired in step S102 to obtain first plaintext data corresponding to the symmetric ciphertext data.

[0047] It should be noted here that, in the embodiment of the present application, before the trusted execution module decrypts the symmetric ciphertext data through step S301, the client sends the symmetric encryption key to the trusted execution module through a secure channel. The trusted execution module receives the symmetric encryption key sent by the client, and uses the symmetric encryption key to decrypt the symmetric ciphertext data to obtain the first plaintext data.

[0048] S104, perform homomorphic encryption on the first plaintext data to obtain homomorphic ciphertext data.

[0049] Specifically, the trusted execution module performs homomorphic encryption on the first plaintext data obtained in step S103 to obtain homomorphic ciphertext data.

[0050] Homomorphic encryption is a method of processing data without accessing the data itself. It is a cryptographic technology based on the computational complexity theory of mathematical problems. The homomorphic encrypted data is processed to obtain an output, and the output is decrypted. The result is the same as the output obtained by processing the unencrypted original data in the same way. Homomorphic encryption can perform addition and multiplication operations based on ciphertext, and realize data processing under the premise of ensuring data security.

[0051] It should be noted here that in the embodiment of the present application, before the trusted execution module homomorphically encrypts the first plaintext data through step S104, the client sends the homomorphic encryption key (including the public key and the private key) to the trusted execution module through a secure channel. The trusted execution module receives the homomorphic encryption key sent by the client, and uses the homomorphic encryption key to homomorphically encrypt the first plaintext data to obtain homomorphic ciphertext data. Thereby, the symmetric ciphertext data is converted into homomorphic ciphertext data with a higher security level. For example, the trusted execution module converts the data encrypted by the SM4 algorithm and the Counter mode into homomorphic ciphertext data encrypted by the hierarchical homomorphic encryption algorithm BGV.

[0052] S105, sending the homomorphic ciphertext data to the untrusted computing module, so that the untrusted computing module performs homomorphic computing based on the homomorphic ciphertext data to obtain a homomorphic ciphertext computing result.

[0053] Specifically, the trusted execution module sends the homomorphic ciphertext data obtained in step S104 to the untrusted computing module, and the untrusted computing module performs homomorphic computing based on the homomorphic ciphertext to obtain a homomorphic ciphertext computing result.

[0054] Among them, the untrusted computing module can be built based on an untrusted computing environment, which can include an operating system, virtual machine management software, BIOS, and all other hardware, software, and firmware except the CPU. It has the advantages of rich computing resources and dynamic expansion on demand, and can perform large-scale computing tasks. In order to protect the confidentiality of the data, the calculation performed on the untrusted computing module is based on homomorphic encryption technology, that is, the homomorphic ciphertext data is calculated, and the calculation result obtained is also a homomorphic ciphertext. Depending on the specific computing task, a fully homomorphic encryption algorithm or a partially homomorphic encryption algorithm can be used, which is not limited in this application.

[0055] The data calculation method of the embodiment of the present application is that the trusted execution module obtains the data calculation request sent by the client, obtains the corresponding symmetric ciphertext data from the data storage module according to the data calculation request, decrypts the symmetric ciphertext data to obtain the first plaintext data, homomorphically encrypts the first plaintext data to obtain the homomorphic ciphertext data, and sends the homomorphic ciphertext data to the untrusted computing module, so that the untrusted computing module can perform homomorphic calculations based on the homomorphic ciphertext data to obtain the homomorphic ciphertext calculation results. The embodiment of the present application stores and decrypts data based on symmetric encryption technology and then performs subsequent calculations. Compared with storing and decrypting data based on homomorphic encryption technology and then performing subsequent calculations, under the premise of ensuring data security, it saves data storage space, data transmission network bandwidth and computing resource consumption, improves the computing speed, and forms a practical homomorphic encryption application mode through the interactive collaboration of multiple participants such as the client, the trusted execution module, the untrusted computing module and the data storage module.

[0056] Figure 2 FIG. 1 is a flow chart of a data calculation method provided by another embodiment of the present application. Figure 2 As shown, in Figure 1 Based on the illustrated embodiment, the data calculation method of the embodiment of the present application specifically includes the following steps:

[0057] S201, obtaining a data calculation request sent by a client.

[0058] S202, obtaining corresponding symmetric ciphertext data from a data storage module according to a data calculation request.

[0059] S203, decrypt the symmetric ciphertext data to obtain first plaintext data.

[0060] S204, perform homomorphic encryption on the first plaintext data to obtain homomorphic ciphertext data.

[0061] S205, sending the homomorphic ciphertext data to the untrusted computing module, so that the untrusted computing module performs homomorphic computing based on the homomorphic ciphertext data to obtain a homomorphic ciphertext computing result.

[0062] Specifically, steps S201-S205 are similar to steps S101-S105 in the above embodiment and are not described in detail here.

[0063] In specific implementation, under the premise of meeting security requirements, the computing capabilities of the trusted execution module can be combined to reasonably divide computing tasks between the trusted execution module and the untrusted computing module to improve the overall computing performance. The embodiment of the present application can also specifically include the following steps S206-S210.

[0064] S206, receiving the first homomorphic ciphertext intermediate calculation result sent by the untrusted computing module.

[0065] Specifically, during the data calculation process, the trusted execution module can perform some performance and security-critical calculations according to the calculation needs. During the homomorphic calculation process, the untrusted computing module can send the first homomorphic ciphertext intermediate calculation result to the trusted execution module, and the trusted execution module receives the first homomorphic ciphertext intermediate calculation result sent by the untrusted computing module to perform data calculation in the intermediate stage.

[0066] S207, decrypt the intermediate calculation result of the first homomorphic ciphertext to obtain second plaintext data.

[0067] Specifically, the trusted execution module decrypts the first homomorphic ciphertext intermediate calculation result received in step S206 according to the homomorphic key to obtain the second plaintext data.

[0068] S208, performing calculation according to the second plaintext data to obtain a plaintext intermediate calculation result.

[0069] Specifically, a related calculation program is executed according to the second plaintext data obtained in step S207 to obtain a plaintext intermediate calculation result.

[0070] S209, homomorphically encrypt the plaintext intermediate calculation result to obtain a second homomorphic ciphertext intermediate calculation result.

[0071] Specifically, the trusted execution module homomorphically encrypts the plaintext intermediate calculation result obtained in step S208 according to the homomorphic encryption key to obtain a second homomorphic ciphertext intermediate calculation result.

[0072] S210, sending the second homomorphic ciphertext intermediate calculation result to the untrusted computing module, so that the untrusted computing module performs homomorphic calculation according to the second homomorphic ciphertext intermediate calculation result to obtain the homomorphic ciphertext calculation result.

[0073] Specifically, the trusted execution module sends the second homomorphic ciphertext intermediate calculation result obtained in step S209 to the untrusted computing module. The untrusted computing module receives the second homomorphic ciphertext intermediate calculation result, and continues further homomorphic calculation based on the second homomorphic ciphertext intermediate calculation result. It should be noted that the above-mentioned interactive collaboration can be performed multiple times until the final homomorphic ciphertext calculation result is obtained.

[0074] In the data calculation method of the embodiment of the present application, the trusted execution module obtains a data calculation request sent by the client, obtains corresponding symmetric ciphertext data from the data storage module according to the data calculation request, decrypts the symmetric ciphertext data to obtain first plaintext data, homomorphically encrypts the first plaintext data to obtain homomorphic ciphertext data, and sends the homomorphic ciphertext data to the untrusted computing module, so that the untrusted computing module can perform homomorphic calculation based on the homomorphic ciphertext data to obtain a homomorphic ciphertext calculation result. The embodiment of the present application stores and decrypts data based on symmetric encryption technology and then performs subsequent calculations. Compared with storing and decrypting data based on homomorphic encryption technology and then performing subsequent calculations, under the premise of ensuring data security, it saves data storage space, data transmission network bandwidth and computing resource consumption, and completes data calculation through the trusted execution module and the untrusted computing module in collaboration with homomorphic encryption technology, that is, the homomorphic ciphertext data homomorphically encrypted by the trusted execution module is sent to the untrusted computing module with rich computing resources and capable of executing large-scale computing tasks for homomorphic computing, so that large-scale data computing tasks can be achieved while ensuring data security. At the same time, the trusted execution module performs some performance and security-critical calculations, further improving the computing speed, thereby completing the computing tasks safely and efficiently. A practical homomorphic encryption application mode is formed through the interactive collaboration of multiple participants such as the client, the trusted execution module, the untrusted computing module and the data storage module.

[0075] Figure 3 This is a flow chart of a data computing method provided by another embodiment of the present application. The data computing method of the embodiment of the present application can be executed by the data computing device provided by the embodiment of the present application, and the data computing device can be set in an untrusted computing module of the data computing system. Figure 3 As shown, the data calculation method of the embodiment of the present application may specifically include the following steps:

[0076] S301, receiving homomorphic ciphertext data sent by a trusted execution module, wherein the homomorphic ciphertext data is obtained by the trusted execution module through decryption and homomorphic encryption based on symmetric ciphertext data obtained from a data storage module.

[0077] S302, performing homomorphic calculation according to the homomorphic ciphertext data to obtain a homomorphic ciphertext calculation result.

[0078] It should be noted here that the above explanation of the data calculation method embodiment is also applicable to the data calculation method of the embodiment of the present application, and the specific process will not be repeated here.

[0079] In the data calculation method of the embodiment of the present application, the untrusted computing module receives the homomorphic ciphertext data sent by the trusted execution module, wherein the homomorphic ciphertext data is obtained by the trusted execution module through decryption and homomorphic encryption based on the symmetric ciphertext data obtained from the data storage module, and the homomorphic ciphertext calculation result is obtained by performing homomorphic calculation based on the homomorphic ciphertext data. The embodiment of the present application stores and decrypts data based on symmetric encryption technology for subsequent calculations. Compared with storing and decrypting data based on homomorphic encryption technology for subsequent calculations, while ensuring data security, it saves data storage space, data transmission network bandwidth and computing resource consumption, improves the computing speed, and forms a practical homomorphic encryption application model through the interactive collaboration of multiple participants such as the client, trusted execution module, untrusted computing module and data storage module.

[0080] Figure 4 FIG. 1 is a flow chart of a data calculation method provided by another embodiment of the present application. Figure 4 As shown, in Figure 3 Based on the illustrated embodiment, the data calculation method of the embodiment of the present application specifically includes the following steps:

[0081] S401, receiving homomorphic ciphertext data sent by a trusted execution module, wherein the homomorphic ciphertext data is obtained by the trusted execution module through decryption and homomorphic encryption based on symmetric ciphertext data obtained from a data storage module.

[0082] S402, performing homomorphic calculation according to the homomorphic ciphertext data to obtain a homomorphic ciphertext calculation result.

[0083] Specifically, steps S401-S402 are similar to steps S301-S302 in the above embodiment and are not described in detail here.

[0084] S403, sending the homomorphic ciphertext calculation result to the client, so that the client can decrypt the homomorphic ciphertext calculation result to obtain the plaintext calculation result.

[0085] Specifically, the untrusted computing module sends the homomorphic ciphertext computing result that satisfies the data computing request sent by the client to the client. The client receives the homomorphic ciphertext computing result and obtains the plaintext computing result corresponding to the homomorphic ciphertext computing result by decrypting the homomorphic ciphertext computing result.

[0086] As a feasible implementation mode, based on the above embodiment, Figure 5 As shown, in the above step S402, "performing homomorphic calculation according to the homomorphic ciphertext data to obtain a homomorphic ciphertext calculation result" may specifically include the following steps:

[0087] S501, performing homomorphic calculation according to the homomorphic ciphertext data to obtain a first homomorphic ciphertext intermediate calculation result.

[0088] Specifically, the untrusted computing module performs homomorphic computing based on the homomorphic ciphertext data sent by the trusted execution module to obtain a first homomorphic ciphertext intermediate computing result.

[0089] S502, sending the first homomorphic ciphertext intermediate calculation result to the trusted execution module, so that the trusted execution module decrypts the first homomorphic ciphertext intermediate calculation result to obtain second plaintext data.

[0090] S503, receiving a second homomorphic ciphertext intermediate calculation result sent by the trusted execution module, wherein the second homomorphic ciphertext intermediate calculation result is obtained by homomorphically encrypting the plaintext intermediate calculation result calculated according to the second plaintext data by the trusted execution module.

[0091] S504, performing homomorphic calculation according to the second homomorphic ciphertext intermediate calculation result to obtain a homomorphic ciphertext calculation result.

[0092] Specifically, the untrusted computing module continues further homomorphic computing according to the second homomorphic ciphertext intermediate computing result received in step S503 to obtain a final homomorphic ciphertext computing result.

[0093] It should be noted here that the above explanation of the data calculation method embodiment is also applicable to the data calculation method of the embodiment of the present application, and the specific process will not be repeated here.

[0094] In the data calculation method of the embodiment of the present application, the untrusted computing module receives the homomorphic ciphertext data sent by the trusted execution module, wherein the homomorphic ciphertext data is obtained by the trusted execution module through decryption and homomorphic encryption according to the symmetric ciphertext data obtained from the data storage module, and the homomorphic calculation result is obtained by performing homomorphic calculation according to the homomorphic ciphertext data. The embodiment of the present application stores and decrypts data based on symmetric encryption technology and then performs subsequent calculations. Compared with storing and decrypting data based on homomorphic encryption technology and then performing subsequent calculations, under the premise of ensuring data security, it saves data storage space, data transmission network bandwidth and computing resource consumption, improves the calculation speed, and makes full use of the advantages of the rich computing resources of the untrusted computing module and the ability to dynamically expand on demand for homomorphic calculation, quickly completes data calculation while ensuring data security, and forms a practical homomorphic encryption application mode through the interactive collaboration of multiple participants such as the client, the trusted execution module, the untrusted computing module and the data storage module.

[0095] Figure 6 This is a flow chart of a data calculation method provided by another embodiment of the present application. The data calculation method of the embodiment of the present application can be executed by the data calculation device provided by the embodiment of the present application, and the data calculation device can be set in the client of the data calculation system. Figure 6As shown, the data calculation method of the embodiment of the present application may specifically include the following steps:

[0096] S601, send a data calculation request to the trusted execution module, so that the trusted execution module obtains the corresponding symmetric ciphertext data from the data storage module according to the data calculation request, decrypts the symmetric ciphertext data to obtain first plaintext data, homomorphically encrypts the first plaintext data to obtain homomorphic ciphertext data, and sends the homomorphic ciphertext data to the untrusted computing module for homomorphic computing to obtain a homomorphic ciphertext computing result.

[0097] S602, receiving the homomorphic ciphertext calculation result sent by the untrusted computing module.

[0098] S603, decrypt the homomorphic ciphertext calculation result to obtain the plaintext calculation result.

[0099] Specifically, the homomorphic key is used to decrypt the homomorphic ciphertext calculation result received in step S602 to obtain the corresponding plaintext calculation result.

[0100] It should be noted here that the above explanation of the data calculation method embodiment is also applicable to the data calculation method of the embodiment of the present application, and the specific process will not be repeated here.

[0101] In the data calculation method of the embodiment of the present application, the client sends a data calculation request to the trusted execution module, so that the trusted execution module obtains the corresponding symmetric ciphertext data from the data storage module according to the data calculation request, decrypts the symmetric ciphertext data to obtain the first plaintext data, homomorphically encrypts the first plaintext data to obtain the homomorphic ciphertext data, sends the homomorphic ciphertext data to the untrusted computing module for homomorphic calculation to obtain the homomorphic ciphertext calculation result, receives the homomorphic ciphertext calculation result sent by the untrusted computing module, decrypts the homomorphic ciphertext calculation result, and obtains the plaintext calculation result. The embodiment of the present application stores and decrypts data based on symmetric encryption technology and then performs subsequent calculations. Compared with storing and decrypting data based on homomorphic encryption technology and then performing subsequent calculations, under the premise of ensuring data security, it saves data storage space, data transmission network bandwidth and computing resource consumption, improves the computing speed, and forms a practical homomorphic encryption application mode through the interactive collaboration of multiple participants such as the client, the trusted execution module, the untrusted computing module and the data storage module.

[0102] Figure 7 FIG. 1 is a flow chart of a data calculation method provided by another embodiment of the present application. Figure 7 As shown, in Figure 6 Based on the illustrated embodiment, the data calculation method of the embodiment of the present application specifically includes the following steps:

[0103] S701, send a data calculation request to the trusted execution module, so that the trusted execution module obtains the corresponding symmetric ciphertext data from the data storage module according to the data calculation request, decrypts the symmetric ciphertext data to obtain first plaintext data, homomorphically encrypts the first plaintext data to obtain homomorphic ciphertext data, and sends the homomorphic ciphertext data to the untrusted computing module for homomorphic computing to obtain a homomorphic ciphertext computing result.

[0104] Specifically, step S701 is similar to step S601 in the above embodiment and will not be described in detail here.

[0105] S702: Send the symmetric encryption key to the trusted execution module, so that the trusted execution module uses the symmetric encryption key to decrypt the symmetric ciphertext data to obtain first plaintext data.

[0106] Specifically, the client sends the symmetric encryption key to the trusted execution module through a secure channel.

[0107] S703, sending the homomorphic encryption key to the trusted execution module, so that the trusted execution module uses the homomorphic encryption key to homomorphically encrypt the first plaintext data to obtain homomorphic ciphertext data.

[0108] Specifically, the client sends the homomorphic encryption key to the trusted execution module through a secure channel.

[0109] S704, receiving the homomorphic ciphertext calculation result sent by the untrusted computing module.

[0110] S705, decrypt the homomorphic ciphertext calculation result to obtain the plaintext calculation result.

[0111] Specifically, steps S704-S705 are similar to steps S602-S603 in the above embodiment and are not described in detail here.

[0112] It should be noted here that the above explanation of the data calculation method embodiment is also applicable to the data calculation method of the embodiment of the present application, and the specific process will not be repeated here.

[0113] In the data calculation method of the embodiment of the present application, the client sends a data calculation request to the trusted execution module, so that the trusted execution module obtains the corresponding symmetric ciphertext data from the data storage module according to the data calculation request, decrypts the symmetric ciphertext data to obtain first plaintext data, homomorphically encrypts the first plaintext data to obtain homomorphic ciphertext data, sends the homomorphic ciphertext data to the untrusted computing module for homomorphic calculation to obtain a homomorphic ciphertext calculation result, receives the homomorphic ciphertext calculation result sent by the untrusted computing module, decrypts the homomorphic ciphertext calculation result, and obtains a plaintext calculation result. The embodiment of the present application stores and decrypts data based on symmetric encryption technology for subsequent calculations. Compared with storing and decrypting data based on homomorphic encryption technology for subsequent calculations, it saves data storage space, data transmission network bandwidth and computing resource consumption while ensuring data security, and improves the computing speed. The client sends a data computing request to the trusted execution module, and the trusted execution module can collaborate with the homomorphic encryption machine technology to safely and efficiently complete the data computing task initiated by the client in the untrusted computing module. A practical homomorphic encryption application model is formed through the interactive collaboration of multiple participants such as the client, the trusted execution module, the untrusted computing module and the data storage module.

[0114] To clearly illustrate the data calculation method of the embodiment of the present application, the following is combined with Figure 8 Describe in detail. Figure 8 A schematic diagram of signaling interaction of a data calculation method according to an embodiment of the present application.

[0115] like Figure 8 As shown, the data calculation method of the embodiment of the present application is implemented by the client, the data service module, the trusted execution module and the untrusted computing module, and may specifically include the following steps:

[0116] S801, the client sends a data computing request to the trusted execution module, authenticates the computing program loaded by the trusted execution module, and establishes a secure channel with the trusted execution module.

[0117] S802, the client sends the symmetric encryption key and the homomorphic encryption key to the trusted execution module through a secure channel.

[0118] S803: The trusted execution module obtains the corresponding symmetric ciphertext data from the data storage module according to the data calculation request.

[0119] S804: The trusted execution module decrypts the symmetric ciphertext data using the symmetric encryption key to obtain first plaintext data.

[0120] S805, the trusted execution module uses the homomorphic encryption key to homomorphically encrypt the first plaintext data to obtain homomorphic ciphertext data.

[0121] S806, the trusted execution module sends the homomorphic ciphertext data to the untrusted computing module.

[0122] S807, the untrusted computing module performs homomorphic computing based on the homomorphic ciphertext data.

[0123] S808, the untrusted computing module sends the first homomorphic ciphertext intermediate computing result to the trusted execution module.

[0124] S809, the trusted execution module decrypts the first homomorphic ciphertext intermediate result according to the homomorphic encryption key to obtain second plaintext data.

[0125] S810, the trusted execution module calculates and obtains a plaintext intermediate calculation result according to the second plaintext data.

[0126] S811, the trusted execution module encrypts the plaintext intermediate calculation result to obtain a second homomorphic ciphertext intermediate calculation result.

[0127] S812, the trusted execution module sends the second homomorphic ciphertext intermediate calculation result to the untrusted computing module.

[0128] S813, the untrusted computing module performs homomorphic computing according to the second homomorphic ciphertext intermediate computing result to obtain a homomorphic ciphertext computing result.

[0129] S814, the untrusted computing module sends the homomorphic ciphertext computing result to the client.

[0130] S815, the client decrypts the homomorphic ciphertext calculation result according to the homomorphic encryption key to obtain the plaintext calculation result.

[0131] In order to implement the above embodiment, the embodiment of the present application also proposes a data computing device. Fig. 9 FIG. 1 is a schematic diagram of the structure of a data computing device according to an embodiment of the present application. The device may be provided in a trusted execution module of a data computing system, such as Fig. 9 As shown, the data computing device 900 of the embodiment of the present application may specifically include: a first generating module 901, a second acquiring module 902, a first decryption module 903, a first encryption module 904 and a first sending module 905.

[0132] The first generating module 901 is configured to obtain a data calculation request sent by a client.

[0133] The second acquisition module 902 is configured to acquire corresponding symmetric ciphertext data from the data storage module according to the data calculation request.

[0134] The first decryption module 903 is configured to decrypt the symmetric ciphertext data to obtain first plaintext data.

[0135] The first encryption module 904 is configured to perform homomorphic encryption on the first plaintext data to obtain homomorphic ciphertext data.

[0136] The first sending module 905 is configured to send the homomorphic ciphertext data to the untrusted computing module, so that the untrusted computing module performs homomorphic computing based on the homomorphic ciphertext data to obtain a homomorphic ciphertext computing result.

[0137] In one embodiment of the present application, the data computing device 900 of the embodiment of the present application may also include: a third receiving module, configured to receive a first homomorphic ciphertext intermediate computing result sent by an untrusted computing module; a third decryption module, configured to decrypt the first homomorphic ciphertext intermediate computing result to obtain second plaintext data; a second computing module, configured to perform calculations based on the second plaintext data to obtain a plaintext intermediate computing result; a second encryption module, configured to perform homomorphic encryption on the plaintext intermediate computing result to obtain a second homomorphic ciphertext intermediate computing result; and a third sending module, configured to send the second homomorphic ciphertext intermediate computing result to the untrusted computing module, so that the untrusted computing module can perform homomorphic calculations based on the second homomorphic ciphertext intermediate computing result to obtain a homomorphic ciphertext computing result.

[0138] In one embodiment of the present application, the data computing device 900 of the embodiment of the present application may also include: a fourth receiving module, configured to receive a symmetric encryption key sent by the client; the first decryption module 903 may include: a decryption unit, configured to use the symmetric encryption key to decrypt the symmetric ciphertext data to obtain the first plaintext data.

[0139] In one embodiment of the present application, the data computing device 900 of the embodiment of the present application may also include: a fifth receiving module, configured to receive a homomorphic encryption key sent by the client; the first encryption module 904 may include: an encryption unit, configured to use the homomorphic encryption key to homomorphically encrypt the first plaintext data to obtain homomorphic ciphertext data.

[0140] It should be noted that the above explanation of the data calculation method embodiment is also applicable to the data calculation device of this embodiment, and the specific process will not be repeated here.

[0141] In the data computing device of the embodiment of the present application, the trusted execution module obtains a data computing request sent by the client, obtains corresponding symmetric ciphertext data from the data storage module according to the data computing request, decrypts the symmetric ciphertext data to obtain first plaintext data, homomorphically encrypts the first plaintext data to obtain homomorphic ciphertext data, and sends the homomorphic ciphertext data to the untrusted computing module, so that the untrusted computing module can perform homomorphic computing based on the homomorphic ciphertext data to obtain a homomorphic ciphertext computing result. The embodiment of the present application stores and decrypts data based on symmetric encryption technology and then performs subsequent calculations. Compared with storing and decrypting data based on homomorphic encryption technology and then performing subsequent calculations, under the premise of ensuring data security, it saves data storage space, data transmission network bandwidth and computing resource consumption, and completes data calculation through the trusted execution module and the untrusted computing module in collaboration with homomorphic encryption technology, that is, the homomorphic ciphertext data homomorphically encrypted by the trusted execution module is sent to the untrusted computing module with rich computing resources and capable of executing large-scale computing tasks for homomorphic computing, so that large-scale data computing tasks can be achieved while ensuring data security. At the same time, the trusted execution module performs some performance and security-critical calculations, further improving the computing speed, thereby completing the computing tasks safely and efficiently. A practical homomorphic encryption application mode is formed through the interactive collaboration of multiple participants such as the client, the trusted execution module, the untrusted computing module and the data storage module.

[0142] In order to implement the above embodiment, the embodiment of the present application also proposes a data computing device. Fig.10 FIG. 1 is a schematic diagram of the structure of a data computing device according to another embodiment of the present invention. The device may be arranged in an untrusted computing module of a data computing system, such as Fig.10 As shown, the data computing device 1000 of the embodiment of the present application may specifically include: a first receiving module 1001 and a first computing module 1002 .

[0143] The first receiving module 1001 is configured to receive homomorphic ciphertext data sent by the trusted execution module, wherein the homomorphic ciphertext data is obtained by the trusted execution module through decryption and homomorphic encryption based on the symmetric ciphertext data obtained from the data storage module.

[0144] The first computing module 1002 is configured to perform homomorphic computing based on the homomorphic ciphertext data to obtain a homomorphic ciphertext computing result.

[0145] In one embodiment of the present application, the data computing device 1000 of the embodiment of the present application may also include: a fourth sending module, configured to send the homomorphic ciphertext calculation result to the client, so that the client can decrypt the homomorphic ciphertext calculation result to obtain a plaintext calculation result.

[0146] In one embodiment of the present application, the first computing module 1002 may include: a first computing unit, configured to perform homomorphic computing based on homomorphic ciphertext data to obtain a first homomorphic ciphertext intermediate computing result; a sending unit, configured to send the first homomorphic ciphertext intermediate computing result to a trusted execution module, so that the trusted execution module can decrypt the first homomorphic ciphertext intermediate computing result to obtain second plaintext data; a receiving unit, configured to receive a second homomorphic ciphertext intermediate computing result sent by the trusted execution module, wherein the second homomorphic ciphertext intermediate computing result is obtained by homomorphically encrypting the plaintext intermediate computing result calculated by the trusted execution module based on the second plaintext data; and a second computing unit, configured to perform homomorphic computing based on the second homomorphic ciphertext intermediate computing result to obtain a homomorphic ciphertext computing result.

[0147] It should be noted that the above explanation of the data calculation method embodiment is also applicable to the data calculation device of this embodiment, and the specific process will not be repeated here.

[0148] In the data computing device of the embodiment of the present application, the untrusted computing module receives the homomorphic ciphertext data sent by the trusted execution module, wherein the homomorphic ciphertext data is obtained by the trusted execution module through decryption and homomorphic encryption according to the symmetric ciphertext data obtained from the data storage module, and the homomorphic calculation result is obtained by performing homomorphic calculation according to the homomorphic ciphertext data. The embodiment of the present application stores and decrypts data based on symmetric encryption technology and then performs subsequent calculations. Compared with storing and decrypting data based on homomorphic encryption technology and then performing subsequent calculations, under the premise of ensuring data security, it saves data storage space, data transmission network bandwidth and computing resource consumption, improves the computing speed, and makes full use of the advantages of the rich computing resources of the untrusted computing module and the ability to dynamically expand on demand for homomorphic computing, quickly completes data calculation while ensuring data security, and forms a practical homomorphic encryption application mode through the interactive collaboration of multiple participants such as the client, the trusted execution module, the untrusted computing module and the data storage module.

[0149] In order to implement the above embodiment, the embodiment of the present application also proposes a data computing device. Fig.11 FIG. 1 is a schematic diagram of the structure of a data computing device according to another embodiment of the present application. The device may be arranged in a client of a data computing system, such as Fig.11 As shown, the data computing device 1100 of the embodiment of the present application may specifically include: a second sending module 1101 , a second receiving module 1102 , and a second decryption module 1103 .

[0150] The second sending module 1101 is configured to send a data calculation request to the trusted execution module, so that the trusted execution module obtains the corresponding symmetric ciphertext data from the data storage module according to the data calculation request, decrypts the symmetric ciphertext data to obtain first plaintext data, homomorphically encrypts the first plaintext data to obtain homomorphic ciphertext data, and sends the homomorphic ciphertext data to the untrusted computing module for homomorphic computing to obtain a homomorphic ciphertext computing result.

[0151] The second receiving module 1102 is configured to receive the homomorphic ciphertext calculation result sent by the untrusted computing module.

[0152] The second decryption module 1103 is configured to decrypt the homomorphic ciphertext calculation result to obtain a plaintext calculation result.

[0153] In one embodiment of the present application, the data computing device 1100 of the embodiment of the present application may also include: a fifth sending module, configured to send the symmetric encryption key to the trusted execution module, so that the trusted execution module uses the symmetric encryption key to decrypt the symmetric ciphertext data to obtain the first plaintext data.

[0154] In one embodiment of the present application, the data computing device 1100 of the embodiment of the present application may also include: a sixth sending module, configured to send the homomorphic encryption key to the trusted execution module, so that the trusted execution module uses the homomorphic encryption key to homomorphically encrypt the first plaintext data to obtain homomorphic ciphertext data.

[0155] It should be noted that the above explanation of the data calculation method embodiment is also applicable to the data calculation device of this embodiment, and the specific process will not be repeated here.

[0156] In the data computing device of the embodiment of the present application, the client sends a data computing request to the trusted execution module, so that the trusted execution module obtains the corresponding symmetric ciphertext data from the data storage module according to the data computing request, decrypts the symmetric ciphertext data to obtain first plaintext data, homomorphically encrypts the first plaintext data to obtain homomorphic ciphertext data, sends the homomorphic ciphertext data to the untrusted computing module for homomorphic computing to obtain a homomorphic ciphertext computing result, receives the homomorphic ciphertext computing result sent by the untrusted computing module, decrypts the homomorphic ciphertext computing result, and obtains a plaintext computing result. The embodiment of the present application stores and decrypts data based on symmetric encryption technology for subsequent calculations. Compared with storing and decrypting data based on homomorphic encryption technology for subsequent calculations, it saves data storage space, data transmission network bandwidth and computing resource consumption while ensuring data security, and improves the computing speed. The client sends a data calculation request to the trusted execution module, and the trusted execution module can cooperate with the homomorphic encryption technology to safely and efficiently complete the data calculation task initiated by the client in the untrusted computing module. A practical homomorphic encryption application mode is formed through the interactive collaboration of multiple participants such as the client, the trusted execution module, the untrusted computing module and the data storage module.

[0157] To implement the above embodiment, the present application also proposes a data computing system. Fig.12 FIG. 1 is a schematic diagram of the data computing system structure of an embodiment of the present application. Fig.12 As shown, the data computing system 1200 of the embodiment of the present application may specifically include: a data storage module 1201, Fig. 9 The trusted execution module 1202 of the data computing device shown in FIG. Fig.10 The untrusted computing module 1203 of the data computing device shown in FIG. Fig.11 A client 1204 of the data computing device is shown.

[0158] According to an embodiment of the present application, the present application also provides an electronic device and a readable storage medium.

[0159] like Fig.13 , is a block diagram of an electronic device according to a data computing method according to an embodiment of the present application. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as intelligent voice interaction devices, personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples, and are not intended to limit the implementation of the present application described herein and / or required.

[0160] like Fig.13 As shown, the electronic device includes: one or more processors 1301, a memory 1302, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. The various components are connected to each other using different buses, and can be installed on a common mainboard or installed in other ways as needed. The processor 1301 can process instructions executed in the electronic device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as a display device coupled to the interface). In other embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple electronic devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Fig.13 A processor 1301 is taken as an example.

[0161] The memory 1302 is a non-transient computer-readable storage medium provided in the present application. The memory stores instructions executable by at least one processor to enable at least one processor to perform the data calculation method provided in the present application. The non-transient computer-readable storage medium of the present application stores computer instructions, which are used to enable a computer to perform the data calculation method provided in the present application.

[0162] The memory 1302 is a non-transient computer-readable storage medium that can be used to store non-transient software programs, non-transient computer executable programs and modules, such as program instructions / modules corresponding to the data calculation method in the embodiment of the present application (for example, the attached Fig. 9 The first generating module 901, the second acquiring module 902, the first decrypting module 903, the first encrypting module 904 and the first sending module 905 or the attached Fig.10 The first receiving module 1001 and the first calculating module 1002 shown in the figure or the attached Fig.11 The processor 1301 executes various functional applications and data processing of the server by running the non-transient software programs, instructions and modules stored in the memory 1302, that is, implements the data calculation method in the above method embodiment.

[0163] The memory 1302 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the electronic device of the data calculation method, etc. In addition, the memory 1302 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory 1302 may optionally include a memory remotely arranged relative to the processor 1301, and these remote memories may be connected to the electronic device of the data calculation method via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0164] The electronic device of the data calculation method may further include: an input device 1303 and an output device 1304. The processor 1301, the memory 1302, the input device 1303 and the output device 1304 may be connected via a bus or other means. Fig.13 The example of connecting through bus is taken in the following.

[0165] The input device 1303 can receive input digital or character information, and generate key signal input related to user settings and function control of the electronic device of the data calculation method, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, an indicator rod, one or more mouse buttons, a trackball, a joystick and other input devices. The output device 1304 may include a display device, an auxiliary lighting device (e.g., an LED) and a tactile feedback device (e.g., a vibration motor), etc. The display device may include, but is not limited to, a liquid crystal display (LCD), a light emitting diode (LED) display and a plasma display. In some embodiments, the display device may be a touch screen.

[0166] Various implementations of the systems and techniques described herein can be realized in digital electronic circuit systems, integrated circuit systems, dedicated ASICs (application specific integrated circuits), computer hardware, firmware, software, and / or combinations thereof. These various implementations may include being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0167] These computer programs (also referred to as programs, software, software applications, or code) include machine instructions for programmable processors and can be implemented using high-level procedural and / or object-oriented programming languages, and / or assembly / machine languages. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, device, and / or means (e.g., disk, optical disk, memory, programmable logic device (PLD)) for providing machine instructions and / or data to a programmable processor, including a machine-readable medium that receives machine instructions as machine-readable signals. The term "machine-readable signal" refers to any signal for providing machine instructions and / or data to a programmable processor.

[0168] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0169] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.

[0170] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship between the client and the server is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services ("Virtual Private Server", or "VPS" for short).

[0171] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this application can be executed in parallel, sequentially or in different orders, as long as the expected results of the technical solution disclosed in this application can be achieved, and this document is not limited here.

[0172] In the description of this specification, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0173] Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limitations on the present application. Ordinary technicians in this field can change, modify, replace and modify the above embodiments within the scope of the present application.

Claims

1. A data calculation method, characterized in that: include: Get the data calculation request sent by the client; Acquire corresponding symmetric ciphertext data from the data storage module according to the data calculation request; Decrypting the symmetric ciphertext data to obtain first plaintext data; Performing homomorphic encryption on the first plaintext data to obtain homomorphic ciphertext data; Sending the homomorphic ciphertext data to an untrusted computing module, so that the untrusted computing module performs homomorphic computing according to the homomorphic ciphertext data to obtain a homomorphic ciphertext computing result; Receiving a first homomorphic ciphertext intermediate calculation result sent by the untrusted computing module; Decrypting the first homomorphic ciphertext intermediate calculation result to obtain second plaintext data; Performing calculation according to the second plaintext data to obtain a plaintext intermediate calculation result; Performing homomorphic encryption on the plaintext intermediate calculation result to obtain a second homomorphic ciphertext intermediate calculation result; The second homomorphic ciphertext intermediate calculation result is sent to the untrusted computing module, so that the untrusted computing module performs homomorphic calculation according to the second homomorphic ciphertext intermediate calculation result to obtain the homomorphic ciphertext calculation result.

2. The data calculation method according to claim 1, characterized in that: Also includes: Receiving a symmetric encryption key sent by the client; The decrypting the symmetric ciphertext data to obtain the first plaintext data includes: The symmetric encryption key is used to decrypt the symmetric ciphertext data to obtain the first plaintext data.

3. The data calculation method according to claim 1, characterized in that: Also includes: Receiving a homomorphic encryption key sent by the client; The performing homomorphic encryption on the first plaintext data to obtain homomorphic ciphertext data includes: The first plaintext data is homomorphically encrypted using the homomorphic encryption key to obtain the homomorphic ciphertext data.

4. A data calculation method, characterized in that: include: Receiving homomorphic ciphertext data sent by the trusted execution module, wherein the homomorphic ciphertext data is obtained by the trusted execution module through decryption and homomorphic encryption based on the symmetric ciphertext data obtained from the data storage module; Performing homomorphic calculation according to the homomorphic ciphertext data to obtain a homomorphic ciphertext calculation result; The step of performing homomorphic calculation according to the homomorphic ciphertext data to obtain a homomorphic ciphertext calculation result includes: Performing homomorphic calculation according to the homomorphic ciphertext data to obtain a first homomorphic ciphertext intermediate calculation result; Sending the first homomorphic ciphertext intermediate calculation result to the trusted execution module, so that the trusted execution module decrypts the first homomorphic ciphertext intermediate calculation result to obtain second plaintext data; Receiving a second homomorphic ciphertext intermediate calculation result sent by the trusted execution module, wherein the second homomorphic ciphertext intermediate calculation result is obtained by homomorphically encrypting the plaintext intermediate calculation result calculated by the trusted execution module according to the second plaintext data; A homomorphic calculation is performed according to the second homomorphic ciphertext intermediate calculation result to obtain the homomorphic ciphertext calculation result.

5. The data calculation method according to claim 4, characterized in that: Also includes: The homomorphic ciphertext calculation result is sent to the client, so that the client can decrypt the homomorphic ciphertext calculation result to obtain the plaintext calculation result.

6. A data calculation method, characterized in that: include: Sending a data computing request to a trusted execution module, so that the trusted execution module obtains corresponding symmetric ciphertext data from a data storage module according to the data computing request, decrypts the symmetric ciphertext data to obtain first plaintext data, homomorphically encrypts the first plaintext data to obtain homomorphic ciphertext data, and sends the homomorphic ciphertext data to an untrusted computing module for homomorphic computing to obtain a homomorphic ciphertext computing result; Receiving the homomorphic ciphertext calculation result sent by the untrusted computing module; Decrypting the homomorphic ciphertext calculation result to obtain a plaintext calculation result; The trusted execution module is further used for: Receiving a first homomorphic ciphertext intermediate calculation result sent by the untrusted computing module; Decrypting the first homomorphic ciphertext intermediate calculation result to obtain second plaintext data; Performing calculation according to the second plaintext data to obtain a plaintext intermediate calculation result; Performing homomorphic encryption on the plaintext intermediate calculation result to obtain a second homomorphic ciphertext intermediate calculation result; The second homomorphic ciphertext intermediate calculation result is sent to the untrusted computing module, so that the untrusted computing module performs homomorphic calculation according to the second homomorphic ciphertext intermediate calculation result to obtain the homomorphic ciphertext calculation result.

7. The data calculation method according to claim 6, characterized in that: Also includes: The symmetric encryption key is sent to the trusted execution module, so that the trusted execution module uses the symmetric encryption key to decrypt the symmetric ciphertext data to obtain the first plaintext data.

8. The data calculation method according to claim 6, characterized in that: Also includes: The homomorphic encryption key is sent to the trusted execution module, so that the trusted execution module uses the homomorphic encryption key to homomorphically encrypt the first plaintext data to obtain the homomorphic ciphertext data.

9. A data computing device, characterized in that: include: A first acquisition module is configured to acquire a data calculation request sent by a client; A second acquisition module is configured to acquire corresponding symmetric ciphertext data from the data storage module according to the data calculation request; A first decryption module is configured to decrypt the symmetric ciphertext data to obtain first plaintext data; A first encryption module is configured to perform homomorphic encryption on the first plaintext data to obtain homomorphic ciphertext data; A first sending module is configured to send the homomorphic ciphertext data to an untrusted computing module, so that the untrusted computing module performs homomorphic computing according to the homomorphic ciphertext data to obtain a homomorphic ciphertext computing result; The device is also used for: Receiving a first homomorphic ciphertext intermediate calculation result sent by the untrusted computing module; Decrypting the first homomorphic ciphertext intermediate calculation result to obtain second plaintext data; Performing calculation according to the second plaintext data to obtain a plaintext intermediate calculation result; Performing homomorphic encryption on the plaintext intermediate calculation result to obtain a second homomorphic ciphertext intermediate calculation result; The second homomorphic ciphertext intermediate calculation result is sent to the untrusted computing module, so that the untrusted computing module performs homomorphic calculation according to the second homomorphic ciphertext intermediate calculation result to obtain the homomorphic ciphertext calculation result.

10. A data computing device, characterized in that: include: A first receiving module is configured to receive homomorphic ciphertext data sent by a trusted execution module, wherein the homomorphic ciphertext data is obtained by the trusted execution module through decryption and homomorphic encryption based on symmetric ciphertext data obtained from a data storage module; A first computing module is configured to perform homomorphic computing according to the homomorphic ciphertext data to obtain a homomorphic ciphertext computing result; The first computing module is specifically configured as follows: Performing homomorphic calculation according to the homomorphic ciphertext data to obtain a first homomorphic ciphertext intermediate calculation result; Sending the first homomorphic ciphertext intermediate calculation result to the trusted execution module, so that the trusted execution module decrypts the first homomorphic ciphertext intermediate calculation result to obtain second plaintext data; Receiving a second homomorphic ciphertext intermediate calculation result sent by the trusted execution module, wherein the second homomorphic ciphertext intermediate calculation result is obtained by homomorphically encrypting the plaintext intermediate calculation result calculated by the trusted execution module according to the second plaintext data; A homomorphic calculation is performed according to the second homomorphic ciphertext intermediate calculation result to obtain the homomorphic ciphertext calculation result.

11. A data computing device, characterized in that: include: A second sending module is configured to send a data computing request to a trusted execution module, so that the trusted execution module obtains corresponding symmetric ciphertext data from a data storage module according to the data computing request, decrypts the symmetric ciphertext data to obtain first plaintext data, performs homomorphic encryption on the first plaintext data to obtain homomorphic ciphertext data, and sends the homomorphic ciphertext data to an untrusted computing module for homomorphic computing to obtain a homomorphic ciphertext computing result; A second receiving module is configured to receive the homomorphic ciphertext calculation result sent by the untrusted computing module; A second decryption module is configured to decrypt the homomorphic ciphertext calculation result to obtain a plaintext calculation result; The trusted execution module is further used for: Receiving a first homomorphic ciphertext intermediate calculation result sent by the untrusted computing module; Decrypting the first homomorphic ciphertext intermediate calculation result to obtain second plaintext data; Performing calculation according to the second plaintext data to obtain a plaintext intermediate calculation result; Performing homomorphic encryption on the plaintext intermediate calculation result to obtain a second homomorphic ciphertext intermediate calculation result; The second homomorphic ciphertext intermediate calculation result is sent to the untrusted computing module, so that the untrusted computing module performs homomorphic calculation according to the second homomorphic ciphertext intermediate calculation result to obtain the homomorphic ciphertext calculation result.

12. A data computing system, characterized in that: include: A data storage module, a trusted execution module provided with the data computing device as claimed in claim 9, an untrusted computing module provided with the data computing device as claimed in claim 10, and a client provided with the data computing device as claimed in claim 11.

13. An electronic device, characterized in that: include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the data calculation method as described in any one of claims 1-3, or execute the data calculation method as described in any one of claims 4-5, or execute the data calculation method as described in any one of claims 6-8.

14. A computer-readable storage medium storing computer instructions, characterized in that: The computer instructions are used to enable the computer to execute the data calculation method according to any one of claims 1 to 3, or to execute the data calculation method according to any one of claims 4 to 5, or to execute the data calculation method according to any one of claims 6 to 8.