Abstract
With the development of privacy-preserving techniques, the increasing demand for secure multiparty computation (MPC) of mobile devices has become a significant challenge. Unfortunately, it is inapplicable for mobile devices to implement the existing secure multiparty computation schemes that rely on costly computation and communication overhead. To solve this problem, we propose an efficient two-party computation protocol secure against semi-honest adversary based on the Chinese remainder theorem (CRT). Our protocol utilizes CRT-based encryption and re-encryption techniques to realize additional and multiplicative homomorphic encryption, which can be transformed into a two-party secure computation scheme. Then, we extend our two-party LPCP protocol into a multiparty LPCP protocol, which is much faster and more space saving than the previous works. For practical purpose, we describe a distance measurement application for mobile devices based on LPCP. In the end, we implement LPCP codes and compare the experimental results to the state-of-the-art two-party and multiparty computation protocols. The experimental result shows that the high computation and communication efficiency of LPCP makes it possible for low computing-power mobile devices to implement multiparty secure computation protocols in reality.
1. Introduction
Multiparty computation (MPC) [1] allows a group of parties to compute a pre-defined function jointly without revealing their input information. MPC was initially introduced by Yao [2] in the 1980s. After decades of development, MPC has overcome many theoretical bottlenecks [3] and come into use in many areas, such as privacy-preserving machine learning [4,5] and cloud data storage [6]. In particular, two-party computation (2PC) plays a fundamental but indispensable role in the development of MPC because many 2PC schemes can be easily transformed into MPC schemes [7]. So we mainly focus on 2PC in this paper. The traditional 2PC schemes strongly rely on advanced computing power and large storage space machines. In the latest 2PC work by Lindell [8], their 2PC experiments are executed on two Amazon AWS instances: one is c4.8xlarge with 36 virtual 2.9 GHz CPUs and 64 GB RAM, and the other is c4.2xlarge with 8 virtual 2.9 GHz CPUs and 15 GB RAM, which is inapplicable for mobile devices. Although many optimization methods, such as amortization, pre-processing and round optimization, have been employed to decrease the computational and communication complexity in recent works [9,10,11], these improved MPC schemes are still far from daily application on mobile devices. Therefore, it is necessary to introduce a computing-efficient and communication-efficient MPC scheme for mobile devices with low computing ability.
In this paper, we propose an efficient MPC scheme called the lightning polynomial computation protocol (LPCP), which solves the problems mentioned above. Our starting point is a fully homomorphic encryption (FHE) [12], as two-party secure computation schemes can be constructed from a FHE scheme. However, the existing FHE-based 2PC schemes, such as threshold FHE [13,14] and multi-key FHE [15,16], do not meet our computational and communication efficiency demand. Inspired by Zhou’s [17] outsourced secure computation scheme LPPA, we find a delicate way to boost the execution process of MPC. In the LPPA paper, Zhou employed the Chinese remainder theorem (CRT) to construct an online computation scheme that allows additive homomorphic and multiplicative homomorphic operations with the help of a trusted third party and a double server. The advantage of LPPA is that the low computational and space requirement can be easily met by mobile devices, while the disadvantage is that all the computation tasks are assigned to a trusted third party and a double server, which are not allowed to exist in MPC cases. To construct a secure MPC scheme, we aim to remove the trusted third party and the double server. Therefore, we reassign the tasks of the trusted third party and double server directly to the two participant parties. The tasks of the double server are separated apart so that the original re-encryption task is assigned to the first party, and the original evaluation task is assigned to the second party. In the meanwhile, our modifications do not increase the computational and communication complexity. As a result, a 2PC protocol is accomplished without the double server and a trusted third party. Furthermore, we can transform our 2PC protocol into a MPC protocol in a recursive way.
1.1. Our Contributions
In this paper, we propose an efficient CRT-based MPC scheme for polynomial computations, which is secure against a semi-honest adversary. As far as we know, our LPCP scheme is the first protocol that introduces the Chinese remainder theorem encryption [18] and the re-encryption techniques into an MPC scheme. The computational complexity of LPCP is reduced to , where is the big prime parameters, is the polynomial term number, is the time of executing a trapdoor permutation encryption, is the time of executing multiplication arithmetic operations, and is the time of executing a hash function. The communication complexity of LPCP is reduced to , where is the length of the trapdoor permutation ciphertext, is the length of the ciphertext, and is the length of the hash value. For two-party secure computation, compared to the latest two-party secure computation protocol Emp-sh2pc [19], our experimental result is more than 100 times faster than Emp-sh2pc in 128-bit and 256-bit additive and multiplicative tests, and more than 100,000 times faster in the 1024-bit modular exponential tests. For multiparty secure computation, our experimental result is much more scalable than those semi-honest protocols from MP-SPDZ [20]. Both the computational and communication overhead of LPCP is affordable for mobile devices with low computation power. As a result, it is feasible for privacy-preserving mobile devices to implement two-party secure computation with our protocol LPCP.
1.2. Related Works
In 1978, Rivest, Adleman and Dertouzos [21] first introduced privacy homomorphism that allows computation on encrypted data without decryption, and they give a CRT-based example. In 2009, Gentry [22] proposed the first concrete fully homomorphic encryption scheme based on ideal lattices. Based on the learning-with-error (LWE) assumption, Cheon [23] proposed a widely used FHE scheme called CKKS, which has been realized in many cryptography libraries. As the fully homomorphic encryption scheme can directly perform the computations on the ciphertexts without decryption, it brings many MPC ideas into being. López-Alt [14] proposed a new MPC scheme based on FHE. In the CRT fields, Kim [18] introduced a CRT-based fully homomorphic encryption scheme over the integers, which is secure against the chosen plaintext attacks under the decisional approximate greatest common divisor (AGCD) assumption and the sparse subset sum assumption. Zhou [17] proposed a CRT-based secure outsourced computation scheme that realizes fully the homomorphic property in a re-encryption way.
1.3. Orgnization
The paper is arranged as follows. Firstly, we introduce the preliminaries in Section 2. Then, the framework for two-party LPCP is described in Section 3. In Section 4, we give the flow chart of LPCP and present the concrete construction of LPCP for a two-party computation situation. In Section 5, we prove the correctness of LPCP and the privacy security of LPCP in the hybrid simulation. In Section 6, the original two-party construction of LPCP is extended into three or more party secure computation schemes. In Section 7, we describe a mobile device application scene based on our LPCP scheme. In Section 8, we evaluate the performance of our protocol in the aspects of running time and communication overhead. Then, we compare the result of our experiment to the latest works. Finally, we make a conclusion of the advantages and disadvantages of LPCP in Section 9.
2. Preliminaries
2.1. One-Way Trapdoor Permutation
One-way trapdoor permutation is a triple of function , where f is a one-way function and t is secret information generated by security parameter . Furthermore, function is also a permutation, where . There exists a polynomial algorithm that correctly computes function with the trapdoor t. For all probabilistic polynomial algorithms without the trapdoor t, there exists
where and are negligible in .
2.2. Euler’S Theorem
Let n and a be coprime positive integers, that is, , then
where is Euler’s totient function.
2.3. Chinese Remainder Theorem (CRT)
The Chinese remainder theorem asserts that if positive integers are pairwise coprime, for and every integer satisfies , there exists one and only one solution x such that to the following congruence.
with , and , the solution .
2.4. Hash Function
Hash function is a function which maps data of arbitrary size to fixed-size values . A good hash function should be collision resistant such that for all probabilistic polynomial-time adversaries , cannot find a collision such that with non-negligible probability.
3. Framework for Two-Party LPCP
In this section, we introduce the framework for our semi-honest two-party secure computation protocol LPCP.
First of all, we define the security model of our two-party LPCP scheme. Considering the following situation, two semi-honest parties and intend to calculate a polynomial function with inputs and , respectively. For convenience, we use to denote sender and to denote receiver in this section. At the beginning of the protocol execution, one party is statically corrupted by the adversary. The corrupted party is allowed to learn as much information as possible, but cannot violate the protocol rules, which meets the definition of a semi-honest adversary.
To reduce the time and communication complexity, we abandon those widely used techniques, such as garbled circuits, oblivious transfer and secret sharing. Instead, LPCP implements the Chinese remainder theorem and re-encryption technique to realize additive and multiplicative homomorphism. The main idea of LPCP is that two parties encrypt their plaintexts with different secret keys, initially. Then, one party re-encrypts the other party’s ciphertext, transforming both parties’ ciphertext under the same secret key, where the computation process can be executed quickly. Finally, both parties decrypt the computed ciphertext to obtain the resulting answer. For concrete proof of the homomorphism, see Proof Section 4. LPCP consists of five ideal functionalities—the setup functionality , the key generation functionality , the encryption functionality , the re-encryption functionality , the evaluation functionality , and the decryption functionality .
In , two parties jointly decide the security parameter and the polynomial function . The polynomial function takes in and , and is expected to output the correct result. All the coefficients and degrees of polynomial terms are decided by and in advance.
Ideal Functionality
- and run .
- and decide the polynomial function .
Once the initial parameter and the polynomial function are decided, both and begin to generate their private keys according to the parameter given in the functionality . It is important to remember that our protocol implements symmetric encryption instead of asymmetric encryption. Therefore, the private key generated should be kept secret by each party respectively. Additionally, the randomness parameter should not be leaked as well.
Ideal Functionality
- and call the parameter to generate their secret keys and randomness parameters r by running .
In the encryption phase, encrypts its message with its private key and a random element r generated in . Receiver encrypts its message in the same way as sender , except that does not multiply a random element with its ciphertext.
Ideal Functionality
- and encrypt their messages respectively by running .
- sends its ciphertext to .
As mentioned above, sender and receiver encrypt their messages with different private keys and different randomness tuples, which results in their ciphertexts being in two distinct ciphertext spaces. Direct addition and multiplication on such two ciphertexts result in a wrong answer. That is why we introduce the re-encryption functionality . The re-encryption functionality aims to make sure that ’s ciphertext is correctly calculated with receiver ’s ciphertext without leaking secret information.
Ideal Functionality
- Receiver receives the original ciphertext C from sender .
- Receiver partially decrypts the ciphertext C in order to obtain the intermediate ciphertext .
- Receiver re-encrypts the intermediate ciphertext to obtain the sender ’s ciphertext under the receiver ’s secret key by running .
- Receiver sends back the re-encryption result to sender .
The evaluation functionality is the key step where sender finishes the calculation. The ciphertexts are transformed into the same ciphertext space; however, with different polynomial degrees. It is necessary for sender to unify the degree of every term in the polynomial before the evaluation. After that, sender calculates the sum of every polynomial term, finishing the evaluation step.
Ideal Functionality
- Sender receives ’s ciphertext C together with the re-encryption ciphertext and reduces the initial randomness r from its re-encryption ciphertext.
- Sender carries out the computation function .
- Sender transfers to receiver .
In the end, we reach the final step—the decryption functionality. Receiver , who owns the private key , implements the decryption and sends the output back to .
Ideal Functionality
- Receiver runs the decryption functionality to obtain .
- Receiver shares the to .
In a nutshell, sender appends a random integer r to its message and encrypts them with ’s private key. Receiver encrypts its message with ’s private key. Up to now, the two ciphertexts from and lie in the different ciphertext space. Then, sends its ciphertext to . re-encrypts ’s ciphertext with ’s private key so that both ’s ciphertext and ’s ciphertext lie in the same ciphertext space, where the addition and multiplication operations can be performed directly. After that, sends the re-encrypted ciphertexts to . It is ’s turn to eliminate the random integer r introduced by itself and carry out the polynomial calculation. At last, sends the calculation result back to , which can only be decrypted by ’s private key. Once finishes the decryption, it shares the output with . Throughout the process, the privacy of the inputs and intermediate results are kept secret, which fulfills the goal of 2PC.
4. Concrete Construction for Two-Party LPCP
In this section, we give a detailed description of our two-party secure computation protocol LPCP. For three-party and more parties MPC cases, see Section 6.
In the setting of two-party LPCP, there are two semi-honest parties and , with inputs and , respectively. Both parties intend to compute a polynomial function without leaking any information of their input. Here, we assume the communication channel and both parties’ identifications are authenticated, so they do not need additional negotiations. For convenience, we use to denote sender and to denote receiver . As Section 3 shows, our protocol consists of six phases—the Setup phase, KeyGen phase, Enc phase, Re-Enc phase, Eval phase, and Dec phase in four communication rounds. Figure 1 shows the sketch map of our protocol.
Figure 1.
The interaction flow chart of LPCP’s framework. The process of is on the left side and the process of is on the right side.
Setup: At the beginning of the protocol, and decide the security parameter . If party has not generated the one-way trapdoor permutation function, runs the one-way trapdoor permutation generation algorithm to obtain a one-way trapdoor permutation function pair on . We denote the one-way trapdoor permutation function key pair of sender as and the key pair of receiver as . If both parties have generated their one-way trapdoor permutation function, they can skip the above generation process.
Once the security parameter length is decided, all the parameters can be generated without this communication. For this reason, we can pre-process the setup phase as follows. Both parties pre-process the generation of parameters while they are free. In this way, we can reduce one communication round to optimize the setup phase. As a result, when the request arrives, both parties choose the corresponding security parameters from the parameter library and run the protocol as soon as possible.
KeyGen: In the key generation phase, both parties initialize an integer . The message space is set to be where .
For each party where or , three primes are randomly and independently chosen such that . computes satisfying and . is the multiplicative inverse element of modulo such that and is the multiplicative inverse element of modulo such that . Each party holds , where remain secret, while is public. As LPCP only involves symmetric encryption, there is no public key. This generation of big primes and the multiplicative inverse elements can be pre-processed before the protocol when the parties are free. When the secure computation request comes, the parties can quickly choose a tuple of pre-generated parameters and consume it in the following execution. It must be ensured that every secure computation consumes a differently new tuple of .
Enc: In the encryption phase, sender randomly chooses and , then computes
encrypts his secret modulus and a random element r with the public key of ’s trapdoor permutation. Then implements the Chinese remainder theorem and the Euler’s theorem to construct . Here, the purpose of introducing Euler’s theorem is to mess up the plaintext information. The ciphertext equals the inner product of randomness tuple and secret tuple modulo . In the first communication round, sends together with the hash value to .
On the other hand, receiver randomly chooses and computes
The encryption process of receiver slightly differs from , as the first component of ciphertext is multiplied by the constant 1 instead of a random element. For , the existence of the random element is to mask the message for the subsequent process and expand the ciphertext space into . As there is no need for to be masked and re-encrypted, multiplies by the constant 1. To reduce the communication round, receiver does not send out the ciphertext immediately. Instead, receiver delays sending the ciphertext to the re-encryption phase.
Re-Enc: After receiving the ciphertext, checks whether equals the hash value . If verified, continues the re-encryption process. Otherwise, outputs ⊥ to abort the execution. Then decrypts to obtain the modulus and randomly chooses . re-encrypts ’s ciphertext as follows.
As a result, the ciphertext is equivalent to according to the Chinese remainder theorem and Euler’s theorem. The re-encryption operation transforms ’s ciphertext space into ’s ciphertext space , which lays a foundation for the next evaluation phase. In the second communication round, receiver sends ciphertext with the hash signature back to . Here, the security problem comes if knows the ciphertext and the modulus , does it reveal any information about the input of sender .
Theorem 1.
Assuming the secret parameter is randomly chosen from and the modulus T are known to the adversary. The encryption scheme of receiver
is semantically secure in the presence of an eavesdropper.
Proof.
First, our protocol is under the private key encryption scheme. We define the experiment as follows.
- The adversary outputs a pair of messages where .
- Two big primes p and q are generated using , and a uniform bit is chosen. Ciphertext is computed and given to .
- outputs a bit .
- The output of the experiment is defined to be 1 if , and 0 otherwise. We write if the output of the experiment is 1 and in this case we say that succeeds.
We construct an adversary so that it emulates the eavesdropping experiment for . We define the experiment as follows.
- Take as input the product of three primes .
- Generate the ciphertext C as in .
- Give C to and obtain output N. Output 1 if , and output 0 otherwise.
If can break the ciphertext C to obtain the plaintext , then can calculate . As , can obtain the modulus N by calculating the greatest common divisor . returns the modulus N to . can factor the product of big primes , which breaks the factor assumption. That is, if can break the ciphertext with a non-negligible advantage, can break the factor assumption. Therefore, the encryption scheme is semantically secure in the presence of an eavesdropper. □
Theorem 2.
Assume that the secret parameter r is randomly chosen from and the moduli N and T are known to the adversary . The encryption scheme of the sender
is semantically secure in the presence of an eavesdropper.
Proof.
First, our protocol is under the private key encryption scheme. We define the experiment as follows.
- The adversary outputs a pair of messages where .
- Two big primes p and q are generated using , and a uniform bit is chosen. Ciphertext is computed and given to .
- outputs a bit .
- The output of the experiment is defined to be 1 if , and 0 otherwise. We write if the output of the experiment is 1 and in this case, we say that succeeds.
We construct an adversary so that it emulates the eavesdropping experiment for . We define the experiment as follows.
- Take as input the product of two primes .
- Generate the ciphertext C as in .
- Give C to and obtain output . Output 1 if , and output 0 otherwise.
If can break the ciphertext C to obtain the plaintext , then can obtain the randomness r by multiplying , the inverse element of m, with the result of . According to the Euler theorem, and . We can obtain and . According to the Chinese theorem, the adversary can obtain and . Thus, obtains the prime p by calculating the greatest common divisor and obtains the prime q by calculating the greatest common divisor .
Now the adversary takes N as input. constructs the ciphertext C and gives to as input. As can break the ciphertext and return the big primes to , can return and achieve the prime decomposition, which breaks the factor assumption. can factor the product of big primes , which breaks the factor assumption. That is, if can break the ciphertext with a non-negligible advantage, can break the factor assumption. Therefore, the encryption scheme is semantically secure in the presence of an eavesdropper. □
Now the focus of our work is the presentation of the LPCP protocol and a more formal security analysis is required in future work.
Eval: Before introducing the evaluation phase, we prove the additive and multiplicative homomorphism of our CRT-based encryption scheme. The purpose of the re-encryption phase is to unify ciphertexts of and into the same ring space . After the re-encryption, ciphertexts and are encrypted by the same private key of in the same ring space , where the additional and multiplicative operations can be performed directly on the ciphertexts. Below, we prove the homomorphism property that the decryption result of and the decryption result of .
Proof.
□
After receiving the message , sender checks whether equals the hash value . If verified, continues the evaluation process. Otherwise, outputs ⊥ to abort the execution. Then decrypts to obtain and partially decrypts while keeping unchanged. The multiplicative inverse of satisfies . As parameter is known to , it is easy for to obtain the inverse element in the decryption phase. Degree is the maximum degree of polynomial , and is the degree of the term of the polynomial. There are two reasons why the random element r is introduced into the ciphertext. One reason is to prevent from deducing the plaintext , reversely referring to . The other reason is to unify the degree of the polynomial terms to perform the additive operations. In the third communication round, sends the final ciphertext and hash signature to .
Dec: In the decryption phase, after receiving the message , receiver checks whether equals the hash value . If verified, continues the decryption process. Otherwise, outputs ⊥ to abort the execution. obtains the random element r from the trapdoor permutation and computes the multiplicative inverse of r that satisfies . In the last communication round, shares the result with .
At the end, and obtain the result of polynomial function without revealing their inputs and , which achieves the goal of secure two-party computation.
5. Security Proof
In this section, we give the security proof of LPCP.
5.1. Correctness
Before the security proof, we present the correctness of LPCP.
5.2. Privacy
We give the privacy proof of the 2PC LPCP protocol by simulation.
First, we consider the case of sender being corrupted by the semi-honest adversary . The adversary obtains access to all the input and output of , including ’s security parameter , the input message , the prime tuple , the randomness tuple, the polynomial function and the ciphertexts received. Receiver sends the ciphertexts to the adversary in the second communication round and fourth communication round. The input ciphertexts are simulated as follows:
- In the second round simulation, receives the ciphertext .
- In the fourth round simulation, receives the plaintext .
Below, we prove that the honest sender cannot distinguish its simulated view with its real execution view.
- : This hybrid is the same as the real-world execution.
- : This hybrid is the same as , except we change the output from to . randomly chooses . According to Theorem 2 and the reason that does not know the modulus for decryption, cannot distinguish the real output from the simulated output .
- : This hybrid is the same as , except we change the ciphertext from to . randomly chooses the ciphertext and . As has no information about ’s value , cannot distinguish the real ciphertext from the simulated ciphertext . According to Theorem 1, cannot distinguish the real re-encryption ciphertext from the simulated re-encryption ciphertext .
The hybrid model is statistically indistinguishable from the hybrid model , where is the real-world view of , and is the ideal world view of . Therefore, the 2PC LPCP protocol is secure when is corrupted.
Secondly, we consider the case of being corrupted by the semi-honest adversary . The adversary gets access to all the input and output of receiver , including ’s security parameter , the input message , the prime tuple , the randomness tuple, the polynomial function and the ciphertexts received. The adversary receives ciphertexts in the first and third communication round.
- In the first round, receives the ciphertext .
- In the third round, receives the ciphertext .
Below, we prove that the semi-honest sender can not distinguish the simulated view with the real execution view.
- : This hybrid model is the same as the real-world execution.
- : This hybrid model is the same as , except we change the ciphertext to the randomly simulated ciphertexts . When simulates the ciphertext , chooses a random element and sends to . As does not know the randomness , the ciphertext is multiplied with , the inverse element of . Therefore, cannot distinguish the randomly forged ciphertext from the real ciphertext .
The hybrid model is statistically indistinguishable from the hybrid model , where is the real-world view of and is the ideal-world view of . Therefore, the 2PC LPCP protocol is secure when is corrupted.
In summary, our 2PC LPCP is secure against the semi-honest adversary and guarantees the privacy of both parties’ input information. Now the focus of our work is the presentation of the LPCP protocol. A more formal security analysis is required in future work.
6. Extension to Three and More Parties LPCP
In Section 4, we present a two-party secure computation construction. Furthermore, LPCP can be extended into an MPC scheme with three and more parties utilizing the two-party LPCP scheme. In the following part, we present a three-party MPC construction. There are three parties , and with inputs and , respectively, who aim to compute a polynomial function .
Our main idea is that and perform the LPCP protocol and then perform the other LPCP protocol with . Concretely speaking, we execute the two-party LPCP scheme between and . Then we see and as a whole part and execute the other two-party LPCP scheme between this whole part and . To ensure the privacy security, the original two-party LPCP scheme is modified slightly. First, executes the operations as the sender, and executes the same operations as the receiver in Section 4, except that does not send the last ciphertext to in the re-encryption phase. Instead, encrypts the last ciphertext with its secret keys and begins a new round of the two-party LPCP scheme with . The true decryption phase is delayed to the end of the whole protocol, where and decrypt the final ciphertext to obtain the answer.
Setup: The setup phase is the same as the two-party LPCP scheme.
KeyGeneration: For , each party randomly and independently chooses three length-equal primes which satisfy . Each party generates a trapdoor permutation key pair and . Then, computes and .
Encryption: randomly chooses and . Then computes as follows and sends and to .
randomly chooses and computes
randomly chooses and . Then, computes as follows and sends and to .
Re-Encryption: In the re-encryption phase, receives the ciphertexts and from and and from . opens the trapdoor permutation with its secret key , randomly chooses and , then re-encrypts the ciphertexts and as follows.
After the re-encryption, sends the re-encrypted ciphertexts and back to . randomly chooses and re-encrypts as follows.
Evaluation Round1: In the first round of the evaluation phase, encrypts the resulting ciphertext instead of sending it back to . randomly chooses and .
Then computes the ciphertext and sends it to the third participant party .
Evaluation Round2 receives the ciphertext and , then computes as follows.
After the evaluation, the ciphertext is sent to for partial decryption.
Decryption In the decryption phase, performs the first decryption, then performs the second decryption.
The existence of two rounds of evaluation is to make sure the ciphertexts are encrypted by the same private space and lie in the same ring space. When there are more than three parties, we can make use of the paradigm above to modify our LPCP scheme. However, the more parties there are, the more communication rounds there will be. When the party number grows large, the communication overhead increases rapidly, which leads to high latency. We will research this problem in our later work.
7. Mobile Device Distance Measurement Applications
In this section, we present a mobile device distance measurement application based on LPCP.
Nowadays, many mobile phone applications (APP) services are built on the location based service (LBS) [24,25]. For example, when users want to search the nearest take-out restaurant for dinner or they want to make friends with the stranger within a three-kilometer range on dating software, they need to upload their location information to APP servers. However, this uploading location information may reveal their location or even reveal their home address. Therefore, it is necessary to introduce location privacy techniques into those LBS-based APPs. Multiparty secure computation techniques can solve the location privacy problems above. However, it takes too much time, from seconds to minutes, for traditional MPC protocols to be executed on mobile devices with low computing power. Our secure computation protocol LPCP becomes of use in such circumstances. LPCP’s advantages of fast execution and low communication overhead make it possible for mobile devices to execute MPC protocols.
Supposing there are two users with mobile devices who wish to measure the distance between each other in an APP locally. The main idea is as follows. As the local APP service only makes sense in a limited and effective range, we divide the geographical positions into many two-dimensional planes, where . Here, the notation is the security parameter, and is the amplification factor. Then, the location of each user is mapped into the coordinate system in a co-located rectangle area. Concretely, the location of is scaled up by and mapped into the integer coordinate system . The location of is also scaled up by and mapped into the integer coordinate system so that our LPCP can perform arithmetic operations. The problem of the privacy-preserving distance measurement is now transformed into calculating the polynomial , which can be efficiently solved by the LPCP protocol.
In the setup phase, both mobile devices obtain their geographical information from the location service and map the geographical information into the integer coordinate system and . The security parameter of LPCP is assumed to be fixed to a static value. To avoid the known-plaintext attack, each mobile device adds a relatively small noise , where to its location to conceal its real position. After the pre-processing, the coordinate of becomes , and the coordinate of becomes where the introduced small noise does not cause a distance result error.
In the key generation phase, both mobile devices implement the KeyGen algorithm to generate the prime tuple and the randomness as Section 4.
In the encryption phase, plays the role as sender and plays the role as receiver. executes the sender’s encryption scheme to encrypt messages and , respectively. executes the receiver’s encryption scheme to encrypt messages and , respectively. and deal with the x-coordinate and y-coordinate calculations separately.
The remaining re-encryption phase, evaluation phase, and decryption phase are the same as Section 4. In the re-encryption phase, executes the Re-Enc algorithm. In the evaluation phase, executes the Eval algorithm. In the decryption phase, executes the Dec algorithm.
In the end, both mobile devices obtain the approximate distance between each other while keeping their exact position unexposed.
8. Performance and Evaluation
In this section, we evaluate the theoretical computation and communication complexity of LPCP and evaluate the performance of LPCP.
8.1. Theoretical Analysis
For the computation aspects, the computation overhead comprises three parts—the one-way trapdoor permutation, arithmetic ring operations and hash operations. Both the one-way trapdoor permutation encryption and the one-way trapdoor permutation decryption are implemented twice. The main overhead of the arithmetic ring operations lies in the re-encryption phase. The hash operations is implemented six times. Therefore, the computational complexity of LPCP is , where is the big prime parameters, is the polynomial term number, is the time of executing a trapdoor permutation encryption, is the time of executing the multiplication arithmetic operations, and is the time of executing a hash function.
For the communication aspects, the communication packages contain two trapdoor permutation ciphertexts, five -long ciphertexts and three hash signature messages. To sum up, the communication complexity of LPCP is reduced to , where is the length of the trapdoor permutation ciphertext, is the length of the ciphertext and is the length of the hash signature.
8.2. Practical Performance
Firstly, we run the LPCP code on a Raspberry Pi to show the compatibility of our scheme with the ARM architecture. The concrete configuration of our ARM environment is shown in Table 1.
Table 1.
Configurations of experiment on ARM architecture.
Secondly, we run the LPCP code on the Intel X86 architecture computer in order to compare the experimental results with other secure computation protocol implementations which are only supported in the X86 instruction set. The concrete configuration of our X86 environment is shown in Table 2.
Table 2.
Configurations of experiment on X86 architecture.
All the experiments are run on the two virtual machines on the same localhost, where the bandwidth bound is 100 Mbps and the latency can be ignored. Given the input , the addition operation expression is and the multiplication operation expression is .
Figure 2 shows the LPCP running time comparison of different arithmetic operation types both on ARM architecture and X86 architecture. When the security parameter length is 32 bits, 64 bits and 128 bits, the running time of LPCP on the ARM architecture is approximately 10 times slower than the running time of LPCP on the X86 architecture. When the security parameter length grows to 256 bits and 1024 bits, the running time of LPCP on the ARM architecture is approximately four times slower than the running time of LPCP on the X86 architecture. It turns out that LPCP protocol can be effectively implemented on the mobile devices based on ARM architecture.
Figure 2.
The running time comparison of additive, multiplicative and exponential arithmetic operations of LPCP on ARM and X86 architecture.
Table 3 shows the practical performance of the two-party LPCP protocol on additive and multiplicative arithmetic operations in both the ARM architecture and the X86 architecture environment. In Table 3, the first column is the arithmetic operation type; the second column is the running time of LPCP execution in ARM architecture environment; the third column is the running time of LPCP execution in X86 architecture environment; and the last column is the communication overhead of ciphertexts transferred between two parties.
Table 3.
Performance of LPCP on additive, multiplicative and exponential operations.
For comparison with other works, we choose one fully homomorphic encryption open-source library and two secure computation open-source libraries. The homomorphic encryption library is HElib, which realizes a leveled fully homomorphic encryption BGV [26] and CKKS [23]. As for the MPC libraries, one is the EMP toolkit [19], which realizes a 2PC protocol Emp-sh2pc secure against a semi-honest adversary. The other is the MP-SPDZ library [20], which benchmarks various secure multi-party computation (MPC) protocols, such as SPDZ [27], SPDZ2k, MASCOT [28], Overdrive [29], BMR garbled circuits [30], Yao’s garbled circuits, and MPC based on Shamir’s secret sharing.
For the FHE comparison, we choose the BGV implementation of arithmetic operations in the HElib library and compare the experimental results to our LPCP data. The experiment divides the running time into encryption time, arithmetic operation time and decryption time. Table 4 respectively shows the encryption time, arithmetic operation time, decryption time and total running time of 64-bit and 1024-bit arithmetic operations. In the additive arithmetic operations, the running time of 64-bit and 1024-bit HElib addition is much faster than LPCP. However, the encryption and decryption times of HElib lag behind, which results in the total running time of HElib being slower than LPCP. In the multiplicative arithmetic operations, the running time of both 64-bit and 1024-bit Helib multiplication is slower than LPCP.
Table 4.
Performance of BGV implemented in HElib library on additive and multiplicative operations.
Next, we analyze the two-party secure computation experimental results comparison between LPCP and Emp-sh2pc. Figure 3 shows the running time comparison of different arithmetic operations, and Figure 4 shows the communication overhead comparison. We can see that LPCP comes in the lead in both the running time and communication overhead. The running time of our protocol is more than 100 times faster than Emp-sh2pc in 128-bit and 256-bit additive and multiplicative tests. In particular, in the 1024-bit modular exponential operation test, the running time of LPCP is more than 100,000 times faster than Emp-sh2pc. Although the running time of LPCP’s additive computation becomes almost as costly as Emp-sh2pc when the bit length of the security parameter comes to 1024 bits. According to the analytic computational and space complexity, the running time of our protocol grows linearly with the largest exponent of the polynomial, which means the multiplicative computation of LPCP takes almost the same amount of time as the additive computation. For this reason, the running time of LPCP’s multiplicative computation is exponentially faster than Emp-sh2pc. As the communication latency increases, the additional one communication round of LPCP results in more communication time than the other 2PC protocols. In the communication space comparison, the total communication space is more than 10,000 times smaller than the result of Emp-sh2pc in 128-bit and 256-bit additive and multiplicative tests.
Figure 3.
The running time comparison of additive operation between LPCP and Emp-sh2pc.
Figure 4.
The running time comparison of multiplicative operation between LPCP and Emp-sh2pc.
When it comes to three-party and four-party secure computation, we compare our LPCP experimental result with MP-SPDZ. To ensure fairness, we choose two kinds of MPC protocols, Semi and Hemi, which are both secure against the semi-honest adversary from the MP-SPDZ library. The difference of the chosen MPC protocol lies in that Semi is built based on oblivious transfer (OT) [31] and Hemi is built based on semi-homomorphic encryption [27]. Figure 5 shows the running time of Semi, Hemi and LPCP in the two-party, three-party and four-party experiments. Figure 6 shows the total communication overhead of Semi, Hemi and LPCP in the two-party, three-party and four-party experiments. The advantage of the fast execution and low communication cost of LPCP becomes much more clear as the number of parties grows because the time complexity and communication complexity grow approximately linearly to the party numbers. From the figures above, we can see that LPCP has better scalability than other traditional MPC protocols in the same condition. It is especially suitable for those mobile devices with low computing power and small storage space to execute LPCP for data privacy.
Figure 5.
Running time of Semi, Hemi and LPCP in different party numbers conditions.
Figure 6.
Total communication overhead of Semi, Hemi and LPCP in different party numbers conditions.
9. Conclusions
In this paper, an efficient CRT-based secure computation protocol LPCP for polynomial calculation is proposed. Based on LPCP, we propose a privacy-preserving distance measurement computation protocol that is affordable for mobile devices.
In the end, we implement LPCP in the ARM architecture environment to show its compatibility with mobile devices. We also implement LPCP in the X86 architecture environment and compare the experimental results with fully homomorphic encryption schemes and different kinds of MPC schemes. In both 2PC and MPC comparisons, our LPCP scheme has a great advantage of both running time and communication overhead, which makes it possible to implement secure computation on mobile devices. For future works, we aim to perform a formal security analysis of LPCP protocol and strengthen the security model against the malicious adversary.
Author Contributions
Conceptualization and methodology, J.T., Z.C. and J.S.; writing—original draft, formal analysis, software and visualization, J.T.; writing—review and editing, Z.C., J.S., X.D.; project administration, funding acquisition, Z.C., J.S. All authors have read and agreed to the published version of the manuscript.
Funding
This work was supported in part by the National Key Research and Development Program of China (Grant No. 2020YFA0712300), in part by the National Natural Science Foundation of China (Grant No. 62132005, 61632012, 62172162).
Institutional Review Board Statement
Not applicable.
Informed Consent Statement
Not applicable.
Data Availability Statement
Not applicable.
Conflicts of Interest
The authors declare no conflict of interest.
Abbreviations
The following abbreviations are used in this manuscript:
| 2PC | Two-party computation |
| MPC | Multiparty computation |
| CRT | Chinese remainder theorem |
| LPCP | Lightning polynomial computation protocol |
| FHE | Fully homomorphic encryption |
| KeyGen | Key generation |
| Enc | Encryption |
| Re-Enc | Re-encryption |
| Dec | Decryption |
| Sender | |
| Receiver | |
| Security parameter |
References
- Lindell, Y. Secure Multiparty Computation (MPC). IACR Cryptol. ePrint Arch. 2020, 2020, 300. [Google Scholar]
- Yao, A.C. Protocols for Secure Computations (Extended Abstract). In Proceedings of the 23rd Annual Symposium on Foundations of Computer Science, Chicago, IL, USA, 3–5 November 1982; IEEE Computer Society: Washington, DC, USA, 1982; pp. 160–164. [Google Scholar]
- Mouchet, C.; Troncoso-Pastoriza, J.R.; Hubaux, J. Multiparty Homomorphic Encryption: From Theory to Practice. IACR Cryptol. ePrint Arch. 2020, 2020, 304. [Google Scholar]
- Patra, A.; Suresh, A. BLAZE: Blazing Fast Privacy-Preserving Machine Learning. In Proceedings of the 27th Annual Network and Distributed System Security Symposium, NDSS 2020, San Diego, CA, USA, 23–26 February 2020; The Internet Society: Reston, VA, USA, 2020. [Google Scholar]
- Byali, M.; Chaudhari, H.; Patra, A.; Suresh, A. FLASH: Fast and Robust Framework for Privacy-preserving Machine Learning. Proc. Priv. Enhancing Technol. 2020, 2020, 459–480. [Google Scholar] [CrossRef] [Scilit]
- Rezaeipour, D. Secure Computation for Cloud data Storage. IACR Cryptol. ePrint Arch. 2019, 2019, 709. [Google Scholar]
- Demmler, D.; Schneider, T.; Zohner, M. ABY - A Framework for Efficient Mixed-Protocol Secure Two-Party Computation. In Proceedings of the 22nd Annual Network and Distributed System Security Symposium, NDSS 2015, San Diego, CA, USA, 8–11 February 2015; The Internet Society: Reston, VA, USA, 2015. [Google Scholar]
- Lindell, Y.; Riva, B. Blazing Fast 2PC in the Offline/Online Setting with Security for Malicious Adversaries. In Proceedings of the 22nd ACM SIGSAC Conference on Computer and Communications Security, Denver, CO, USA, 12–16 October 2015; Ray, I., Li, N., Kruegel, C., Eds.; ACM: New York, NY, USA, 2015; pp. 579–590. [Google Scholar]
- Rindal, P.; Rosulek, M. Faster Malicious 2-Party Secure Computation with Online/Offline Dual Execution. In Proceedings of the 25th USENIX Security Symposium, USENIX Security 16, 10–12 August 2016; Holz, T., Savage, S., Eds.; USENIX Association: Austin, TX, USA, 2016; pp. 297–314. [Google Scholar]
- Smart, N.P.; Tanguy, T. TaaS: Commodity MPC via Triples-as-a-Service. In Proceedings of the 2019 ACM SIGSAC Conference on Cloud Computing Security Workshop, CCSW@CCS 2019, London, UK, 11 November 2019; Sion, R., Papamanthou, C., Eds.; ACM: New York, NY, USA, 2019; pp. 105–116. [Google Scholar]
- Ciampi, M.; Ostrovsky, R.; Waldner, H.; Zikas, V. Round-Optimal and Communication-Efficient Multiparty Computation. IACR Cryptol. ePrint Arch. 2020, 2020, 1437. [Google Scholar]
- Brakerski, Z.; Vaikuntanathan, V. Fully Homomorphic Encryption from Ring-LWE and Security for Key Dependent Messages. In Proceedings of the Advances in Cryptology-CRYPTO 2011—31st Annual Cryptology Conference, Santa Barbara, CA, USA, 14–18 August 2011; Proceedings. Rogaway, P., Ed.; Springer: Berlin/Heidelberg, Germany, 2011; Volume 6841, pp. 505–524. [Google Scholar]
- Asharov, G.; Jain, A.; López-Alt, A.; Tromer, E.; Vaikuntanathan, V.; Wichs, D. Multiparty Computation with Low Communication, Computation and Interaction via Threshold FHE. In Proceedings of the Advances in Cryptology—EUROCRYPT 2012—31st Annual International Conference on the Theory and Applications of Cryptographic Techniques, Cambridge, UK, 15–19 April 2012; Pointcheval, D., Johansson, T., Eds.; Springer: Berlin/Heidelberg, Germany, 2012; Volume 7237, pp. 483–501. [Google Scholar]
- López-Alt, A.; Tromer, E.; Vaikuntanathan, V. On-the-Fly Multiparty Computation on the Cloud via Multikey Fully Homomorphic Encryption. IACR Cryptol. ePrint Arch. 2013, 2013, 94. [Google Scholar]
- Mukherjee, P.; Wichs, D. Two Round Multiparty Computation via Multi-key FHE. In Proceedings of the Advances in Cryptology—EUROCRYPT 2016—35th Annual International Conference on the Theory and Applications of Cryptographic Techniques, Vienna, Austria, 8–12 May 2016; Part II. Fischlin, M., Coron, J., Eds.; Springer: Berlin/Heidelberg, Germany, 2016; Volume 9666, pp. 735–763. [Google Scholar]
- Li, Z.; Ma, C.; Zhou, H. Multi-key FHE for multi-bit messages. Sci. China Inf. Sci. 2018, 61, 1–3. [Google Scholar] [CrossRef] [Scilit]
- Zhou, J.; Cao, Z.; Qin, Z.; Dong, X.; Ren, K. LPPA: Lightweight Privacy-Preserving Authentication From Efficient Multi-Key Secure Outsourced Computation for Location-Based Services in VANETs. IEEE Trans. Inf. Forensics Secur. 2020, 15, 420–434. [Google Scholar] [CrossRef] [Scilit]
- Kim, J.; Lee, M.S.; Yun, A.; Cheon, J.H. CRT-based Fully Homomorphic Encryption over the Integers. IACR Cryptol. ePrint Arch. 2013, 2013, 57. [Google Scholar]
- Wang, X.; Malozemoff, A.J.; Katz, J. Faster Secure Two-Party Computation in the Single-Execution Setting. In Proceedings of the Advances in Cryptology—EUROCRYPT 2017—36th Annual International Conference on the Theory and Applications of Cryptographic Techniques, Paris, France, 30 April–4 May 2017; Part, III. Coron, J., Nielsen, J.B., Eds.; Volume 10212, pp. 399–424. [Google Scholar]
- Keller, M. MP-SPDZ: A Versatile Framework for Multi-Party Computation. IACR Cryptol. ePrint Arch. 2020, 2020, 521. [Google Scholar]
- Rivest, R.L.; Adleman, L.; Dertouzos, M.L. On data banks and privacy homomorphisms. Found. Secur. Comput. 1978, 4, 169–180. [Google Scholar]
- Gentry, C. Fully homomorphic encryption using ideal lattices. In Proceedings of the 41st Annual ACM Symposium on Theory of Computing, STOC 2009, Bethesda, MD, USA, 31 May—2 June 2009; Mitzenmacher, M., Ed.; ACM: New York, NY, USA, 2009; pp. 169–178. [Google Scholar]
- Cheon, J.H.; Kim, A.; Kim, M.; Song, Y.S. Homomorphic Encryption for Arithmetic of Approximate Numbers. In Proceedings of the Advances in Cryptology—ASIACRYPT 2017—23rd International Conference on the Theory and Applications of Cryptology and Information Security, Hong Kong, China, 3–7 December 2017; Proceedings, Part I. Takagi, T., Peyrin, T., Eds.; Springer: Berlin/Heidelberg, Germany, 2017; Volume 10624, pp. 409–437. [Google Scholar]
- Zhou, J.; Dong, X.; Cao, Z.; Vasilakos, A.V. Secure and privacy preserving protocol for cloud-based vehicular DTNs. IEEE Trans. Inf. Forensics Secur. 2015, 10, 1299–1314. [Google Scholar] [CrossRef] [Scilit]
- Ren, W.; Tong, X.; Du, J.; Wang, N.; Li, S.; Min, G.; Zhao, Z.; Bashir, A.K. Privacy-preserving using homomorphic encryption in Mobile IoT systems. Comput. Commun. 2021, 165, 105–111. [Google Scholar] [CrossRef] [Scilit]
- Brakerski, Z.; Gentry, C.; Vaikuntanathan, V. (Leveled) fully homomorphic encryption without bootstrapping. ACM Trans. Comput. Theory (TOCT) 2014, 6, 1–36. [Google Scholar] [CrossRef] [Scilit]
- Damgård, I.; Pastro, V.; Smart, N.P.; Zakarias, S. Multiparty Computation from Somewhat Homomorphic Encryption. In Proceedings of the Advances in Cryptology—CRYPTO 2012—32nd Annual Cryptology Conference, Santa Barbara, CA, USA, 19–23 August 2012; Safavi-Naini, R., Canetti, R., Eds.; Springer: Berlin/Heidelberg, Germany, 2012; Volume 7417, pp. 643–662. [Google Scholar]
- Keller, M.; Orsini, E.; Scholl, P. MASCOT: Faster Malicious Arithmetic Secure Computation with Oblivious Transfer. In Proceedings of the 2016 ACM SIGSAC Conference on Computer and Communications Security, Vienna, Austria, 24–28 October 2016; Weippl, E.R., Katzenbeisser, S., Kruegel, C., Myers, A.C., Halevi, S., Eds.; ACM: New York, NY, USA, 2016; pp. 830–842. [Google Scholar]
- Keller, M.; Pastro, V.; Rotaru, D. Overdrive: Making SPDZ Great Again. In Proceedings of the Advances in Cryptology—EUROCRYPT 2018—37th Annual International Conference on the Theory and Applications of Cryptographic Techniques, Tel Aviv, Israel, 29 April–3 May 2018; Part, III. Nielsen, J.B., Rijmen, V., Eds.; Springer: Berlin/Heidelberg, Germany, 2018; Volume 10822, pp. 158–189. [Google Scholar]
- Beaver, D.; Micali, S.; Rogaway, P. The Round Complexity of Secure Protocols (Extended Abstract). In Proceedings of the 22nd Annual ACM Symposium on Theory of Computing, Baltimore, MD, USA, 13–17 May 1990; Ortiz, H., Ed.; ACM: New York, NY, USA, 1990; pp. 503–513. [Google Scholar]
- Tzeng, W. Efficient oblivious transfer schemes. IACR Cryptol. ePrint Arch. 2001, 2001, 73. [Google Scholar]
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations. |
© 2022 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).





