An integrated fully homomorphic encryption implementation method, device and system
Through interpretation, re-representation and encapsulation of diverse homomorphic encryption solutions, a fully homomorphic encryption solution is formed, which solves the problem of lacking fully homomorphic encryption solutions in the existing technology, and realizes rich and efficient privacy calculation methods to ensure data Privacy and security.
Patent Information
- Application Number
- CN202111166370.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-30
- Publication Date
- 2025-02-14
- Estimated Expiration
- 2041-09-30
AI Technical Summary
There is a lack of secure and practical full homomorphic encryption solutions in the prior art, and it is difficult to provide unified and complete computing functions with diversified homomorphic encryption algorithms.
Through interpretation, re-representation and unified encapsulation of diversified homomorphic encryption solutions, an intermediate layer integrated fully homomorphic encryption solution is formed, providing privacy computing methods that support all computing functions.
It has realized a richer, more efficient and more complete privacy computing method, ensured data privacy and security in cloud computing services, and supported multi-functional convergence and homomorphic encryption methods for large-scale applications.
Smart Images

Figure CN114003924B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to an integrated fully homomorphic encryption implementation method, device, background business equipment, system and computer-readable storage medium. Background Art
[0002] This article deals with data privacy and security protection technology based on homomorphic encryption, which has attracted much attention in many fields involving data privacy and security, such as cloud computing, blockchain, and artificial intelligence. As an advanced technology with the highest security in privacy-enhancing computing methods, homomorphic encryption can realize the calculation and processing of data in a ciphertext state during data collection, calculation, storage, transmission, search, and analysis, achieving the goal of "data available but invisible", protecting and enhancing data privacy and security. Its mathematical expression is: D(G(E(m)))=F(m).
[0003] like Figure 1 As shown in the data processing process of the above formula, the client has plaintext data m, and after encryption Encrypt, the ciphertext E(m) is outsourced to the cloud for processing G(·). The client obtains the homomorphic calculation ciphertext result G(E(m)) returned by the cloud and decrypts it Decrypt to obtain the expected plaintext calculation result F(m). Homomorphic encryption generally includes key generation, data encryption, homomorphic calculation and result decryption. Among them, the data encryption and result decryption process are completed by the client, and the homomorphic calculation process is completed by the cloud.
[0004] Homomorphic encryption can be divided into fully homomorphic encryption and non-fully homomorphic encryption. Fully homomorphic encryption refers to a homomorphic encryption scheme that can provide all the unrestricted computing functions (functions) required by the application; non-fully homomorphic encryption refers to a scheme that can only provide partial and restricted computing functions (functions), including but not limited to partial (somewhat) homomorphism, leveled homomorphism, etc.
[0005] In terms of algorithm research, most homomorphic encryption schemes are currently partial homomorphism, hierarchical homomorphism and other non-fully homomorphic encryption schemes, and the algorithms are safe and practical in specific applications. Fully homomorphic encryption only provides theoretical construction methods, and there is no safe and practical fully homomorphic encryption solution yet. In addition, the implementation of fully homomorphic algorithms is difficult and arduous.
[0006] In terms of program development, most of the existing achievements are non-fully homomorphic encryption function libraries developed based on existing algorithm prototypes, corresponding to a single homomorphic encryption scheme. Such function libraries only provide some of the computing functions required by program applications, and there is no fully homomorphic encryption function library that supports all computing functions. Summary of the invention
[0007] The purpose of this application is to provide an integrated fully homomorphic encryption implementation method, device, background business equipment, system and computer-readable storage medium to solve the problem of the current lack of fully homomorphic encryption solutions. The specific solution is as follows:
[0008] In a first aspect, the present application provides an integrated fully homomorphic encryption implementation method, including:
[0009] According to the requirements of the integrated method, the diversified homomorphic encryption scheme of the lower layer is interpreted to obtain the interpretation result;
[0010] Re-expressing the interpretation result of the lower layer according to the consistency requirement to obtain a re-expression result;
[0011] The re-representation results of the lower layer are uniformly encapsulated according to the consistency requirement to form a fully homomorphic encryption solution integrated in the middle layer;
[0012] According to the call request of the upper-layer privacy computing application, the privacy computing process is implemented using the fully homomorphic encryption solution.
[0013] Optionally, the explanation of the diversified homomorphic encryption scheme of the lower layer according to the requirements of the integration method includes:
[0014] According to the requirements of the integrated method, the algorithm process and functions of the lower-level diversified homomorphic encryption scheme are explained for easy re-expression, and the implementation method of the explanation includes any one or more of the following: direct expression, indirect expression and conversion expression.
[0015] Optionally, re-presenting the interpretation result of the lower layer according to the consistency requirement includes:
[0016] In accordance with the consistency requirement, the algorithmic process and functions in the interpretation result are restated for ease of encapsulation, and the implementation method of the restatement includes any one or more of the following: direct representation, indirect representation and conversion representation.
[0017] Optionally, the algorithm process and function include any one or more of the following: data, coding, key, encryption, calculation, decryption, and decoding.
[0018] Optionally, the explanation and the re-expression may be in the form of any one or more of the following: pseudo code, flow chart, programming language.
[0019] Optionally, re-expressing the interpretation result of the lower layer according to the consistency requirement to obtain the re-expression result includes:
[0020] Set up a consistent representation method for the integrated system, including unified representation and management of data types and relationships, and parameters;
[0021] According to the consistent representation method, the interpretation results of the lower layer are re-represented to form an integrated algorithm solution with unified representation and unified management;
[0022] According to the integrated algorithm scheme, the homomorphic encryption function library is uniformly encoded, and conversion and replacement interfaces are reserved for each function of different schemes to obtain an integrated and fused fully homomorphic encryption function library as a re-representation result.
[0023] In a second aspect, the present application provides an integrated fully homomorphic encryption implementation device, comprising:
[0024] An explanation module is used to explain the diversified homomorphic encryption scheme of the lower layer according to the requirements of the integrated method to obtain the explanation result;
[0025] A re-representation module, used for re-representing the interpretation result of the lower layer according to the consistency requirement to obtain a re-representation result;
[0026] An encapsulation module is used to uniformly encapsulate the re-representation results of the lower layer according to the consistency requirement to form a fully homomorphic encryption solution integrated in the middle layer;
[0027] The calling module is used to implement the privacy computing process using the fully homomorphic encryption solution according to the calling request of the upper-layer privacy computing application.
[0028] In a third aspect, the present application provides a background service device, including:
[0029] Memory: used to store computer programs;
[0030] Processor: used to execute the computer program to implement the integrated fully homomorphic encryption implementation method as described above.
[0031] In a fourth aspect, the present application provides an integrated fully homomorphic encryption system, including a front-end application device and also includes the back-end business device as described above.
[0032] In a fifth aspect, the present application provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, it is used to implement the integrated fully homomorphic encryption implementation method as described above.
[0033] The present application provides an integrated fully homomorphic encryption implementation method, including: interpreting the diversified homomorphic encryption scheme of the lower layer according to the requirements of the integrated method to obtain the interpretation result; re-representing the interpretation result of the lower layer according to the requirements of consistency to obtain the re-representation result; uniformly encapsulating the re-representation result of the lower layer according to the requirements of consistency to form an integrated fully homomorphic encryption solution for the middle layer; and implementing the privacy computing process using the fully homomorphic encryption solution according to the call request of the upper-layer privacy computing application. It can be seen that this method targets the respective advantages of the current diversified homomorphic encryption algorithms, and integrates the diversified homomorphic encryption algorithms into a unified, consistent, and complete fully homomorphic encryption solution through technical means such as interpretation, re-representation, and encapsulation, providing a richer, more efficient, and more complete privacy computing method.
[0034] In addition, the present application also provides an integrated fully homomorphic encryption implementation device, background business equipment, system and computer-readable storage medium, the technical effects of which correspond to the technical effects of the above-mentioned method and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] In order to more clearly illustrate the embodiments of the present application or the technical solutions of the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0036] Figure 1 This is a schematic diagram of privacy computing based on homomorphic encryption;
[0037] Figure 2 A flowchart of the first embodiment of the integrated fully homomorphic encryption implementation method provided by the present application;
[0038] Figure 3 A schematic diagram of the process of Embodiment 2 of the integrated fully homomorphic encryption implementation method provided in this application;
[0039] Figure 4 A schematic diagram of a specific application example of the integrated fully homomorphic encryption implementation method provided in this application Figure 1 ;
[0040] Figure 5 A schematic diagram of a specific application example of the integrated fully homomorphic encryption implementation method provided in this application Figure 2 ;
[0041] Figure 6 A schematic diagram of an embodiment of an integrated fully homomorphic encryption implementation device provided in this application. DETAILED DESCRIPTION
[0042] In order to enable those skilled in the art to better understand the present application, the present application is further described in detail below in conjunction with the accompanying drawings and specific implementation methods. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.
[0043] Homomorphic encryption, as the most secure method in privacy enhancement technology, is of great significance to the data privacy protection of society, the country, and enterprises. Through the research and development of homomorphic encryption technology, it is beneficial to improve the company's product competitiveness, as well as the basic research and application development capabilities of advanced technologies. At present, homomorphic encryption algorithms are diverse, and different schemes provide computing functions with different functions for different data types. However, there is no fully homomorphic encryption algorithm that can provide unified, complete, and ideal computing functions.
[0044] This application aims at the respective advantages of the current diversified homomorphic encryption algorithms and provides an integrated fully homomorphic encryption implementation method, device, background business equipment, system and computer-readable storage medium. Specifically, this application integrates the diversified homomorphic encryption algorithms into a unified, consistent and complete fully homomorphic encryption solution through interpretation, re-representation and encapsulation, providing a richer, more efficient and more complete privacy computing method. In practical applications, this application can ensure the privacy and security of data in cloud computing services, which is conducive to the application and promotion of cloud computing related products.
[0045] In summary, in view of the advantages and disadvantages of homomorphic encryption schemes, this application aims to integrate multiple non-fully homomorphic encryption schemes to build a fully homomorphic encryption scheme, provide multi-functional fusion, support a wide range of homomorphic encryption methods and devices for developers to call the required homomorphic computing functions at any time to meet different application requirements. Unless otherwise specified, the homomorphic encryption scheme in this application generally refers to a non-fully homomorphic encryption scheme.
[0046] The following is an introduction to the integrated fully homomorphic encryption implementation method provided by this application. Figure 2 , Embodiment 1 includes:
[0047] S11. Explain the diversified homomorphic encryption scheme of the lower layer according to the requirements of the integrated method to obtain an explanation result;
[0048] S12, re-expressing the interpretation result of the lower layer according to the consistency requirement to obtain a re-expression result;
[0049] S13, uniformly encapsulate the re-representation results of the lower layer according to the consistency requirement to form a fully homomorphic encryption solution integrated in the middle layer;
[0050] S14. According to the call request of the upper-layer privacy computing application, the privacy computing process is implemented using the fully homomorphic encryption solution.
[0051] This embodiment implements a technical process based on interpretation, re-representation, encapsulation, and calling based on a technical framework that includes lower-layer algorithms, middle-layer representation, and upper-layer interfaces. Ultimately, the lower-layer homomorphic encryption algorithm is diversely integrated, the middle layer provides process interpretation and unified representation functions, and the upper-layer application interface meets consistency requirements.
[0052] First, the lower-level diversified homomorphic encryption scheme is interpreted according to the requirements of the integration method. Secondly, the algorithm interpreted by the lower layer is re-expressed according to the consistency requirements, and the parameters, functions and other components are uniformly planned and managed. Then, the lower-level modules are uniformly encapsulated according to the consistency requirements to form a fully homomorphic encryption solution integrated in the middle layer. Finally, the upper-level privacy computing application uniformly calls the fully homomorphic encryption function library of the middle layer, including but not limited to direct calls, indirect calls and conversion calls, to complete the privacy computing function.
[0053] Interpretation refers to the explanation of algorithmic processes and functions according to unified rules for the purpose of re-expression. The main technical methods include but are not limited to direct expression, indirect expression and conversion expression. Re-expression refers to the re-expression of algorithmic processes and functions according to unified rules for the purpose of encapsulation. The main technical methods include but are not limited to direct expression, indirect expression and conversion expression. Encapsulation refers to the re-encapsulation of algorithmic processes and interfaces according to unified rules to form a consistent interface for easy calling. Calling refers to calling the encapsulated program interface according to the requirements of privacy computing applications in order to complete privacy computing. This process includes but is not limited to direct call calculation, indirect expression calculation and conversion form calculation.
[0054] It can be seen that the integrated fully homomorphic encryption implementation method provided in this embodiment utilizes the intermediate layer representation to integrate multiple homomorphic encryption schemes to form a fully homomorphic encryption integrated solution, providing a complete homomorphic computing function for privacy computing applications.
[0055] The following is a detailed introduction to Example 2 of the integrated fully homomorphic encryption implementation method provided by this application.
[0056] like Figure 3 As shown, this embodiment involves a three-layer integrated structure and components of a lower-layer homomorphic encryption algorithm, a middle-layer fully homomorphic encryption solution, and an upper-layer privacy computing application. The functions of each layer are as follows.
[0057] Lower-layer homomorphic encryption algorithm: refers to a method with partial homomorphic encryption function, including but not limited to the known BGV scheme, BFV scheme, CKKS scheme, etc. Such schemes can provide privacy computing methods with certain specific functions and advantages, but are not sufficient to support more privacy computing applications.
[0058] Middle-layer fully homomorphic encryption solution: refers to the fully homomorphic encryption implementation method and equipment that integrates the lower-layer algorithms, and can provide a set of functions with computing functions for upper-layer privacy computing applications. This solution interprets and re-expresses diverse homomorphic encryption algorithms through unified rules to form a unified description for different algorithms. At the same time, the integrated homomorphic encryption scheme is consistently encapsulated, and a unified calling interface is provided to achieve seamless calling. The main technical methods include but are not limited to direct, indirect and conversion technical means.
[0059] Upper-level privacy computing applications: refers to data that meets the requirement of "available but invisible" and can achieve business goals without affecting data privacy and security. Specific application scenarios include but are not limited to third-party promotion applications based on financial institution data, data and model sharing based on deep learning, personalized and precise services based on personal privacy data, and transaction data anonymity based on blockchain.
[0060] The integrated system of the present invention mainly includes four technical means: interpretation, representation, encapsulation and call. The process of interpretation and representation is Figure 3 In the I&R combination, the encapsulation and calling process is Figure 3 China-Israel E&C Merger stated that the specific technical requirements are as follows:
[0061] Explanation: The algorithm process and functions (such as data, coding, key, encryption, calculation, decryption, decoding) are explained in accordance with unified rules (such as pseudocode, flow chart, programming language, etc.) to facilitate re-expression. The main technical methods include but are not limited to direct expression, indirect expression and conversion expression.
[0062] Re-expression: The algorithm process and functions (such as data, coding, key, encryption, calculation, decryption, decoding) are re-expressed (such as pseudocode, flow chart, programming language, etc.) according to unified rules to facilitate encapsulation. The main technical methods include but are not limited to direct representation, indirect representation and conversion representation.
[0063] Encapsulation: Re-encapsulate the algorithm process and interface (such as data, coding, key, encryption, calculation, decryption, decoding) according to unified rules to form a consistent interface for easy calling.
[0064] Call: Call the encapsulated program interface according to the privacy computing application requirements to complete the privacy computing. This process includes but is not limited to direct call computing, indirect representation computing and conversion computing.
[0065] In summary, this embodiment includes a three-layer structure, namely, the lower-layer homomorphic encryption algorithm, the middle-layer fully homomorphic encryption solution, and the upper-layer privacy computing application; four technical means, namely, interpretation, re-representation, encapsulation, and calling. In view of the diverse characteristics and respective advantages of homomorphic encryption algorithms, this embodiment uses the middle representation layer to integrate multiple homomorphic encryption schemes to build an integrated solution for fully homomorphic encryption. The overall implementation process is: with the middle representation layer as the core and the homomorphic encryption scheme as the basis, the technical framework of fully homomorphic encryption is built through technical means such as interpretation, re-representation, and encapsulation, providing richer, more efficient, and more complete homomorphic computing function functions. Specifically, the following steps are included: (1) The middle representation layer interprets the diverse homomorphic encryption schemes of the lower layer one by one and uniformly represents them, designs a fused fully homomorphic encryption scheme, and breaks through the limitations of the existing homomorphic encryption algorithm on the requirements of various computing functions; (2) The middle representation layer provides a consistently encapsulated homomorphic encryption computing function interface for the upper-layer application, builds a complete fully homomorphic encryption interface platform, and meets the privacy computing requirements of different applications.
[0066] The following implementation is only a specific example to facilitate understanding of the implementation process. The specific implementation process in actual application includes but is not limited to the following examples.
[0067] The upper-level privacy computing application requires the calculation and output of the comparison results of a+b and c*d, and no real data should be leaked during the process. The four values of a, b, c, and d are provided by four front-end application devices. The overall implementation process is as follows: Figure 4 and Figure 5 shown.
[0068] 1. Explanation
[0069] Step 1.1: According to the underlying homomorphic encryption algorithms A (addition), B (multiplication), C (size comparison), ..., X, set the consistent security parameters (groups) of the integrated homomorphic encryption algorithm and determine other public parameters (groups) of the system, such as data type, key type, key length, etc.
[0070] Step 1.2: Reinterpret (appropriately modify) the parameters and key value groups in the lower-level homomorphic encryption algorithm according to the homomorphic encryption algorithms A (addition), B (multiplication), C (size comparison), ..., X and the parameters set in step 1.1, and determine the data conversion method (such as forced conversion of integers to double precision), key type (which may include encryption, decryption, calculation keys, etc.), key length (long keys are used to ensure high security), key generation algorithm, encryption algorithm, decryption algorithm and homomorphic calculation algorithm, etc.
[0071] 2. Re-expression
[0072] Step 2.1: Set up a consistent representation method for the integrated system, including but not limited to: data types and relationships (for example, integers can be converted to floating-point numbers, single-precision floating-point numbers can be converted to double-precision floating-point numbers, etc.), parameters (for example, system master key value, encryption key, decryption key, calculation key, etc.) unified representation and management, etc. For example. For homomorphic addition calculation, data a and b need to be encrypted using the addition key to obtain ciphertext.
[0073] Step 2.2: According to the consistent representation method set in step 2.1, the underlying homomorphic encryption scheme is re-represented to form an integrated algorithm solution with unified representation and unified management. For example, the result of homomorphic addition calculation needs to be converted (by proxy encryption, re-encryption, etc.) into the ciphertext form required for size comparison.
[0074] Step 2.3: According to the normalized integrated algorithm scheme expressed in step 2.2, the homomorphic encryption function library is uniformly encoded, and conversion and replacement interfaces are reserved for each function of different schemes, and finally an integrated and fused full homomorphic encryption function library is provided. For example, addition is converted to exponential operation, multiplication is converted to logical operation, etc.
[0075] 3. Packaging
[0076] Step 3.1: Fusion compile the functions and reserved function interfaces represented in step 2, including but not limited to: single independent function interfaces, combined function interfaces (for example: addition and multiplication provide polynomial calculations), fused function interfaces (for example: bridging technology for addition and logical operations) and converted function interfaces (for example: polynomial approximation exponential operation methods).
[0077] Step 3.2: Unify the function interfaces in step 3.1 and provide more functional privacy computing (fully homomorphic encryption) function interfaces for the calls in step 4.
[0078] 4. Call
[0079] Step 4.1: The front-end device sends a privacy computing request as required: calculate and output the size comparison result of a+b and c*d, where a, b, c, and d are provided by four front-end application devices with their own encrypted ciphertext as input.
[0080] Step 4.2: The backend device performs the privacy computing process as required. The technical methods involved in this process include but are not limited to: direct computing, indirect computing (the process may involve interaction with the front-end device) and conversion computing. For example: The middle-layer fully homomorphic encryption solution recognizes that the values of a+b and c*d in the ciphertext state are first calculated, so the lower-layer homomorphic addition and multiplication are called to obtain e a+b and fc*d. Then, the middle layer converts the calculation results e and f into ciphertext for size comparison as input, and calls the lower-layer homomorphic size comparison algorithm to obtain the final result.
[0081] Step 4.3: The background device feeds back the privacy computing results to the upper-level privacy computing application as required.
[0082] Step 4.4: The front-end device decrypts the privacy calculation results as required.
[0083] The integrated fully homomorphic encryption implementation device provided in an embodiment of the present application is introduced below. The integrated fully homomorphic encryption implementation device described below and the integrated fully homomorphic encryption implementation method described above can be referenced to each other.
[0084] like Figure 6 As shown, the integrated fully homomorphic encryption implementation device of this embodiment includes:
[0085] An interpretation module 61 is used to interpret the diversified homomorphic encryption scheme of the lower layer according to the requirements of the integration method to obtain an interpretation result;
[0086] A re-expression module 62, used for re-expressing the interpretation result of the lower layer according to the consistency requirement to obtain a re-expression result;
[0087] An encapsulation module 63, used to uniformly encapsulate the re-representation results of the lower layer according to the consistency requirement to form a fully homomorphic encryption solution integrated in the middle layer;
[0088] The calling module 64 is used to implement the privacy computing process using the fully homomorphic encryption solution according to the calling request of the upper-layer privacy computing application.
[0089] The integrated fully homomorphic encryption implementation device of this embodiment is used to implement the aforementioned integrated fully homomorphic encryption implementation method. Therefore, the specific implementation method of the device can be seen in the embodiment section of the integrated fully homomorphic encryption implementation method in the previous text, and will not be introduced in detail here.
[0090] In addition, the present application also provides a background service device, including:
[0091] Memory: used to store computer programs;
[0092] Processor: used to execute the computer program to implement the integrated fully homomorphic encryption implementation method as described above.
[0093] The present application also provides an integrated fully homomorphic encryption system, including a front-end application device and a back-end business device as described above.
[0094] In actual applications, there are front-end application devices such as smartphones and laptops, and back-end business devices such as servers, cloud computing, data centers, etc. Both types of devices are composed of display, input, output, computing, storage, power supply, and communication modules.
[0095] Finally, the present application provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, it is used to implement the integrated fully homomorphic encryption implementation method as described above.
[0096] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0097] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0098] The above is a detailed introduction to the scheme provided by the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea. At the same time, for general technical personnel in this field, according to the idea of the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. An integrated fully homomorphic encryption implementation method, characterized in that: include: According to the requirements of the integrated method, the diversified homomorphic encryption scheme of the lower layer is interpreted to obtain the interpretation result; Re-expressing the interpretation result of the lower layer according to the consistency requirement to obtain a re-expression result; The re-representation results of the lower layer are uniformly encapsulated according to the consistency requirement to form a fully homomorphic encryption solution integrated in the middle layer; According to the call request of the upper-layer privacy computing application, the privacy computing process is realized by using the fully homomorphic encryption solution; The diversified homomorphic encryption scheme of the lower layer is interpreted according to the requirements of the integrated method to obtain the interpretation results, including: According to the lower-level diversified homomorphic encryption algorithm, set the consistent security parameters of the integrated homomorphic encryption algorithm and determine other public parameters of the system; reinterpret the parameters and key value groups in the lower-level homomorphic encryption algorithm according to the diversified homomorphic encryption algorithm and the set parameters, and determine the data conversion method, key type, key length, key generation algorithm, encryption algorithm, decryption algorithm and homomorphic computing algorithm; The re-expressing the interpretation result of the lower layer according to the consistency requirement to obtain the re-expression result includes: A consistent representation method for the integrated system is set, including unified representation and management of data types, relationships, and parameters; according to the consistent representation method, the interpretation results of the lower layer are re-represented to form an integrated algorithm scheme with unified representation and unified management; according to the integrated algorithm scheme, the homomorphic encryption function library is uniformly encoded, and conversion and replacement interfaces are reserved for each function of different schemes to obtain an integrated and fused fully homomorphic encryption function library as the re-representation result.
2. The method according to claim 1, characterized in that The diversified homomorphic encryption scheme of the lower layer is explained according to the requirements of the integrated method, including: According to the requirements of the integrated method, the algorithm process and functions of the lower-level diversified homomorphic encryption scheme are explained for easy re-expression, and the implementation method of the explanation includes any one or more of the following: direct expression, indirect expression and conversion expression.
3. The method according to claim 2, characterized in that The re-presentation of the interpretation result of the lower layer according to the consistency requirement includes: In accordance with the consistency requirement, the algorithmic process and functions in the interpretation result are restated for ease of encapsulation, and the implementation method of the restatement includes any one or more of the following: direct representation, indirect representation and conversion representation.
4. The method according to claim 3, characterized in that The algorithm process and function include any one or more of the following: data, coding, key, encryption, calculation, decryption, decoding.
5. The method according to claim 3, characterized in that The explanation and the restatement may be in the form of any one or more of the following: pseudo code, flow chart, programming language.
6. An integrated fully homomorphic encryption implementation device, characterized in that: include: An explanation module is used to explain the diversified homomorphic encryption scheme of the lower layer according to the requirements of the integrated method to obtain the explanation result; A re-representation module, used for re-representing the interpretation result of the lower layer according to the consistency requirement to obtain a re-representation result; An encapsulation module is used to uniformly encapsulate the re-representation results of the lower layer according to the consistency requirement to form a fully homomorphic encryption solution integrated in the middle layer; A calling module, used to implement a privacy computing process using the fully homomorphic encryption solution according to a calling request of an upper-layer privacy computing application; The interpretation module is specifically used for: According to the lower-level diversified homomorphic encryption algorithm, set the consistent security parameters of the integrated homomorphic encryption algorithm and determine other public parameters of the system; reinterpret the parameters and key value groups in the lower-level homomorphic encryption algorithm according to the diversified homomorphic encryption algorithm and the set parameters, and determine the data conversion method, key type, key length, key generation algorithm, encryption algorithm, decryption algorithm and homomorphic computing algorithm; The re-presentation module is specifically used for: A consistent representation method for the integrated system is set, including unified representation and management of data types, relationships, and parameters; according to the consistent representation method, the interpretation results of the lower layer are re-represented to form an integrated algorithm scheme with unified representation and unified management; according to the integrated algorithm scheme, the homomorphic encryption function library is uniformly encoded, and conversion and replacement interfaces are reserved for each function of different schemes to obtain an integrated and fused fully homomorphic encryption function library as the re-representation result.
7. A background service device, characterized in that: include: Memory: used to store computer programs; Processor: used to execute the computer program to implement the integrated fully homomorphic encryption implementation method as described in any one of claims 1 to 5.
8. An integrated fully homomorphic encryption system, characterized in that: It includes front-end application equipment and also includes background business equipment as described in claim 7.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, which, when executed by a processor, is used to implement the integrated fully homomorphic encryption implementation method as described in any one of claims 1 to 5.
Citation Information
Patent Citations
Fully homomorphic encryption processing method based on modular operation
CN106452723A
Fully-homomorphic encryption method and device and computer readable storage medium
CN108718231A