A privacy data processing method based on multi-party homomorphic encryption

By generating random vectors and their symbols in ciphertext form, and performing homomorphic multiplication and decryption, the problems of insufficient accuracy and high overhead in symbolic function computation in existing technologies are solved, and efficient symbolic function computation is achieved.

CN117792602BActive Publication Date: 2026-11-24ZHEJIANG LAB
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311661640.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-05
Publication Date
2026-11-24
Estimated Expiration
2043-12-05

AI Technical Summary

Technical Problem

Existing symbolic function computation methods based on second-generation fully homomorphic encryption suffer from insufficient accuracy and high computational overhead. In particular, the ciphertext computation of symbolic functions requires a large number of multiplication and addition operations, resulting in slow computation speed.

Method used

A method based on multi-party fully homomorphic encryption is adopted. By generating random vectors and their symbols in ciphertext form and performing homomorphic multiplication and decryption operations, the number of homomorphic multiplications is reduced, thereby achieving high-precision calculation.

Benefits of technology

In the ciphertext homomorphic computation of symbolic functions, only two multiplications and one decryption operation are required, which reduces computational overhead, improves computational efficiency, and supports parallel acceleration methods such as multithreading and GPU acceleration.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117792602B_ABST
    Figure CN117792602B_ABST
Patent Text Reader

Abstract

This specification discloses a privacy data processing method based on multi-party fully homomorphic encryption. It can obtain target ciphertext, and then, in response to a preset instruction, generate a random vector and its corresponding symbol using a preset ciphertext random vector generation method. Both the random vector and its corresponding symbol are in ciphertext form. Next, a homomorphic multiplication is performed on the target ciphertext and the random vector to obtain a first result, which is then decrypted to obtain the plaintext of the first result. Finally, based on the symbol corresponding to the plaintext of the first result and the symbol corresponding to the random vector, the symbol corresponding to the target ciphertext can be determined. This allows for privacy data processing using the symbol corresponding to the target ciphertext and the target ciphertext itself, thereby improving the computational efficiency of the sgn() function in privacy data processing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This specification relates to the field of privacy computing technology, and in particular to a privacy data processing method based on multi-party fully homomorphic encryption. Background Technology

[0002] The continuous development of technologies such as homomorphic encryption and multi-party computation has given rise to privacy-preserving computing applications such as privacy query / intersection and privacy-preserving machine learning, realizing the "computable but invisible" nature of data.

[0003] In privacy-preserving computing applications, calculating symbolic functions on ciphertext is an essential intermediate process.

[0004] Sign function The definition is as follows: It is a crucial operator in the privacy protection design of query, intersection, and machine learning algorithms, and the running speed of its privacy computation directly affects the execution efficiency of applications. Currently, there are symbolic function computation methods based on second-generation (multi-party) fully homomorphic encryption (such as BGV, BFV, CKKS, etc.), which mainly rely on limit value comparison or polynomial fitting to obtain approximate results. These methods generally suffer from insufficient accuracy and high computational overhead due to numerous multiplication / iteration calculations.

[0005] The method proposed in this invention achieves higher computational accuracy and lower computational overhead by reducing the number of operations, including multiplication and bootstrapping, while obtaining higher accuracy. Summary of the Invention

[0006] This specification provides a privacy data processing method based on multi-party fully homomorphic encryption to partially solve the aforementioned problems existing in the prior art.

[0007] The following technical solution is adopted in this specification: This specification provides a privacy data processing method based on multi-party fully homomorphic encryption, including: Obtain the target ciphertext; In response to a preset instruction, a random vector and a symbol corresponding to the random vector are generated using a preset encrypted random vector generation method. Both the random vector and the symbol corresponding to the random vector are in encrypted form. Perform homomorphic multiplication on the target ciphertext and the random vector to obtain a first result, and then decrypt the first result to obtain the plaintext of the first result; Based on the symbol corresponding to the plaintext of the first result and the symbol corresponding to the random vector, the symbol corresponding to the target ciphertext is determined, so as to perform privacy data processing using the symbol corresponding to the target ciphertext and the target ciphertext.

[0008] Optionally, the first result is decrypted to obtain the plaintext of the first result, specifically including: The plaintext of the first result is obtained by performing multi-party participation decryption on the first result through several computational methods.

[0009] Optionally, a random vector and its corresponding symbol are generated using a preset encrypted random vector generation method, specifically including: Several plaintext sub-random vectors are generated through several computational methods, and the symbols corresponding to the several plaintext sub-random vectors are determined through the several computational methods. The several plaintext sub-random vectors and their corresponding symbols are encrypted by the several calculation methods respectively, to obtain several ciphertext sub-random vectors and the ciphertext symbols corresponding to the several ciphertext sub-random vectors. A second result is obtained by performing homomorphic multiplication on the random ciphertext subvectors using the aforementioned computational methods, and a third result is obtained by performing homomorphic multiplication on the ciphertext symbols corresponding to the random ciphertext subvectors using the aforementioned computational methods. The second result is used as the generated random vector, and the third result is used as the symbol corresponding to the random vector.

[0010] Optionally, a random vector and its corresponding symbol are generated using a preset encrypted random vector generation method, specifically including: Several sub-random vectors in plaintext and positive real number form are generated through several computation methods, and several digital vectors for representing symbols are generated through the several computation methods. The plurality of sub-random vectors are encrypted using the plurality of computational methods to obtain a plurality of ciphertext sub-random vectors, and the plurality of digital vectors are encrypted using the plurality of computational methods to obtain a plurality of ciphertext digital vectors. The fifth result is obtained by performing homomorphic addition on the ciphertext digital vectors through the aforementioned calculation methods and then performing a linear transformation. The fourth result is obtained by performing homomorphic addition on the random vectors of the ciphertext sub-vectors using the aforementioned computational methods. The random vector is determined based on the homomorphic multiplication result between the fourth result and the fifth result, and the sign corresponding to the random vector is determined based on the fifth result.

[0011] This specification provides a privacy data processing device based on multi-party fully homomorphic encryption, including: The acquisition module is used to acquire the target ciphertext; The generation module is used to respond to a preset instruction and generate a random vector and a symbol corresponding to the random vector through a preset ciphertext random vector generation method. Both the random vector and the symbol corresponding to the random vector are in ciphertext form. The decryption module is used to perform homomorphic multiplication on the target ciphertext and the random vector to obtain a first result, and to decrypt the first result to obtain the plaintext of the first result; The decryption module is used to determine the symbol corresponding to the target ciphertext based on the symbol corresponding to the plaintext of the first result and the symbol corresponding to the random vector, so as to perform privacy data processing using the symbol corresponding to the target ciphertext and the target ciphertext.

[0012] Optionally, the decryption module is specifically used to perform multi-party participation decryption on the first result through several computing parties to obtain the plaintext of the first result.

[0013] Optionally, the generation module is specifically configured to: generate several plaintext sub-random vectors through several computational methods, and determine the symbols corresponding to the several plaintext sub-random vectors through the several computational methods; encrypt the several plaintext sub-random vectors and their corresponding symbols through the several computational methods respectively, to obtain several ciphertext sub-random vectors and their corresponding ciphertext symbols; perform homomorphic multiplication on the several ciphertext sub-random vectors through the several computational methods to obtain a second result, and perform homomorphic multiplication on the ciphertext symbols corresponding to the several ciphertext sub-random vectors through the several computational methods to obtain a third result; use the second result as the generated random vector, and use the third result as the symbol corresponding to the random vector.

[0014] Optionally, the generation module is specifically configured to: generate several plaintext sub-random vectors in positive real number form through several computational methods; generate several digital vectors for representing symbols through the several computational methods; encrypt the several sub-random vectors through the several computational methods to obtain several ciphertext sub-random vectors; encrypt the several digital vectors through the several computational methods to obtain several ciphertext digital vectors; perform homomorphic addition on the several ciphertext digital vectors through the several computational methods and perform a linear transformation to obtain a fifth result; perform homomorphic addition on the several ciphertext sub-random vectors through the several computational methods to obtain a fourth result; determine the random vector based on the homomorphic multiplication result between the fourth result and the fifth result; and determine the symbol corresponding to the random vector based on the fifth result.

[0015] This specification provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the above-described privacy data processing method based on multi-party fully homomorphic encryption.

[0016] This specification provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor, when executing the program, implements the above-described privacy data processing method based on multi-party fully homomorphic encryption.

[0017] The above-mentioned technical solutions adopted in this specification can achieve the following beneficial effects: As can be seen from the above-described privacy data processing method based on multi-party fully homomorphic encryption, the target ciphertext can be obtained. Then, in response to a preset instruction, a random vector and its corresponding symbol can be generated using a preset ciphertext random vector generation method. Both the random vector and its corresponding symbol are in ciphertext form. Next, a homomorphic multiplication can be performed on the target ciphertext and the random vector to obtain a first result. This first result is then decrypted to obtain the plaintext of the first result. Finally, based on the symbol corresponding to the plaintext of the first result and the symbol corresponding to the random vector, the symbol corresponding to the target ciphertext can be determined, allowing for privacy data processing using the symbol corresponding to the target ciphertext and the target ciphertext itself.

[0018] The beneficial effects of this invention are: The ciphertext random vector and its sign used in the privacy computation part of the symbolic function can be used within the symbolic function. In homomorphic computation of ciphertext, the overhead of homomorphic multiplication is reduced, requiring only two multiplications and one decryption operation (where distributed bootstrapping is implicitly included in the decryption operation). In contrast, traditional symbolic function homomorphic computation methods are mainly based on polynomial fitting / approximation, requiring a large number of multiplications and additions. They also require the selection of encryption parameters with higher computational overhead or frequent running of bootstrapping or distributed bootstrapping algorithms to refresh the ciphertext, resulting in a relatively slow computation speed for homomorphic encryption algorithms.

[0019] The ciphertext random vector generation part and the encryption calculation part can be decoupled. For example, the performance of the random vector generation step can be further improved by parallel acceleration methods such as multithreading, GPU, FPGA, etc., which can further improve the efficiency of multi-party homomorphic encryption operation. Attached Figure Description

[0020] The accompanying drawings, which are included to provide a further understanding of this specification and form part of this specification, illustrate exemplary embodiments and are used to explain this specification, but do not constitute an undue limitation thereof. In the drawings: Figure 1This document provides a flowchart illustrating a privacy data processing method based on multi-party fully homomorphic encryption. Figure 2 This is a schematic diagram of a fully binary tree topologically organized multiplication method provided in this specification; Figure 3 A schematic diagram illustrating the steps for generating random vectors and their corresponding symbols provided in this specification; Figure 4 A schematic diagram of a privacy data processing device based on multi-party fully homomorphic encryption provided for this specification; Figure 5 The corresponding information provided in this specification Figure 1 A schematic diagram of an electronic device. Detailed Implementation

[0021] To make the objectives, technical solutions, and advantages of this specification clearer, the technical solutions of this specification will be clearly and completely described below in conjunction with specific embodiments and corresponding drawings. Obviously, the described embodiments are only a part of the embodiments of this specification, and not all of them. Based on the embodiments in this specification, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this specification.

[0022] The technical solutions provided in the various embodiments of this specification are described in detail below with reference to the accompanying drawings.

[0023] It should be noted that the embodiments of this invention will be described based on the multi-party computation version of the second-generation fully homomorphic encryption scheme CKKS. However, similar embodiments can be constructed based on the multi-party computation versions of other fully homomorphic encryption schemes such as BGV and BFV, which will not be elaborated here. The multi-party fully homomorphic encryption scheme used in this invention needs to include operations such as key generation, encryption, decryption, homomorphic addition (including homomorphic addition of plaintext to ciphertext), homomorphic multiplication (including homomorphic multiplication of plaintext to ciphertext), and distributed bootstrapping.

[0024] In this invention, the computational participants in multi-party fully homomorphic encryption are denoted as... Each participant in the computation holds a portion of the private key, denoted as... The complete private key It can be done through formula Perform the calculation.

[0025] Each computing party can use the private key fragments it holds. The public key is obtained through joint computation. Except for the fact that the private key exists in fragmented form, multi-party fully homomorphic encryption possesses the same properties as second-generation homomorphic encryption schemes. The plaintext space of the multi-party fully homomorphic encryption scheme used in this invention is selected with a modulus of . The plaintext vector space is an integer vector space. Before encryption, the multi-party fully homomorphic encryption scheme used in this invention requires linear transformation preprocessing of the plaintext vector. The corresponding linear transformation preprocessing matrix is ​​predetermined based on the parameters of the fully homomorphic encryption scheme. For plaintext vectors The result obtained by encryption Let ⊙ represent homomorphic addition and ⊙ represent homomorphic multiplication. The element-wise addition and multiplication of vectors in the corresponding plaintext space are denoted as + and ·, respectively. Therefore, according to the properties of homomorphism, we can obtain... , .

[0026] This invention can be designed based on a second-generation multi-party fully homomorphic encryption scheme. That is, the encryption, decryption, homomorphic addition, homomorphic multiplication, and distributed bootstrapping operations involved in this invention can be implemented using a second-generation multi-party fully homomorphic encryption scheme. The operators related to this invention can be: 1. Key generation. Participants Generate private key fragments separately And keep it safe. (Participating parties) Private key fragments Packaged into public key fragments Calculate the public key Implicitly, the private key .

[0027] 2. Encoding. Given a vector Calculate its regular embedding ,say This is plaintext. Regular expression embedding is essentially a reversible linear transformation. It can be understood as encoding being a preprocessing step before data encryption.

[0028] 3. Encryption. Given plaintext. Using public key Encryption is performed. Ciphertext is obtained. .

[0029] 4. Addition. The second-generation fully homomorphic encryption scheme supports plaintext-to-plaintext homomorphic addition. Plaintext-ciphertext homomorphic addition and Ciphertext-to-ciphertext homomorphic addition .

[0030] 5. Multiplication. The second-generation fully homomorphic encryption scheme supports plaintext-to-plaintext homomorphic multiplication. Plaintext-ciphertext homomorphic multiplication and Ciphertext-to-ciphertext homomorphic multiplication Multiplication introduces errors into the ciphertext, and these errors accumulate to a certain level, eventually corrupting the ciphertext.

[0031] 6. Decryption. This is the reverse process of the encryption operator.

[0032] 7. Decoding. This is the reverse process of encoding.

[0033] 8. Distributed Bootstrapping (Ciphertext Refresh). Given ciphertext... Participants The noisy private key fragments are aggregated into the ciphertext. In the process, noisy plaintext is obtained. ,Will After encryption, the participants Then perform noise reduction operations separately to obtain the refreshed ciphertext. This operator is used to perform error elimination operations on ciphertext with a large accumulation of errors.

[0034] The typical order of operations in multi-party fully homomorphic encryption is: key generation — encoding — encryption — several addition, multiplication, and distributed bootstrapping operations — decryption — decoding. However, in actual computation, the order of encoding, encryption, and addition / multiplication operators can be appropriately reversed.

[0035] Figure 1 This diagram illustrates a privacy data processing method based on multi-party fully homomorphic encryption provided in this specification, which specifically includes the following steps: S100: Obtain the target ciphertext.

[0036] S102: In response to a preset instruction, a random vector and a symbol corresponding to the random vector are generated through a preset encrypted random vector generation method, wherein the random vector and the symbol corresponding to the random vector are both in encrypted form.

[0037] In the fields of privacy data computation and privacy data processing, symbolic functions for computation on ciphertext are an essential operator. For example, in scenarios such as federated learning and privacy intersection, symbolic functions for computation on ciphertext may be an intermediate process.

[0038] This specification provides a method for performing symbolic function calculations on ciphertext during privacy data processing. Specifically, the server can obtain the target ciphertext and, in response to a preset instruction, generate a random vector and its corresponding symbol using a preset ciphertext random vector generation method. Both the random vector and its corresponding symbol are in ciphertext form. The aforementioned preset instructions may refer to those used to instruct the server to determine whether a symbolic function needs to be applied to the target ciphertext. ) The instructions for calculation.

[0039] Assuming the target ciphertext is The server responds to a preset command and needs to determine the... First, a random vector can be generated using a preset method for generating encrypted random vectors. and their corresponding symbols It can be seen that the random vector and its corresponding symbol are both in ciphertext form.

[0040] It should be noted that there are two possible methods for generating the aforementioned pre-defined ciphertext random vector.

[0041] The first method: The server can generate several plaintext sub-random vectors through several computation methods, and determine the symbols corresponding to the plaintext sub-random vectors through several computation methods. The server can then encrypt the plaintext sub-random vectors and their corresponding symbols through several computation methods to obtain several ciphertext sub-random vectors and their corresponding ciphertext symbols.

[0042] Then, a second result can be obtained by performing homomorphic multiplication on several ciphertext sub-random vectors through several computation methods, and a third result can be obtained by performing homomorphic multiplication on the ciphertext symbols corresponding to several ciphertext sub-random vectors through several computation methods. Then, the second result is used as the generated random vector, and the third result is used as the symbol corresponding to the random vector.

[0043] The first method described above is illustrated in Example 1, and the specific steps are as follows: 1. Various calculation methods Generate random plaintext vectors (i.e., the sub-random vectors in plaintext form mentioned above). At the same time, each computing party calculates its sign. .

[0044] 2. Various calculation methods Encrypt separately and Receive ciphertext and Each computational method calculates using homomorphic multiplication. (i.e., the second result mentioned above) and (i.e., the third result mentioned above). During this period, in order to improve the degree of parallelism and reduce the multiplication depth consumption, it is possible to use... Figure 2 Take, for example, the multiplication calculation of a complete binary tree topology organization.

[0045] Figure 2 This is a schematic diagram of a fully binary tree topologically organized multiplication method provided in this specification.

[0046] In the above Figure 2 middle, The calculation result obtained by multiplying the random vectors owned by participants 0-7 using a complete binary tree topology organization. It only consumed three levels of multiplication depth. Generally, in the case of... In a multi-party homomorphic encryption scenario involving multiple computational parties, the ciphertext random vector generation part only requires consuming... Multiplication depth. The calculations can be organized using the same approach. When the multiplication depth is insufficient, the distributed bootstrapping operation in a multi-party fully homomorphic encryption scheme can be used to refresh the ciphertext and increase the multiplication depth.

[0047] The second method: Several plaintext sub-random vectors in positive real number form can be generated through several computational methods, and several digital vectors for representing symbols can be generated through several computational methods. Then, several sub-random vectors are encrypted through several computational methods to obtain several ciphertext sub-random vectors, and several digital vectors are encrypted through several computational methods to obtain several ciphertext digital vectors.

[0048] Furthermore, a fourth result can be obtained by performing homomorphic addition on several ciphertext sub-random vectors through several computational methods, and a fifth result can be obtained by performing homomorphic addition on several ciphertext digital vectors through several computational methods and performing linear transformation. Thus, a random vector can be determined based on the homomorphic multiplication result between the fourth and fifth results, and the sign corresponding to the random vector can be determined based on the fifth result.

[0049] The second method described above is illustrated in Example 2, as follows: Figure 3 The specific steps shown are as follows: Figure 3 This is a schematic diagram illustrating the steps involved in generating a random vector and its corresponding symbol, as provided in this specification.

[0050] S301: Various calculation methods Generate random plaintext vectors of positive real numbers (This could refer to the aforementioned sub-random vectors in plaintext and positive real number form) and 0-1 vectors of the same dimension. (This could refer to the aforementioned numerical vectors used to represent symbols).

[0051] S302: Each calculation method Encryption is performed to obtain ciphertext. (ciphertext sub-random vector). Various computational methods can compute... Furthermore, the encoding step is omitted, and encryption is performed directly to obtain... .

[0052] S303: Calculation by each calculation method ,calculate .

[0053] S304: Encode the ciphertext {b} according to the operational properties of multi-party homomorphic encryption, and then perform an appropriate affine transformation to obtain the ciphertext. ciphertext The corresponding plaintext b is a vector with a value of 1 or -1.

[0054] Among them, step 302 calculates This is to adapt to the second-generation multi-party fully homomorphic encryption scheme, and encoding is a preprocessing step before data encryption. However, the encoding step is omitted in step S302, so in step S304, the ciphertext needs to be obtained. The encoding operation is performed beforehand. In addition, the purpose of the affine transformation in step S304 is to convert a vector in 0 or 1 numerical form into a vector in 1 or -1 numerical form.

[0055] S305: Return and , respectively, as random vectors and their corresponding symbols (i.e., Figure 1 The random vector generated in step S102 and the symbol corresponding to the random vector.

[0056] As can be seen from the above, the several plaintext sub-random vectors generated by each computational method can be numerical vectors of form 0 or 1. After performing homomorphic addition on these numerical vectors, the result can be converted into a vector with a value of 1 or -1 through affine transformation, thus obtaining the generated symbol. The first method is equivalent to determining the ciphertext symbol and the ciphertext vector, performing homomorphic multiplication on them to obtain the generated random vector and its corresponding symbol; while the second method is equivalent to generating a plaintext random vector and then determining the symbol corresponding to this random vector.

[0057] S104: Perform homomorphic multiplication on the target ciphertext and the random vector to obtain a first result, and decrypt the first result to obtain the plaintext of the first result.

[0058] S106: Based on the symbol corresponding to the plaintext of the first result and the symbol corresponding to the random vector, determine the symbol corresponding to the target ciphertext, so as to perform privacy data processing using the symbol corresponding to the target ciphertext and the target ciphertext.

[0059] After obtaining the random vector and its corresponding symbol, a homomorphic multiplication can be performed on the target ciphertext and the random vector to obtain the first result. The first result is then decrypted to obtain the plaintext of the first result. Subsequently, based on the symbol corresponding to the plaintext of the first result and the symbol corresponding to the aforementioned random vector, the symbol corresponding to the target ciphertext is determined. Privacy data processing can then be performed using the symbol corresponding to the target ciphertext and the target ciphertext. In this process, multiple parties can perform multi-party participation decryption on the first result to obtain the plaintext of the first result.

[0060] In this specification, the purpose of performing homomorphic multiplication on the target ciphertext and a random vector to obtain the first result is to ensure that the target ciphertext retains its ciphertext form and does not expose the plaintext during the calculation of the sign function of the target ciphertext.

[0061] The above process can be explained using formulas: Can be calculated And perform multi-party decryption to obtain (The plaintext of the first result), then complete the plaintext calculation. (The symbol corresponding to the plaintext of the first result), finally calculate the plaintext-ciphertext multiplication to obtain... ,return (The symbol corresponding to the target ciphertext).

[0062] Determined by the above formula The principle is as follows: = = pass It can be deduced that: = .

[0063] Privacy data processing using symbols corresponding to the target ciphertext and the target ciphertext can specifically include federated learning, privacy intersection, etc. For example, when performing parameter aggregation in federated learning, it may be necessary to determine the symbols corresponding to each parameter before performing parameter aggregation.

[0064] It should be noted that, for ease of description, the entity executing this method is described as a server. The entity executing this method can be a computer, a cloud platform, etc., and is not limited thereto. It should also be noted that, unless otherwise specified, the features in the following embodiments and implementation methods can be combined with each other.

[0065] Additionally, it should be noted that all actions involving the acquisition of signals, information, or data in this manual are performed in accordance with the relevant data protection regulations and policies of the locality and with authorization from the owner of the relevant device.

[0066] The above describes one or more embodiments of a privacy data processing method based on multi-party fully homomorphic encryption provided in this specification. Based on the same idea, this specification also provides a privacy data processing apparatus based on multi-party fully homomorphic encryption, such as... Figure 4 As shown.

[0067] Figure 4 A schematic diagram of a privacy data processing device based on multi-party fully homomorphic encryption, provided in this specification, includes: Module 401 is used to obtain the target ciphertext; The generation module 402 is used to respond to a preset instruction to generate a random vector and a symbol corresponding to the random vector through a preset ciphertext random vector generation method, wherein the random vector and the symbol corresponding to the random vector are both in ciphertext form; The decryption module 403 is used to perform homomorphic multiplication on the target ciphertext and the random vector to obtain a first result, and to decrypt the first result to obtain the plaintext of the first result; The symbol determination module 404 is used to determine the symbol corresponding to the target ciphertext based on the symbol corresponding to the plaintext of the first result and the symbol corresponding to the random vector, so as to perform privacy data processing by using the symbol corresponding to the target ciphertext and the target ciphertext.

[0068] Optionally, the decryption module 403 is specifically used to perform multi-party participation decryption on the first result through several computing parties to obtain the plaintext of the first result.

[0069] Optionally, the generation module 402 is specifically configured to: generate several plaintext sub-random vectors through several computational methods, and determine the symbols corresponding to the several plaintext sub-random vectors through the several computational methods; encrypt the several plaintext sub-random vectors and their corresponding symbols through the several computational methods respectively to obtain several ciphertext sub-random vectors and their corresponding ciphertext symbols; perform homomorphic multiplication on the several ciphertext sub-random vectors through the several computational methods to obtain a second result, and perform homomorphic multiplication on the ciphertext symbols corresponding to the several ciphertext sub-random vectors through the several computational methods to obtain a third result; use the second result as the generated random vector, and use the third result as the symbol corresponding to the random vector.

[0070] Optionally, the generation module 402 is specifically configured to: generate several plaintext sub-random vectors in positive real number form through several computational methods; generate several digital vectors for representing symbols through the several computational methods; encrypt the several sub-random vectors through the several computational methods to obtain several ciphertext sub-random vectors; encrypt the several digital vectors through the several computational methods to obtain several ciphertext digital vectors; perform homomorphic addition on the several ciphertext symbols through the several computational methods and perform a linear transformation to obtain a fifth result; perform homomorphic addition on the several ciphertext sub-random vectors through the several computational methods to obtain a fourth result; determine the random vector based on the homomorphic multiplication result between the fourth result and the fifth result; and determine the symbol corresponding to the random vector based on the fifth result.

[0071] This specification also provides a computer-readable storage medium storing a computer program that can be used to execute the above-described privacy data processing method based on multi-party fully homomorphic encryption.

[0072] This instruction manual also provides Figure 5 The diagram shows a schematic structural representation of the electronic device. Figure 5 At the hardware level, the electronic device includes a processor, an internal bus, a network interface, memory, and non-volatile storage, and may also include other hardware required for the business. The processor reads the corresponding computer program from the non-volatile storage into memory and then runs it to implement a privacy data processing method based on multi-party fully homomorphic encryption.

[0073] Of course, in addition to software implementation, this specification does not exclude other implementation methods, such as logic devices or a combination of hardware and software. In other words, the execution subject of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.

[0074] In the 1990s, improvements to a technology could be clearly distinguished as either hardware improvements (e.g., improvements to the circuit structure of diodes, transistors, switches, etc.) or software improvements (improvements to methodology). However, with technological advancements, many methodological improvements today can be considered direct improvements to hardware circuit structures. Designers almost always obtain the corresponding hardware circuit structure by programming the improved methodology into the hardware circuit. Therefore, it cannot be said that a methodological improvement cannot be implemented using hardware physical modules. For example, a Programmable Logic Device (PLD) (such as a Field Programmable Gate Array (FPGA)) is such an integrated circuit whose logic function is determined by the user programming the device. Designers can program and "integrate" a digital system onto a PLD themselves, without needing chip manufacturers to design and manufacture dedicated integrated circuit chips. Furthermore, nowadays, instead of manually manufacturing integrated circuit chips, this programming is mostly implemented using "logic compiler" software. Similar to the software compiler used in program development, the original code before compilation must be written in a specific programming language, called a Hardware Description Language (HDL). There are many HDLs, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, and RHDL (Ruby Hardware Description Language). Currently, the most commonly used are VHDL (Very-High-Speed ​​Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should also understand that by simply performing some logic programming on the method flow using one of these hardware description languages ​​and programming it into an integrated circuit, the hardware circuit implementing the logical method flow can be easily obtained.

[0075] The controller can be implemented in any suitable manner. For example, it can take the form of a microprocessor or processor and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro)processor, logic gates, switches, application-specific integrated circuits (ASICs), programmable logic controllers, and embedded microcontrollers. Examples of controllers include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicon Labs C8051F320. A memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art will also recognize that, in addition to implementing the controller in purely computer-readable program code form, the same functionality can be achieved by logically programming the method steps to make the controller take the form of logic gates, switches, application-specific integrated circuits, programmable logic controllers, and embedded microcontrollers. Therefore, such a controller can be considered a hardware component, and the means included therein for implementing various functions can also be considered as structures within the hardware component. Alternatively, the means for implementing various functions can be considered as both software modules implementing the method and structures within the hardware component.

[0076] The systems, devices, modules, or units described in the above embodiments can be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, a computer can be, for example, a personal computer, laptop computer, cellular phone, camera phone, smartphone, personal digital assistant, media player, navigation device, email device, game console, tablet computer, wearable device, or any combination of these devices.

[0077] For ease of description, the above devices are described in terms of function, divided into various units. Of course, in implementing this specification, the functions of each unit can be implemented in one or more software and / or hardware components.

[0078] Those skilled in the art will understand that embodiments of this specification can be provided as methods, systems, or computer program products. Therefore, this specification may take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this specification may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0079] This specification is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this specification. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0080] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0081] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0082] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0083] Memory may include non-persistent storage in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.

[0084] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information using any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.

[0085] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0086] Those skilled in the art will understand that the embodiments of this specification can be provided as methods, systems, or computer program products. Therefore, this specification may take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this specification may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0087] This specification can be described in the general context of computer-executable instructions that are executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc., that perform a specific task or implement a specific abstract data type. This specification can also be practiced in distributed computing environments, where tasks are performed by remote processing devices connected via a communication network. In distributed computing environments, program modules can reside in local and remote computer storage media, including storage devices.

[0088] The various embodiments in this specification are described in a progressive manner. Similar or identical parts between embodiments can be referred to interchangeably. Each embodiment focuses on describing the differences from other embodiments. In particular, the system embodiments are basically similar to the method embodiments, so the description is relatively simple; relevant parts can be referred to the descriptions in the method embodiments.

[0089] The above description is merely an embodiment of this specification and is not intended to limit this specification. Various modifications and variations can be made to this specification by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this specification should be included within the scope of the claims of this specification.

Claims

1. A privacy data processing method based on multi-party homomorphic encryption, characterized in that, include: Obtain the target ciphertext; In response to a preset instruction, a random vector and a symbol corresponding to the random vector are generated using a preset encrypted random vector generation method. Both the random vector and the symbol corresponding to the random vector are in encrypted form. Perform homomorphic multiplication on the target ciphertext and the random vector to obtain a first result, and then decrypt the first result to obtain the plaintext of the first result; Based on the symbol corresponding to the plaintext of the first result and the symbol corresponding to the random vector, the symbol corresponding to the target ciphertext is determined, so as to perform privacy data processing using the symbol corresponding to the target ciphertext and the target ciphertext.

2. The method of claim 1, wherein, Decrypting the first result yields the plaintext of the first result, specifically including: The plaintext of the first result is obtained by performing multi-party participation decryption on the first result through several computational parties.

3. The method of claim 1, wherein, A random vector and its corresponding symbol are generated using a preset encrypted random vector generation method, specifically including: Several plaintext sub-random vectors are generated through several computational methods, and the symbols corresponding to the several plaintext sub-random vectors are determined through the several computational methods. The several plaintext sub-random vectors and their corresponding symbols are encrypted by the several calculation methods respectively, to obtain several ciphertext sub-random vectors and the ciphertext symbols corresponding to the several ciphertext sub-random vectors. A second result is obtained by performing homomorphic multiplication on the random ciphertext subvectors using the aforementioned computational methods, and a third result is obtained by performing homomorphic multiplication on the ciphertext symbols corresponding to the random ciphertext subvectors using the aforementioned computational methods. The second result is used as the generated random vector, and the third result is used as the symbol corresponding to the random vector.

4. The method of claim 1, wherein, A random vector and its corresponding symbol are generated using a preset encrypted random vector generation method, specifically including: Several sub-random vectors in plaintext and positive real number form are generated through several computation methods, and several digital vectors for representing symbols are generated through the several computation methods. The plurality of sub-random vectors are encrypted using the plurality of computational methods to obtain a plurality of ciphertext sub-random vectors, and the plurality of digital vectors are encrypted using the plurality of computational methods to obtain a plurality of ciphertext digital vectors. The fourth result is obtained by performing homomorphic addition on the random vectors of the ciphertext sub-vectors using the aforementioned computational methods. The fifth result is obtained by performing homomorphic addition on the ciphertext digital vectors through the aforementioned calculation methods and then performing a linear transformation. The random vector is determined based on the homomorphic multiplication result between the fourth result and the fifth result, and the sign corresponding to the random vector is determined based on the fifth result.

5. A privacy data processing apparatus based on multi-party homomorphic encryption, characterized by, include: The acquisition module is used to acquire the target ciphertext; The generation module is used to respond to a preset instruction and generate a random vector and a symbol corresponding to the random vector through a preset ciphertext random vector generation method. Both the random vector and the symbol corresponding to the random vector are in ciphertext form. The decryption module is used to perform homomorphic multiplication on the target ciphertext and the random vector to obtain a first result, and to decrypt the first result to obtain the plaintext of the first result; The symbol determination module is used to determine the symbol corresponding to the target ciphertext based on the symbol corresponding to the plaintext of the first result and the symbol corresponding to the random vector, so as to perform privacy data processing using the symbol corresponding to the target ciphertext and the target ciphertext.

6. The apparatus of claim 5, wherein, The decryption module is specifically used to perform multi-party participation decryption on the first result through several computing parties to obtain the plaintext of the first result.

7. The apparatus of claim 5, wherein, The generation module is specifically used to: generate several plaintext sub-random vectors through several computational methods, and determine the symbols corresponding to the several plaintext sub-random vectors through the several computational methods; encrypt the several plaintext sub-random vectors and their corresponding symbols through the several computational methods respectively, to obtain several ciphertext sub-random vectors and their corresponding ciphertext symbols; perform homomorphic multiplication on the several ciphertext sub-random vectors through the several computational methods to obtain a second result, and perform homomorphic multiplication on the ciphertext symbols corresponding to the several ciphertext sub-random vectors through the several computational methods to obtain a third result; use the second result as the generated random vector, and use the third result as the symbol corresponding to the random vector.

8. The apparatus of claim 5, wherein, The generation module is specifically used to: generate several plaintext sub-random vectors in positive real number form through several computational methods; generate several digital vectors for representing symbols through the several computational methods; encrypt the several sub-random vectors through the several computational methods to obtain several ciphertext sub-random vectors; encrypt the several digital vectors through the several computational methods to obtain several ciphertext digital vectors; perform homomorphic addition on the several ciphertext digital vectors through the several computational methods and perform a linear transformation to obtain a fifth result; perform homomorphic addition on the several ciphertext sub-random vectors through the several computational methods to obtain a fourth result; determine the random vector based on the homomorphic multiplication result between the fourth result and the fifth result; and determine the symbol corresponding to the random vector based on the fifth result.

9. A computer-readable storage medium, characterized in that, The storage medium stores a computer program, which, when executed by a processor, implements the method described in any one of claims 1 to 4.

10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the method described in any one of claims 1 to 4.

Citation Information

Patent Citations

  • Privacy protection-oriented floating point number fully homomorphic encryption method

    CN107147484A

  • Image encryption retrieval method and device capable of hiding data access and medium

    CN115309928A