Next Article in Journal
iNUIT: Internet of Things for Urban Innovation
Next Article in Special Issue
Substring Position Search over Encrypted Cloud Data Supporting Efficient Multi-User Setup
Previous Article in Journal
Digital Libraries: The Challenge of Integrating Instagram with a Taxonomy for Content Management
Previous Article in Special Issue
Modeling and Security in Cloud Ecosystems
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Supporting Privacy of Computations in Mobile Big Data Systems †

by
Sriram Nandha Premnath
1 and
Zygmunt J. Haas
2,3,*
1
Qualcomm Research, Santa Clara, CA 95051, USA
2
School of Electrical and Computer Engineering, Cornell University, Ithaca, NY 14853, USA
3
Department of Computer Science, University of Texas at Dallas, Richardson, TX 75080, USA
*
Author to whom correspondence should be addressed.
This paper is an extended version of our work published in the 11th International Conference on Mobile Systems and Pervasive Computing (MobiSPC’14), Niagara Falls, ON, Canada, 17–20 August 2014.
Future Internet 2016, 8(2), 17; https://doi.org/10.3390/fi8020017
Submission received: 16 February 2016 / Revised: 26 April 2016 / Accepted: 28 April 2016 / Published: 10 May 2016
(This article belongs to the Special Issue Security in Cloud Computing and Big Data)

Abstract

:
Cloud computing systems enable clients to rent and share computing resources of third party platforms, and have gained widespread use in recent years. Numerous varieties of mobile, small-scale devices such as smartphones, red e-health devices, etc., across users, are connected to one another through the massive internetwork of vastly powerful servers on the cloud. While mobile devices store “private information” of users such as location, payment, health data, etc., they may also contribute “semi-public information” (which may include crowdsourced data such as transit, traffic, nearby points of interests, etc.) for data analytics. In such a scenario, a mobile device may seek to obtain the result of a computation, which may depend on its private inputs, crowdsourced data from other mobile devices, and/or any “public inputs” from other servers on the Internet. We demonstrate a new method of delegating real-world computations of resource-constrained mobile clients using an encrypted program known as the garbled circuit. Using the garbled version of a mobile client’s inputs, a server in the cloud executes the garbled circuit and returns the resulting garbled outputs. Our system assures privacy of the mobile client’s input data and output of the computation, and also enables the client to verify that the evaluator actually performed the computation. We analyze the complexity of our system. We measure the time taken to construct the garbled circuit as well as evaluate it for varying number of servers. Using real-world data, we evaluate our system for a practical, privacy preserving search application that locates the nearest point of interest for the mobile client to demonstrate feasibility.

Graphical Abstract

1. Introduction

Cloud computing systems enable clients to rent and share computing resources of third party platforms such as Amazon Elastic Cloud, Microsoft Azure, etc., and have gained increased attention in recent years. Availability of a large pool of hardware and software resources allows clients of cloud computing systems to perform computations on a vast amount of data without setting up their own infrastructure [1]. Numerous varieties of mobile, small-scale, IoT (Internet-of-Things)-devices (such as smartphones, e-health devices, etc.), across users, are connected to one another through the massive internetwork of vastly powerful servers on the cloud. These individual devices on their own are significantly enhancing our everyday lives; additionally, big data analytics on the cloud enables cross-correlation of numerous datasets to learn large-scale patterns across users to further enhance the user experience.
While mobile devices store “private information” of users such as location, payment, health data, etc., they may also contribute “semi-public information” (which may include crowdsourced data such as transit, traffic, nearby points of interests, etc.) for data analytics. In such a scenario, a mobile device may seek to obtain the result of a computation, which may depend on its private inputs, crowdsourced data from other mobile devices, and/or any “public inputs” from other servers on the Internet. However, the mobile device may not perform the computation on its own: (i) due to resource constraints (in terms of computing, memory, network, power, etc.); and/or (ii) due to the restrictions (privacy, legal requirements, etc.) on the servers to share data from one user with others. Alternatively, exchange of data in “ plain text form” between the mobile client and the cloud service provider to carry out the computations will also result in complete loss of data privacy.
Homomorphic encryption [2] is one of the approaches to address the problem of preserving data privacy. It can allow the cloud service providers to perform specific computations directly on the encrypted client data, without requiring private decryption keys. To perform any arbitrary computation on encrypted data, fully homomorphic encryption (FHE) schemes (e.g., [3,4,5]) have been proposed recently. However, FHE schemes are currently not suitable for mobile cloud computing or big data applications due to extremely large cipher text size and computational requirements beyond the capabilities of mobile devices today. Therefore, there exists a need for a more efficient alternative suitable for mobile systems.
We consider Yao’s garbled circuits approach [6,7] in our work as a potential alternative to FHE schemes to drastically reduce the ciphertext size. In general, any computation can be represented using a Boolean circuit, for which, there exists a corresponding garbled circuit [6,7,8,9]. Each gate in a garbled circuit can be unlocked using a pair of input “wire keys” to reveal an output wire key, which, in turn, serves as an input wire key for unlocking the subsequent gate in the next level of the circuit, and so on. Each wire key corresponds to the underlying plaintext bit for the relevant wire in the circuit, and the association between the wire keys and the plaintext bits is kept secret from the cloud server that performs the computation. Thus, “oblivious evaluation” of any arbitrary function, expressible as a Boolean circuit, is possible using garbled circuits on any third-party server in the cloud.
While garbled circuits can preserve the privacy of client data, they are, however, one time programs—using the same version of the circuit more than once can reveal to an adversarial evaluator the mapping between the garbled values and the plaintext bits. Since creating a garbled circuit is at least as expensive as evaluating the underlying Boolean circuit, expecting the client to create a new version of the garbled circuit for each evaluation, however, is an unreasonable solution. Therefore, unlike FHE schemes which can directly delegate the desired computation to the cloud servers, a scheme using garbled circuits, presents the additional challenge of efficiently delegating to the cloud servers the creation of garbled circuit [10].
We propose a new method, in which to perform any computation on behalf of the client, a number of cloud servers collaborate to create a new version of the garbled circuit in a distributed manner. Using unique seed value from the client, each server generates a set of private input bits, and interacts with all the other servers to create a new garbled circuit, which is a function of the private input bits of all the servers. Essentially, the servers construct the desired garbled circuit without revealing their private inputs to one another using a secure multiparty computation protocol (e.g., Goldreich et al. [8,9]). Once a new version of the garbled circuit is created using multiple servers, the client utilizes an arbitrary server in the cloud for evaluation. Even if the evaluating server chooses to collude with any strict-subset of servers that participated in the creation of the garbled circuit, the resulting version of the garbled circuit, the garbled inputs that can unlock the circuit, and the corresponding garbled outputs, remain unrecognizable to the evaluator.
While the mobile clients are resource constrained, the cloud servers, however, are sufficiently provisioned to perform numerous intensive computation and communication tasks. Therefore, our proposed system is designed to readily exploit the real-world asymmetry that exists between typical mobile clients and cloud servers. Beyond the generation and exchange of compact cipher text messages, our system requires very little computation and communication involvement from the mobile client to achieve secure and verifiable computing capability. However, the cloud servers can efficiently generate and exchange a large volume of random bits necessary for carrying out the delegated computation due to the significantly large amount of resources available to them. Therefore, our proposed scheme is very suitable for mobile environments (While our proposed system is especially beneficial for clients in a mobile environment, due to compact cipher text messages, it is also suitable for clients in other environments that need to delegate their computations to the cloud servers in a secure manner).
We employ the garbled circuit design of Beaver, Micali, Rogaway (BMR [11,12]) and the secure multiparty computation protocol of Goldreich et al. [8,9] for the purpose of building a secure cloud computing system. To facilitate the construction of the garbled circuit in the cloud, and also to enable the client to efficiently recover and verify the result of the computation, our method incorporates the novel use of the cryptographically secure Blum, Blum, Shub pseudo random number generator [13,14], whose strength relies on the computational difficulty of factorizing large numbers into primes. Using our proposed system, the client can efficiently verify that the evaluator actually and fully performed the requested computation.
Our major contributions are as follows. First, we design a secure mobile cloud computing system that uses multiple servers to perform any arbitrary computation on behalf of the client. Second, even if the evaluating server colludes with all but one of the servers that created the garbled circuit, our system assures the privacy of the client input and the result of the computation. Third, using our system the client can efficiently recover the result of the computation and verify whether the evaluator actually performed the computation. Fourth, we present an analysis of the complexity of our proposed scheme from the perspective of both the client and the server. Our scheme uses very small cipher text messages suitable for mobile clients in comparison to Gentry’s FHE scheme [3]. Fifth, we evaluate our system for a privacy preserving search application that locates the nearest point of interest (bank/ATM) from the mobile client. Our method shows how publicly available location information from different sources (e.g., from Wells Fargo, Chase) may be used in conjunction with private location information of a mobile device in a privacy preserving computation. Finally, to demonstrate the feasibility of our system, we measure the time taken to construct and evaluate the garbled circuit for varying number of servers.
The rest of the paper is structured as follows. Section 2 presents a high-level overview, our adversary model and the main characteristics of our system. In Section 3, we present the background material. We present our proposed secure and verifiable cloud computing system in Section 4. We analyze the complexity of our system in Section 5. Section 6 presents our case study of a privacy preserving search application for computing the nearest point of interest from the mobile client. We discuss the related work in Section 7, and present our concluding remarks in Section 8.

2. A High-Level Overview of Our System

In our proposed system, the client utilizes a set of ( n + 2 ) servers, { p 1 , p 2 , , p n , p c , p e } , in the cloud. To each server p i ( 1 i n ) , the client initially sends a description of the desired computation (simple examples of which could be addition of two numbers, computation of hamming distance between two bit sequences, etc.), and a unique seed value s i . Each of the n servers first creates (or retrieves from its repository, if available already) a corresponding Boolean circuit (B) for the requested computation. Each server p i ( 1 i n ) , uses the unique seed value s i to generate a private pseudorandom bit sequence whose length is proportional to the total number of wires in the Boolean circuit (B). Then, these n servers use their private pseudorandom bit sequences and the Boolean circuit (B) as inputs, communicate with one another, as well as perform some local computations, according to a secure multiparty computation protocol, to create their shares ( G C i , ( 1 i n ) ) for an one-time program called a “garbled circuit”.
Once the shares for the garbled circuit are created, the client instructs all of the n servers, p i ( 1 i n ) , to send their shares, G C i , to the server p c . Applying an XOR operation on these shares, the server p c creates the desired circuit, G C = G C 1 G C 2 G C n . Subsequently, the client instructs the server p c to send the garbled circuit G C to another server p e for evaluation, either for immediate or future use. Now, the client generates its own garbled input values for each input wire in the circuit using the unique seed values s i ( 1 i n ) , and sends them to the server p e for evaluation. Using these garbled inputs, the server p e unlocks each gate on the first level of the circuit to obtain the corresponding garbled outputs, which, in turn, can unlock each gate on the second level of the circuit, and so on. In this manner, the server p e unlocks every gate in the circuit, to obtain the garbled outputs of the circuit, and returns them to the client. To recover the result of the desired computation, the client now translates these garbled output values into plaintext bits.
Figure 1 depicts an overview of our proposed secure cloud computing system with ( n + 2 ) = 5 servers.

2.1. Our Adversarial Model

We assume that there exists a secure communication channel between the client and each of the ( n + 2 ) servers, { p 1 , p 2 , , p n , p c , p e } , to send the unique seed values for pseudorandom bit generation, identity of the other servers, etc. We assume that every pair of communicating servers authenticate one another (Note that without authentication, an external adversary can masquerade any of the servers to disrupt the construction of the garbled circuit in an unpredictable manner. Additionally, if the communication between the client and the ( n + 2 ) servers is compromised by an external adversary, then it can determine the semantics of garbled inputs/outputs based on the seed values. Therefore, both authenticity and confidentiality of communication are essential for the construction of garbled circuits). We assume a very capable adversary, where the evaluator p e will remain unable to determine the plain text values from the garbled values that it can observe during evaluation even if it individually colludes with any proper subset of the n servers, { p 1 , p 2 , , p n } . Our adversary model captures a very realistic scenario — where the client may be certain that some (however, not all) of the parties are corrupt, however, it is uncertain which of the parties are corrupt. If any adversarial party eavesdrops and analyzes all the messages between different parties, and also analyze all the messages that it has legitimately received from the other parties, it still cannot determine the shares of the other parties, or the plain text values of the garbled value pairs that are assigned to each wire in the circuit. Furthermore, the client can efficiently detect a cheating evaluator p e which returns arbitrary numbers as output to the client without performing any computation. A new garbled circuit is created for every evaluation in our model. Thus, the set of inputs and outputs that have changed or remained the same between different evaluations remains unknown to the evaluator.

2.2. Main Characteristics of Our System

We highlight some of the main features of our secure cloud computing system in this subsection.
  • Offloaded Computation: The client delegates the intensive computational tasks to the cloud servers of creating and evaluating the garbled circuit. The client only chooses the cloud servers, provides them with unique seed values, generates garbled inputs during evaluation, and interprets garbled outputs returned by the evaluator.
  • Compact Cipher Text: While Gentry’s scheme has an extremely large cipher text size, the cipher text size can be as small as a few hundred bits with our scheme (Section 5.6). Thus, our proposed method is far more practical for cloud computing in mobile systems in comparison to FHE schemes.
  • Decoupling: The process of creating the garbled circuit is decoupled from the process of evaluating the garbled circuit. While the servers, p i ( 1 i n ) , interact with one another for creating the garbled circuit, the server p e evaluates the garbled circuit, independently.
  • Advance Construction: Since evaluation of the garbled circuit requires no interaction among the servers, if several versions of the garbled circuit for a given computation are precomputed and stored at the evaluator, in advance, then it can readily carry out the requested computation. Thus, the client will only incur the relatively short time taken to evaluate the garbled circuit. In other words, precomputation will drastically improve the response time for the client.
  • Collusion Resistance: To interpret any garbled value, the evaluator, p e , must collude with each of the n servers, p i ( 1 i n ) . Thus, even if ( n - 1 ) out of the n servers are corrupt and collude with the evaluator, the privacy of the client’s inputs and the result of the computation are still preserved.
  • Verification of Outputs: The client has the ability to verify that the evaluator actually carried out the requested computation.

3. Background

We briefly describe the construction and evaluation of Yao’s garbled circuits [6,7], as well as the oblivious transfer protocols of Naor and Pinkas [15,16].

3.1. Yao’s Garbled Circuit

Any computation (simple examples of which could be addition of two numbers, computation of hamming distance between two bit sequences, etc.) can be represented as a Boolean circuit. Such a Boolean circuit can be expressed using only { A N D , X O R } gates, which corresponds to a “functionally-complete” set of operators. Therefore, any mechanism capable of performing A N D and X O R operations, homomorphically, can enable secure delegation of any arbitrary computation. In our work, we achieve the homomorphic computation of A N D and X O R gates using garbled circuits [6,7,8,9].
Each wire in the circuit is associated with a pair of keys known as “garbled values” that correspond to the underlying binary values. For example, the circuit in Figure 2 has seven wires, ω i ( 0 i 6 ) , and three gates, P , Q , R , denoting OR, AND, XOR gates respectively. Keys ω i 0 , ω i 1 represent the garbled values corresponding to binary values 0, 1 respectively on the wire ω i .
Each gate in the circuit, is associated with a list of four values, in a random order, known as “garbled table”. Table 1 shows the garbled tables for the gates P , Q , R of Figure 2. Let x , y { 0 , 1 } . Let E k [ v ] denote the encryption of v using k as the key. Then, each entry in the garble table for P is of the form, E ω 0 x [ E ω 1 y [ ω 4 x | y ] ] . Similarly, each entry in the garble table for Q and R are of the forms, E ω 2 x [ E ω 3 y [ ω 5 x . y ] ] and E ω 4 x [ E ω 5 y [ ω 6 x y ] ] , respectively.
Suppose that the client wishes to delegate the computation of Figure 2, i.e., ( ( a | b ) ( c . d ) ) , to a server in the cloud. The server is provided with a description of the circuit (Figure 2) along with the set of the garbled tables (Table 1), which together represents a “garbled circuit”. However, the client keeps the mapping between the garbled values and the underlying binary values as secret. For example, to evaluate the circuit with inputs a = 1 , b = 0 , c = 0 , d = 1 , the client provides the set of garbled inputs, ω 0 1 , ω 1 0 , ω 2 0 , ω 3 1 , to the cloud server.
Now, assume that there exists a mechanism to determine whether a value is decrypted correctly; for example, through zero-padding. Using ω 0 1 , ω 1 0 as keys, the server attempts to decrypt all the four entries in the garbled table for gate P; however, only the fourth entry will decrypt correctly to reveal the garbled output ω 4 1 . Similarly, using ω 2 0 , ω 3 1 as keys, the first entry in the garbled table for gate Q reveals the garbled output ω 5 0 . Finally, on using ω 4 1 , ω 5 0 as keys, the third entry in the garbled table for gate R reveals the garbled output ω 6 1 . Thus, the server can perform an “oblivious evaluation” of the garbled circuit and return the result of the computation ω 6 1 to the client. Using the secret mapping, the client can determine that the garbled value ω 6 1 corresponds to the binary value 1.
In our work, we use an alternative garbled circuit design from Beaver, Micali, Rogaway (BMR [11,12]), and adapt it, as we describe in Section 4, for the purpose of building a secure cloud computing system.

3.2. 1-Out-Of-2 Oblivious Transfer

In the 1-out-of-2 oblivious transfer (OT) protocol, there are two parties: a sender and a chooser. There are two private messages at the sender: M 0 , M 1 , and the chooser holds a private choice bit, σ { 0 , 1 } . At the end of the 1-out-of-2 OT protocol, the sender learns nothing, and the chooser learns M σ only.
Let p = 2 q + 1 denote a safe prime number; i.e., q is also a prime number. Let Z p * = { 1 , 2 , 3 , 4 , , ( p - 1 ) } , which denotes the set of integers that are relatively prime to p. Let G denote a subgroup of Z p * , where | G | = q . Let g denote the generator for G.
The sender randomly chooses an element, C G , and sends it to the chooser. Note that the discrete logarithm of C is unknown to the chooser. The chooser randomly selects an integer, k ( 1 k q ) , and sets P K σ = g k m o d p , and P K 1 - σ = C × ( P K σ ) - 1 m o d p . The chooser sends P K 0 to the sender. Note that P K 0 does not reveal the choice bit σ to the sender.
The sender calculates P K 1 = C × ( P K 0 ) - 1 m o d p on its own, and randomly chooses two elements, r 0 , r 1 G . Let h ( x ) denote the output of the hash function (e.g., SHA, which stands for secure hash algorithm) on input x. Let E i denote the encryption of M i , i { 0 , 1 } . Then, the sender calculates E i = [ ( g r i m o d p ) , ( h ( P K i r i m o d p ) M i ) ] , and sends both E 0 , E 1 to the chooser.
The chooser decrypts E σ to obtain M σ as follows. Let l 1 = g r σ m o d p and l 2 = h ( P K σ r σ m o d p ) M σ denote the first and second numbers respectively in E σ . The chooser calculates M σ using the relation, M σ = h ( l 1 k m o d p ) l 2 . Note that since the discrete logarithm of C, and hence P K 1 - σ , is unknown to the chooser, it cannot retrieve M 1 - σ from E 1 - σ .

3.3. 1-Out-Of-4 Oblivious Transfer

In the 1-out-of-4 oblivious transfer (OT) protocol, there are two parties: a sender and a chooser. There are four private messages at the sender: M 00 , M 01 , M 10 , M 11 , and the chooser holds two private choice bits, σ 1 , σ 2 . At the end of the 1-out-of-4 OT protocol, the sender learns nothing, and the chooser learns M σ 1 σ 2 only.
The sender randomly generates two pairs of keys, ( L 0 , L 1 ) , ( R 0 , R 1 ) , and computes the encryptions of M 00 , M 01 , M 10 , M 11 as follows. Let F k ( x ) denote the output of a pseudorandom function such as AES-128, that is keyed using k on the input x. Let E i j denote the encryption of M i j , i , j { 0 , 1 } . Then, E i j = M i j F L i ( 2 i + j + 1 ) F R j ( 2 i + j + 1 ) .
The sender and the chooser engage in 1-out-of-2 OT twice. In the first 1-out-of-2 OT, the sender holds two messages, L 0 , L 1 , and the chooser holds the choice bit, σ 1 ; at the end of this OT, the chooser obtains L σ 1 . In the second 1-out-of-2 OT, the sender holds two messages, R 0 , R 1 , and the chooser holds the choice bit, σ 2 ; at the end of this OT, the chooser obtains R σ 2 .
Now, the sender sends all the four encryptions, E 00 , E 01 , E 10 , E 11 , to the chooser. Using L σ 1 , R σ 2 , the chooser decrypts E σ 1 σ 2 to obtain M σ 1 σ 2 , as M σ 1 σ 2 = E σ 1 σ 2 F L σ 1 ( 2 σ 1 + σ 2 + 1 ) F R σ 2 ( 2 σ 1 + σ 2 + 1 ) .

4. Secure and Verifiable Cloud Computing for Mobile Systems

In Section 4.1, we present the construction of BMR garbled circuit [11,12] using n servers through the secure multiparty computation protocol of Goldreich et al. [8,9]. In Section 4.2, we highlight how we adapt the protocol of Goldreich and the garbled circuit design of BMR, in order to suit them for our secure cloud computing model. In our model, each server p i ( 1 i n ) , generates shares of garbled values using cryptographically secure pseudorandom number generation method of Blum, Blum, Shub [13,14]. In Section 4.3, we present our method of how the client efficiently recovers the result of the delegated computation, as well as how the client verifies that the evaluator in fact carried out the computation. We summarize our secure cloud computing model in Section 4.4.

4.1. Construction and Evaluation of Garbled Circuits

4.1.1. Construction of the Garbled Circuit, G C

Garbled Value Pairs: In order to denote the underlying plaintext bits 0 and 1, each wire in the circuit is associated with a pair of garbled values. Let x , y denote two input wires, and z denote the output wire of a specific gate A in the circuit. Assume that ( α 0 , α 1 ) , ( β 0 , β 1 ) and ( γ 0 , γ 1 ) are the pair of garbled values associated with the wires x, y, and z, respectively. Let L S B ( v ) denote the least significant bit of the number v. Then, L S B ( α 0 ) = L S B ( β 0 ) = L S B ( γ 0 ) = 0 and L S B ( α 1 ) = L S B ( β 1 ) = L S B ( γ 1 ) = 1 .
Let n denote the number of servers and k denote the security parameter. Then, each garbled value is ( n k + 1 ) bits long, and is a concatenation of shares from the n servers. Let a , b , c { 0 , 1 } . Then the garbled values for gate A are as follows: α a = α a 1 | | α a 2 | | α a 3 | | | | α a n | | a ; β b = β b 1 | | β b 2 | | β b 3 | | | | β b n | | b ; γ c = γ c 1 | | γ c 2 | | γ c 3 | | | | γ c n | | c ; here α a i , β b i , γ c i are shares of server p i ( 1 i n ) .
λ Value: A 1-bit λ value is associated with each wire in the circuit, which determines the semantics for the pair of garbled values associated with that wire. Specifically, for a garbled value v whose L S B ( v ) = b , the underlying plaintext bit is ( b λ ) .
Collusion Resistance: Let λ x , λ y , λ z denote the λ values for the three wires x , y , z respectively. Then, λ x = i = 1 n λ x i , λ y = i = 1 n λ y i , λ z = i = 1 n λ z i , where λ x i , λ y i , λ z i are shares of server p i ( 1 i n ) . Since the λ value of each wire is unknown to any individual server, the evaluator of the garbled circuit must collude with each of the n servers to interpret the garbled values.
Garbled Table: Each gate, A, in the circuit, is associated with an ordered list of four values, [ A 00 , A 01 , A 10 , A 11 ] , representing the garbled table for gate A. Note that the λ values of the input wires, which are random, and also unknown to any of the n servers, determine the order of the entries in the garbled table. Let ⊗ denote the binary operation of gate A, where { X O R , A N D } . Then, the value of one specific entry is expressed as, A a b = γ [ ( ( λ x a ) ( λ y b ) ) λ z ] [ G b ( α a 1 ) G b ( α a 2 ) G b ( α a n ) ] [ G a ( β b 1 ) G a ( β b 2 ) G a ( β b n ) ] , where G a and G b are pseudorandom functions that expand k bits into ( n k + 1 ) bits. In the expression for A a b , G 0 ( s ) and G 1 ( s ) denote the first and last ( n k + 1 ) bits of G ( s ) respectively, where G denotes a pseudorandom generator, which on providing a k-bit input seed, outputs a sequence of ( 2 n k + 2 ) bits, i.e., if | s | = k , then | G ( s ) | = ( 2 n k + 2 ) . G may represent the output of AES block cipher in output feedback mode, for example.
For each gate in the circuit, to compute each garbled table entry A a b , the n servers use the secure multiparty computation protocol of Goldreich [8,9] (Section 4.1.2), where f ( x 1 , x 2 , , x n ) = A a b , and for each server, p i , ( 1 i n ) , its private input, x i = [ λ x i , λ y i , λ z i , G b ( α a i ) , G a ( β b i ) , γ 0 i , γ 1 i ] is a vector of length m = ( 3 + 2 ( n k + 1 ) + 2 k ) bits.

4.1.2. Secure Multiparty Computation of an Entry, A a b

Assume that n parties need to compute the value of an arbitrary function of their private inputs, namely f ( x 1 , x 2 , , x n ) without revealing their private inputs to one another. Assume that the function f ( x 1 , x 2 , , x n ) is expressed as a Boolean circuit ( B ) (Boolean circuit B is different from Boolean circuit B. While B is a circuit that corresponds to the computation requested by the client (e.g., addition of two numbers), B is a circuit that creates the entries such as A a b in the garbled tables of the garbled circuit G C ) using XOR and AND gates only.
We briefly describe the secure multiparty computation protocol of Goldreich [8,9] as follows. For each wire in the Boolean circuit, the actual binary value which corresponds to the XOR-sum of shares is distributed among the n parties.
Evaluation of each XOR gate in the circuit, requires no communication—it is carried out locally; each party merely performs an XOR operation over its shares for the two input wires to obtain its share for the output wire.
Evaluation of each AND gate in the circuit, however, requires communication between all pairs of parties. For the two inputs wires of the AND gate, let a i , b i denote the shares of party p i ; and let a j , b j denote the shares of party p j . Then, the output of the AND gate is expressed as follows:
( i = 1 n a i ) . ( i = 1 n b i ) = [ 1 i < j n ( ( a i a j ) . ( b i b j ) ) ] i = 1 n ( ( a i . b i ) . I ) , where I = n m o d 2.
Each party p i computes ( ( a i . b i ) . I ) locally; and the computation of each partial-product, ( ( a i a j ) . ( b i b j ) ) , is realized using 1-out-of-4 oblivious transfer (OT [15,16]) between p i and p j , such that no party reveals its shares to the other party [8,9].
Following the above procedure, the n parties evaluate each gate in the circuit. Thus, in the end, for the BMR protocol, as we have described above, each server p i ( 1 i n ) , obtains the share, ( f ( x 1 , x 2 , , x n ) ) i = ( A a b ) i , such that f ( x 1 , x 2 , , x n ) = A a b = i = 1 n ( A a b ) i .

4.1.3. Evaluation of the Garbled Circuit, G C

The garbled table for each gate, A, in the circuit is an ordered list of four values, [ A 00 , A 01 , A 10 , A 11 ] .
During evaluation, let α , β denote the garbled values for the two input wires of gate A. Let a = L S B ( α ) , b = L S B ( β ) . Then, the garbled value for the output wire, γ, is computed using α , β , A a b , as described in the two steps below:
  • split the most significant n k bits of α into n parts, α 1 , α 2 , α 3 , , α n ; each part has k bits; similarly, split the most significant n k bits of β into n parts, β 1 , β 2 , β 3 , , β n ; each part has k bits; i.e., | α i | = | β i | = k , where 1 i n .
  • compute γ = [ G b ( α 1 ) G b ( α 2 ) G b ( α n ) ] [ G a ( β 1 ) G a ( β 2 ) G a ( β n ) ] A a b .
In this manner, the garbled output for any gate in the circuit can be computed using the garbled table and the two garbled inputs to the gate. Note that while the construction of the garbled circuit requires interaction among all the n parties, p i ( 1 i n ) , the server p e can perform the evaluation of the garbled circuit independently.

4.2. Secure and Verifiable Cloud Computing through Secure Multiparty Computation

In a secure multiparty computation protocol, multiple parties hold private inputs, and receive the result of the computation. However, in our proposed secure cloud computing system, while multiple parties participate in the creation of garbled circuits, only the client holds private inputs and obtains the result of the computation in garbled form. Therefore, we adapt the protocols of Goldreich and BMR in a number of ways, as we discuss in this section, to build an efficient, secure cloud computing system, that also enables the client to easily verify the outputs of the computation.
First, note that in the protocol of Goldreich [8,9], each party p i sends its share ( f ( x 1 , x 2 , , x n ) ) i to all the other parties. Using these shares, each party computes f ( x 1 , x 2 , , x n ) as i = 1 n ( f ( x 1 , x 2 , , x n ) ) i . In our secure cloud computing system, however, we require each server p i ( 1 i n ) , to send its share ( f ( x 1 , x 2 , , x n ) ) i = ( A a b ) i to only one server, p c , which combines the received shares using the XOR operation to produce entries such as A a b for each garbled table in the garbled circuit, G C .
Second, in the BMR protocol [11,12], which is also a secure multiparty computation protocol, in addition to creating the garbled circuit, for evaluation, the n parties also create garbled inputs using secure multiparty computation. Then, each of these n parties evaluates the garbled circuit and obtains the result of the computation. In our system model, since only the client holds the inputs for the computation, it generates the corresponding garbled input for each input wire on its own using the seed values it sends to each server, p i ( 1 i n ) . Then, it sends these garbled values to the server p e for evaluating the garbled circuit and obtains the result in garbled form. Note that in our model, only the server p e evaluates the garbled circuit, and that p e cannot interpret any garbled value, unless it colludes with all the n servers, p i ( 1 i n ) .
Third, in the BMR protocol [11,12], the λ value is set to zero for each output wire in the Boolean circuit. Therefore, each party evaluating the garbled circuit obtains the result of the computation in plaintext form from the LSB of the garbled output for each output wire in the circuit. In our system model, however, the λ value for each output wire is also determined using the XOR-sum of the shares from all the n servers, p i ( 1 i n ) . As a consequence, result of the computation in plaintext form remains as secret for the evaluator p e .
Fourth, in the protocol of Goldreich [8,9], each party splits and shares each of its private input bits with all the other parties over pairwise secure communication channels. In our system, we eliminate this communication using a unique seed value s i k that the client shares with all pairs of parties, ( p i , p k ) , ( 1 i , k n ) . To split and share each of its m private input bits x i j ( 1 j m ) , party p i uses the seed value s i k to generate r k j ( k i ) . Specifically, party p i sets its own share as x i j k = 1 , k i n r k j , where r k j = R ( s i k , j , g a t e i d , e n t r y i d ) corresponds to the output of the pseudorandom bit generator using the seed value s i k for the j t h private input bit of party p i , for a specific garbled table entry ( e n t r y i d ) of one of the gates ( g a t e i d ) in the Boolean circuit. Similarly, party p k sets its own share as r k j = R ( s i k , j , g a t e i d , e n t r y i d ) . The total number of pseudorandom bits generated by each party for the protocol of Goldreich equals 2 ( n - 1 ) m × 4 N g = 8 ( n - 1 ) m × N g , where m = ( 3 + 2 ( n k + 1 ) + 2 k ) , and N g denotes the total number of gates in the circuit. In other words, our approach eliminates the exchange of a very large number of bits ( O ( n 3 k N g ) bits) between the n parties.
Fifth, our novel use of the Blum, Blum, Shub pseudorandom number generator for generating garbled value shares enables the client to efficiently recover and verify the outputs of the computation. The client can detect a cheating evaluator, if it returns arbitrary values as output. We present this in a greater detail in Section 4.3.

4.3. Recovery and Verification of Outputs

We address the following questions in this subsection:
  • How does the client efficiently recover the result of the computation without carrying out the delegated computations by itself?
  • How does the client verify that the evaluator, in fact, evaluated the garbled circuit? Stated differently, is it possible for the client to determine whether the evaluator returned arbitrary numbers without carrying out any computation at all, instead of the actual garbled output for each output wire?
We can enable the client to efficiently retrieve and verify the outputs received from the evaluator, p e . To accomplish this, each of the n parties that participates in the creation of the garbled circuit uses the cryptographically secure Blum, Blum, Shub pseudorandom number generator [13,14], as we have described below.
Let N = p × q denote the product of two large prime numbers such that p and q are congruent to 3 m o d 4. The client chooses a set of n seed values, { s 1 , s 2 , , s n } ; each seed value s i belongs to Z N * , the set of integers relatively prime to N. Over a secure communication channel, the client sends the modulus value N and a unique seed value s i to each party p i ( 1 i n ) . However, the client retains the prime factors, p , q , of N as secret.
Let b i , j = L S B ( x i , j ) denote the j t h bit generated by the party p i ; here x i , j = x i , ( j - 1 ) 2 m o d N, and x i , 0 = s i .
In the Boolean circuit, each wire ω is associated with ( ω 0 , ω 1 ) , a pair of garbled values, and λ ω , a 1-bit value. These are expressed as follows:
ω 0 = ω 01 | | ω 02 | | ω 03 | | | | ω 0 n | | 0 ,
ω 1 = ω 11 | | ω 12 | | ω 13 | | | | ω 1 n | | 1 , and
λ ω = λ ω 1 λ ω 2 λ ω 3 λ ω n .
In the above expressions: ω 0 i , ω 1 i and λ ω i are shares of the party p i ( 1 i n ) , and | ω 0 i | = | ω 1 i | = k , and | λ ω i | = 1 .
Let W denote the number of wires in the Boolean circuit. For each wire ω ( 0 ω W - 1 ) , in the Boolean circuit, each party, p i ( 1 i n ) , generates ( 2 k + 1 ) pseudo random bits. Therefore, each party, p i , generates a total of ( W ( 2 k + 1 ) ) pseudorandom bits.
To generate its shares ω 0 i , ω 1 i , and λ ω i for wire ω, party p i concatenates the b i , j values, where the indices j belong to the range: [ ( ω ( 2 k + 1 ) + 1 ) , ( ω + 1 ) ( 2 k + 1 ) ] . Let Ω ω k = ω ( 2 k + 1 ) for concise notation. Then,
ω 0 i = b i , ( Ω ω k + 1 ) | | b i , ( Ω ω k + 2 ) | | | | b i , ( Ω ω k + k ) ,
ω 1 i = b i , ( Ω ω k + k + 1 ) | | b i , ( Ω ω k + k + 2 ) | | | | b i , ( Ω ω k + 2 k ) ,
λ ω i = b i , ( Ω ω k + 2 k + 1 ) .
Short-Cut: Note that each server p i must compute all the previous ( j - 1 ) bits before it can compute the j t h bit. However, using its secret knowledge of the prime factors of N, i.e., p , q , the client can directly calculate any x i , j (hence, the bit b i , j ) using the relation: x i , j = x i , 0 2 j m o d C ( N ) m o d N ; here C ( N ) denotes the “Carmichael function”, which equals the least common multiple of ( p - 1 ) and ( q - 1 ) .
Therefore, without having to compute ω 0 , ω 1 , and λ ω for any intermediate wire in the circuit, the client can readily compute ω 0 , ω 1 , and λ ω for any output wire ω in the circuit using the secret values p , q . The client can translate each of the garbled values from the evaluator p e into a plaintext bit using the λ ω values of the output wires in order to recover the result of the requested computation. Only if the garbled output from the evaluator matches with either ω 0 or ω 1 , for each output wire ω of the circuit, the client declares that the output verification is successful.
Collusion Resistance: Notice that the evaluator can return one of the two expected garbled outputs for every output wire in the circuit without performing any computation at all, if and only if: (i) it colludes with all the n servers, { p 1 , p 2 , , p n } , that participated in creating the garbled circuit; or (ii) it factorizes N into the prime factors, p and q, which is infeasible.
Furthermore, note that in order to cheat successfully without any collusion, the evaluator would have to correctly guess one of the two expected garbled outputs for each output wire in the circuit. Each garbled output value is ( n k + 1 ) bits long. Therefore, for any reasonable value of the number of servers ( n 2 ) and security parameter ( k = 128 , for example), the evaluator would have to correctly guess hundreds of bits for each output wire in the circuit. Hence, it is very highly unlikely for the evaluator to be successful.
Unpredictability: Even with the knowledge of all the previous/future bits, one cannot predict the next/previous bit output from the Blum, Blum, Shub pseudorandom number generator [13,14]. Therefore, through the observation of garbled values during evaluation, the evaluating server, p e , cannot predict the preceding or subsequent garbled values, or the λ values for every wire in the circuit.

4.4. Summary of Our Proposed System

We summarize our secure cloud computing model in this subsection.
  • The client chooses { p 1 , p 2 , , p n , p c , p e } , a set of ( n + 2 ) servers in the cloud. Then, to each server p i ( 1 i n ) , the client provides a unique seed value s i , and a description of the desired computation. To each pair of servers, ( p i , p k ) , ( 1 i , k n ) , the client also provides another seed value s i k .
  • For the requested computation, each server, p i ( 1 i n ) , creates (or retrieves from its repository, if available already) a corresponding Boolean circuit (B).
  • Using the pseudo random generator of Blum, Blum, Shub, each server, p i ( 1 i n ) , uses the seed value s i to generate its shares for the pair of garbled values and a λ value for each wire in the circuit (B). Each server, p i , generates a pseudorandom bit sequence of length W ( 2 k + 1 ) bits using seed value s i ; here W denotes the number of wires in the Boolean circuit (B).
  • The client instructs the n servers p i ( 1 i n ) to construct the shares ( G C i ) of a BMR garbled circuit, G C , using their shares as private inputs for the secure multiparty computation protocol of Goldreich. Each pair of servers, ( p i , p k ) , ( 1 i , k n ) , generates pseudorandom bits using pairwise seed values s i k while using the protocol of Goldreich. Let A i = ( A 00 ) i | | ( A 01 ) i | | ( A 10 ) i | | ( A 11 ) i denote the shares of server p i corresponding to the four garbled table entries of gate A. Then, G C i equals the concatenation of all bit strings of the form A i , where the concatenation operation is carried out over all the gates in the circuit.
  • The client instructs each of the n servers, p i ( 1 i n ) to send their shares G C i to the server p c . Performing only XOR operations, the server p c creates the desired circuit, G C = G C 1 G C 2 G C n , which is sent to server p e for evaluation.
  • The client generates garbled input values for each input wire in the circuit using the unique seed values s i ( 1 i n ) , and sends them to the server p e for evaluation. The client also generates the λ values and the two possible garbled values for each output wire in the circuit using these seed values, and keeps the λ values as secret.
  • The server p e evaluates G C using the garbled inputs to obtain the garbled output for every output wire in the circuit and sends them to the client. The client now translates these garbled values into plaintext bits, using the λ values, to recover the result of the requested computation.
  • For each output wire in the circuit, the client checks whether the garbled output that is received from the evaluator, p e , matches with one of the two expected garbled values that it computed on its own. If the client determines that there is a match for all output wires, it declares that the evaluator in fact carried out the computation.

5. Complexity

5.1. Circuit Size of One Garbled Table Entry

We analyze the size of the Boolean circuit ( B ) for computing one specific entry ( A a b ) in the garbled table. Assume that each gate produces one output bit from two input bits. As we have shown in Section 4.1.1, A a b = γ [ ( ( λ x a ) ( λ y b ) ) λ z ] [ G b ( α a 1 ) G b ( α a 2 ) G b ( α a n ) ] [ G a ( β b 1 ) G a ( β b 2 ) G a ( β b n ) ] ; here { X O R , A N D } denotes the binary operation of gate A.
Let s denote the expression: ( ( λ x a ) ( λ y b ) ) λ z . Since λ x = i = 1 n λ x i , λ y = i = 1 n λ y i , λ z = i = 1 n λ z i , where λ x i , λ y i , λ z i are shares of server p i , ( 1 i n ) , computing s requires a total of 3 + 3 ( n - 1 ) = 3 n XOR gates and 1 ⊗ gate.
Boolean circuit B includes a multiplexer that chooses γ s , where γ s = ( ( γ 0 γ 1 ) . s ) γ 0 , which is composed of 2 XOR gates and 1 AND gate. The multiplexing is performed on the most significant n k bits since | γ 0 | = | γ 1 | = n k + 1 , and L S B ( γ s ) = s . This multiplexer is composed of a total of 2 n k XOR gates and n k AND gates.
Now, consider the expression: γ s [ G b ( α a 1 ) G b ( α a 2 ) G b ( α a n ) ] [ G a ( β b 1 ) G a ( β b 2 ) G a ( β b n ) ] ; it has ( 2 n + 1 ) terms, which are combined using 2 n XOR operations. Computing this expression requires a total of 2 n ( n k + 1 ) XOR gates, since each term has a length of ( n k + 1 ) bits.
Therefore, the Boolean circuit ( B ) that computes one specific garbled table entry ( A a b ) has a total of ( 3 n + 2 n k + 2 n ( n k + 1 ) ) XOR gates, n k AND gates, and 1 ⊗ gate.
Figure 3 shows the total number of gates in the circuit that computes A a b , when A is an AND gate, as a function of n for a fixed value of k = 128 bits. Notice the relatively small number of AND gates in the circuit. For example, when n = 6 , the circuit that computes A a b has a total of 10782 XOR and 769 AND gates. To summarize, while the number of XOR gates increases quadratically with n, the number of AND gates increases only linearly with n.
Let B denote the Boolean circuit that corresponds to the desired computation such as addition of two numbers. Then, in order to create the garbled circuit G C for B, the n parties use the Boolean circuit B for the protocol of Goldreich to compute each one of the four garbled table entries of the form A a b for each gate A in the circuit B.

5.2. Communication Cost to Compute One Garbled Table Entry

In general, a 1-out-of-2 OT [15] exchange between two parties involves the exchange of: (i) a random element C from the prime order subgroup, G, of Z p * ; (ii) a public key, P K 0 ; and (iii) the encryptions, E 0 , E 1 , of the plaintext messages M 0 , M 1 . Let k denote the security parameter, which equals the size of the plaintext messages, M 0 , M 1 . Let s 1 : 2 denote the total number of bits that are exchanged during a 1-out-of-2 OT. Then, s 1 : 2 = | C | + | P K 0 | + | E 0 | + | E 1 | = | p | + | p | + ( | p | + k ) + ( | p | + k ) = 4 | p | + 2 k .
A 1-out-of-4 OT [16] exchange between two parties includes: (i) two 1-out-of-2 OTs, and (ii) four encryptions, E 00 , E 01 , E 10 , E 11 . Let s 1 : 4 denote the total number of bits exchanged during a 1-out-of-4 OT. Then, s 1 : 4 = 2 ( s 1 : 2 ) + 4 k = 8 ( | p | + k ) ; here | p | and k are public and symmetric key security parameters, respectively. For example, | p | = 3072 achieves the equivalent of k = 128 -bit security [17]; in this case, the sum of the sizes of all messages exchanged during a 1-out-of-4 OT is s 1 : 4 = 3200 bytes.
For each AND gate in the circuit B , each pair of servers, ( p i , p j ) , 1 i < j n , engage in a 1-out-of-4 OT, and there are a total of n ( n - 1 ) / 2 combinations of ( p i , p j ) . The total number of 1-out-of-4 OTs is at most t 1 : 4 = ( n k + 1 ) × n ( n - 1 ) / 2 since the number of AND gates in the circuit B is at most ( n k + 1 ) .
To create the desired garbled table entry, A a b , at the completion of the secure multiparty computation protocol of Goldreich, each server, p i ( 1 i n ) , sends its share ( A a b ) i to another server, p c , which receives a total of s = n ( n k + 1 ) bits from the other n servers since | ( A a b ) i | = n k + 1 .
To summarize, in order to create one garbled table entry, A a b , the total amount of network traffic, T = ( t 1 : 4 × s 1 : 4 ) + s = ( n k + 1 ) [ ( 4 ( | p | + k ) × n ( n - 1 ) ) + n ] . The network traffic is a cubic function of n when the security parameters, k and | p | , are fixed.
Figure 4 shows the network traffic to create one garbled table entry as a function of n. For example, when n = 5 , the cloud servers exchange 19 . 56 MB of data in order to create a single entry in the garbled table.
In the process of creating the garbled circuit, G C , the total amount of network traffic equals 4 N g × T , where N g denotes the total number of gates in the circuit B that corresponds to the desired computation.

5.3. Computation Cost of Creating the Garbled Circuit

Let W denote the total number of wires in the circuit B. For each wire, each server, p i ( 1 i n ) , generates ( 2 k + 1 ) bits using the Blum, Blum, Shub (BBS) pseudorandom number generator (PRNG) [13,14] for its share of garbled values and the λ value. Therefore, the n servers collectively generate a total of b 1 = n ( 2 k + 1 ) W bits using the BBS PRNG. Let N denote the modulus value in BBS PRNG (note: | N | = 3072 achieves 128-bit security [17]). Then, n ( 2 k + 1 ) W modular multiplication operations in Z N * are necessary to generate bits using BBS PRNG.
Let W o denote the number of output wires in the circuit B. Let G denote the PRNG, which we have described in Section 4.1.3, that outputs a sequence of ( 2 n k + 2 ) bits on providing a k-bit input seed. Each server uses the PRNG G, on its share of each garbled value for every non-output wire in the circuit B. Then, while creating the garbled circuit, the n servers collectively use the PRNG G, 2 n ( W - W o ) times to generate a total of b 2 = 4 n ( n k + 1 ) ( W - W o ) bits.
Let N g denote the total number of gates in the circuit B. For protocol of Goldreich, the total number of pseudorandom bits generated by each party using the PRNG R, equals 8 ( n - 1 ) m × N g , where m = ( 3 + 2 ( n k + 1 ) + 2 k ) (Section 4.2). Thus, the n parties collectively generate a total of b 3 = 8 n ( n - 1 ) ( 3 + 2 ( n k + 1 ) + 2 k ) × N g bits using the PRNG R.
Note that both the PRNG G and PRNG R can be realized using a block cipher such as AES (which stands for advanced encryption standard) operating in output feedback mode.
Let t 1 : 4 denote the number of 1-out-of-4 OTs to create one garbled table entry (Section 5.2). Then, the total number of 1-out-of-4 OTs to create the complete garbled circuit G C is at most 4 N g × t 1 : 4 = 4 N g × ( n k + 1 ) × n ( n - 1 ) / 2 .
During a 1-out-of-2 oblivious transfer, the sender and chooser generate a total of | C | + | k | + | r 0 | + | r 1 | = ( 4 | p | - 1 ) bits. Each 1-out-of-4 oblivious transfer involves the cost of two 1-out-of-2 oblivious transfers, in addition to generating a total of | L 0 | + | L 1 | + | R 0 | + | R 1 | = 4 k bits. A very small constant number of modular arithmetic operations, AES and SHA crypto operations are carried out during each OT. While creating the garbled circuit G C , these sets of operations are performed 4 N g × ( n k + 1 ) × n ( n - 1 ) / 2 times; and a total of b 4 = 4 N g × ( n k + 1 ) × ( n ( n - 1 ) / 2 ) × ( 8 | p | + 4 k - 2 ) bits are generated during the OTs.
To summarize, the total number of bits that are generated by the n parties while creating the garbled circuit is b = b 1 + b 2 + b 3 + b 4 = ( n ( 2 k + 1 ) W ) + ( 4 n ( n k + 1 ) ( W - W o ) ) + ( 8 n ( n - 1 ) ( 3 + 2 ( n k + 1 ) + 2 k ) × N g ) + ( 4 N g × ( n k + 1 ) × ( n ( n - 1 ) / 2 ) × ( 8 | p | + 4 k - 2 ) ) . Thus, for any given Boolean circuit, when the security parameters k and | p | are fixed, the total number of bits generated randomly is a cubic function of n.
For example, consider the construction of a garbled circuit for adding two 32-bit numbers. The corresponding Boolean circuit has a total of W = 439 wires, W o = 33 output wires, and N g = 375 gates (The 32-bit adder circuit in [18] has 127 AND gates, 61 XOR gates and 187 NOT gates. Note that a NOT gate is equivalent to an XOR gate, since NOT ( x ) = ( 1 x ). As we have mentioned in Section 4.1, we consider only two different types of gates, namely, { A N D , X O R } in our work. Alternatively, note that more efficient constructions are possible; for example, an AND gate with a NOT gate on its output wire may be replaced with a single NAND gate, if the output wire of the AND gate is not an input wire for any other gate in the circuit).
Figure 5 shows the total number of Mbits that are generated randomly while creating one garbled table entry (i.e., b / ( 4 N g × 2 20 ) ) for the 32-bit adder. As an example, when n = 5 , these parties collectively generate a total of 153 . 41 Mbits to create one garbled table entry.

5.4. Cost of Evaluating the Garbled Circuit

In order to perform the requested computation, the server p e obtains the garbled circuit, G C , from the server p c . Let N g denote the total number of gates in the circuit B. Each entry in the garbled table has a length of ( n k + 1 ) bits. Therefore, the size of the garbled circuit equals 4 N g × ( n k + 1 ) bits.
Figure 6 shows the size of the garbled circuit in Kbits for the 32-bit adder. This circuit has N g = 375 gates. The security parameter k = 128 .
Let W and W o denote the total number of wires and output wires, respectively, in the Boolean circuit B. During evaluation, for each non-output wire of the circuit, the server p e uses the PRNG G n times. Therefore, G is used for a total of ( W - W o ) n times.

5.5. Cost for the Client

In order to create the garbled circuit, the client provides: (i) a unique seed value, s i , to each server p i ( 1 i n ) ; and (ii) a seed value, s i k , to each pair of servers ( p i , p k ) , ( 1 i , k n ) .
The length of each seed value, | s i | = | N | for the BBS PRNG. The length of each seed | s i k | = k for the PRNG R, which can be implemented using a block cipher such as AES in output feedback mode. Let b s denote the total number of bits that the client exchanges for the seed values. Then, b s = n | N | + n ( n - 1 ) k = n ( | N | + ( n - 1 ) k ) .
For each plaintext input bit to the circuit, the client is required to generate the garbled input. Each garbled value is ( n k + 1 ) bits long, whose least significant bit depends on the λ value, and the λ value, in turn, depends on the 1-bit shares for the n parties. Let b i denote the number of bits that the client needs to generate for each input wire. Then, b i = ( n k + n ) .
The client needs to generate both possible garbled outputs for each output wire to enable the verification of outputs. Let b o denote the number of bits that the client needs to generate for each output wire. Then, b o = ( 2 n k + n ) .
Let W i and W o denote the number of input and output wires, respectively, in the Boolean circuit B. Then, the client generates/exchanges a total of b s + W i × b i + W o × b o = n [ | N | + ( n - 1 ) k + W i ( k + 1 ) + W o ( 2 k + 1 ) ] bits.
Figure 7 shows the total number of Kbits that the client generates in order to enable the servers to construct and evaluate the garbled circuit, as well as for the verification of outputs for the 32-bit adder. This circuit has W i = 64 input wires and W o = 33 output wires. The security parameters are k = 128 and | N | = 3072 .
For example, when n = 10 , the client generates about 209 Kbits, if the security parameters are k = 128 and | N | = 3072 . Furthermore, note that even when the security parameters are increased to k = 256 and | N | = 15 , 360 , the client generates only 510 Kbits (The security parameters k and | N | are related; Barker et al. [17] provide a tabular listing of recommended combination of value-pairs ( k , | N | ) ).
Comparing Figure 7 with Figure 4 and Figure 5, we notice that while the servers generate and exchange Gigabytes of information to create the garbled circuit, the resource constrained mobile client, on the other hand, generates and exchanges only Kbytes of information with the evaluator and the other servers in the cloud.
While the network traffic among the servers is a cubic function of n (Section 5.2), our result in Figure 7 shows that it is feasible to perform privacy preserving computations on behalf of resource-constrained clients, and that our system is well-suited for such clients, since they generate and exchange only compact cipher text messages with the servers - that are many orders of magnitude smaller than the amount of network traffic between the servers.

5.6. Comparison of Our Scheme with Gentry’s FHE Scheme

While Gentry’s FHE scheme [3] requires a single server only, it, however, expects the client to exchange O ( k 5 ) bits with the evaluating server, for each input and output wire of the circuit. In our secure cloud computing system, for each input and output wire, the client exchanges O ( n k ) bits only with the server p e since each garbled value has a length of ( n k + 1 ) bits. For example, the size of each encrypted plain text bit equals several Gigabits with Gentry’s FHE scheme, while it equals a mere 641 bits in our approach with n = 5 and k = 128 . Therefore, in comparison to FHE schemes, our approach is far more practical for cloud computing in mobile systems.

5.7. Construction and Evaluation Time

We used BIGNUM routines and crypto functions from the OpenSSL library to implement our secure cloud computing system. We built our system as a collection of modules, and our implementation uses TCP (which stands for Transmission Control Protocol) sockets for communication among the servers. Using a server with Intel Xeon 2 . 53 GHz processor (Intel, Santa Clara, CA, USA), with 6 cores and 32 GB RAM we evaluated our system. Figure 8 shows the time taken to construct one garbled table for varying number of servers. We note that in order to significantly reduce the construction time, the garbled tables for any number of gates in the circuit can be constructed in parallel.
Figure 9 shows the time taken to evaluate one garbled gate for varying number of servers. Notice that evaluation is significantly faster than construction, and that the latter can be done offline. The evaluating server can readily carry out the requested computation, and therefore drastically reduce the response time for the mobile client, if the garbled circuits are pre-computed and made available to the evaluator, in advance.
While our prototype is implemented entirely in software, we note that it is possible to achieve significant speedup through special dedicated hardware blocks. For example, our method relies on the computation of pseudorandom functions such as AES, which can be expressed as a Boolean circuit with only AND gates and XOR gates [18]. Therefore, using hardware blocks for realizing the computation of pseudorandom functions that are used very frequently in our system can dramatically improve the overall time taken for performing privacy-preserving computations on the cloud on behalf of the client.

6. Privacy Preserving Search for the Nearest Bank/ATM

In this section, we consider the special scenario of a mobile device seeking to obtain the result of a computation that depends on its own “private inputs”, and also on “public inputs” obtained from other servers on the Internet. More specifically, we examine the following privacy preserving application. A mobile client, which is located at the intersection of two streets, needs to determine the location of the nearest Chase or Wells Fargo banks or an ATM machine in a privacy-preserving manner. We evaluate our application using real-world data available for Salt Lake City, UT, whose streets are arranged in a “grid pattern”. Our application assures the privacy of the following: (i) the mobile client’s input location; (ii) the computed bank/ATM location nearest to the client; and (iii) the computed distance to the nearest ATM. Note that these secrets are revealed to the evaluator only if it colludes with all the n servers that participate in the creation of the garbled circuit.
We consider an area of Salt Lake City, UT that lies between the Main Street (which represents the 0 East Street), the 1300 East Street, the South Temple Street (which represents the 0 South Street), and the 800 South Street. This area consists of L = 10 ATM locations that are shown in Table 2.
Each East/South coordinate in this area is an l = m a x ( l o g 2 1300 , l o g 2 800 ) = 11 -bit unsigned number. Therefore, the location of the mobile client at an intersection, or any bank/ATM in this area can be identified using L i n d = 2 l = 22 bits.

6.1. Circuit for Computing Manhattan Distance

Let ( x a , y a ) represent the coordinates of the mobile client at an intersection. Similarly, let ( x b , y b ) represent the coordinates of a bank/ATM. Since the streets are arranged in a grid pattern, the shortest distance (D) between ( x a , y a ) and ( x b , y b ) equals the sum of the absolute differences between the respective coordinates: D = | x a - x b | + | y a - y b | . This distance metric is more commonly referred to as the Manhattan distance.
We design a Boolean circuit for computing the Manhattan distance between two points, ( x a , y a ) and ( x b , y b ) . Assume that each coordinate is an l bit unsigned number. Figure 10 and Figure 11 show the block diagram of our circuit. We use the S U B and A D D blocks of Kolesnikov et al. [21].
Each S U B / A D D block is composed of l 1-bit subtractors/adders; each 1-bit subtractor/adder, in turn, is composed of 4 XOR gates, 1 AND gate. Note that ( l + 1 ) t h output bit of S U B block equals the complement of carry-out bit from the l t h 1-bit subtractor.
If x a x b , then the output of S U B block equals the absolute difference, | x a - x b | . Otherwise, the output of S U B block equals the negative value, - | x a - x b | , in 2 s complement form. Since x l + 1 = 1 for negative values, we use x l + 1 as one of the inputs for the X O R gates in the I N V block to compute the 1 s complement of the absolute difference. Then, we subsequently use x l + 1 as a carry-in input bit for the A D D block. Thus, the output of the A D D block accounts for both x a x b and x a < x b cases.
Similarly, for the Y coordinates we use the S U B and I N V blocks to compute the absolute difference in 1 s complement form. To account for the case when y l + 1 = 1 , we use an I N C block that adds the value of the bit y l + 1 to the output of the A D D block. The I N C block is composed of l half-adder (HA) blocks, where each H A block, in turn, is composed of 1 X O R and 1 A N D gate.
The output of the I N C block represents the ( l + 1 ) -bit Manhattan distance between ( x a , y a ) and ( x b , y b ) . Using the circuit design of Figure 10 and Figure 11, a list of distances between the location of the mobile client and any number (L) of ATM locations can be computed. Table 3 shows that our Boolean circuit for computing the Manhattan distance between two points has a total of ( 15 l + 1 ) X O R gates and 4 l A N D gates.
Note: In a more direct alternative to compute Manhattan distance, we may first find m i n ( x a , x b ) and m a x ( x a , x b ) , and always subtract m i n ( x a , x b ) from m a x ( x a , x b ) (similarly for the Y coordinates). While this approach would eliminate I N V and I N C blocks, it however would require the use of two comparator and conditional swap blocks [22], which together introduce 12 l new X O R gates and 4 l A N D gates. Consequently, this alternative approach to compute Manhattan distance would require a total of 24 l X O R gates and 7 l A N D gates. Thus, in comparison to this more direct alternative, our design shown above in Figure 10 and Figure 11 requires a significantly smaller number of ( 15 l + 1 ) X O R and 4 l A N D gates.

6.2. Circuit for Computing the Nearest ATM

Following the computation of distance between the mobile client and L ATM locations, it is necessary to find the nearest ATM, along with its distance. We use the approach of Kolesnikov et al. [21] to find the minimum value and its index, given a list of values. Kolesnikov et al. [21] have designed a M I N block to find the minimum of two input values – it uses the result of a comparator to multiplex the minimum value, as well as the corresponding index as shown in Figure 12. Table 4 shows the size of the circuit that computes the minimum of two values, along with its index. In our privacy preserving application, each distance is an ( l + 1 ) = 11 + 1 = 12 -bit number, and each index that identifies an ATM using its East and South coordinates is an L i n d = 2 l = 22 -bit number.
Given L values and their indices, using ( L - 1 ) M I N blocks organized as a tree, the minimum value and the corresponding index are propagated from the leaves to the root. Figure 12 shows the computation of the minimum of 4 input values, D 1 , D 2 , D 3 , D 4 , and the corresponding index, i m i n ( D 1 , D 2 , D 3 , D 4 ) , as an example.
Table 5 shows the number of X O R and A N D gates in the complete circuit that computes the nearest ATM location. It shows that in our privacy preserving application of finding the nearest Chase or Wells Fargo ATM in Salt Lake City, the circuit has a total of 2596 X O R and 854 A N D gates.

6.3. Server-Side and Client-Side Cost

Figure 13 shows the network traffic as a function of the number of servers (n) involved in the creation of the garbled circuit that can compute the nearest ATM and the corresponding distance in a privacy preserving manner. For example, with n = 4 servers, the servers exchange a total of 126 G B of information to create the garbled circuit. This result demonstrates the feasibility of our approach for performing real-world privacy-preserving computations.
In order to facilitate the creation of the garbled circuit, and for the evaluation, the mobile client sends: (i) the seed values to the n servers; and (ii) the garbled values representing the coordinates of the input location to the evaluator. Since the ATM locations are publicly known, they are assumed to be hard-coded in the garbled circuit. i.e., the client is not required to transmit the ATM locations to the servers.
Figure 14 shows the total number of bits generated by the client to delegate the privacy preserving computation of finding the nearest ATM and the distance from the client. To preserve location privacy, the client exchanges a very small amount of information with the servers—less than 60 Kbits, with n = 4 servers, for example. From Figure 13 and Figure 14, we note that in comparison to the server-side cost, the client-side cost grows much slowly with the number of servers.

7. Related Work

Homomorphic encryption methods enable computations directly on the encrypted data, without requiring private decryption keys. For example, the product of two ciphertext messages produces a ciphertext corresponding to the product of the underlying plain text messages in the RSA public key system [2]. Domingo-Ferrer et al. [23] present an additive and multiplicative homomorphic scheme in which polynomials are used to represent ciphertext; however, multiplication operations drastically increase the size of the cipher text in their scheme. Recently, fully homomorphic encryption (FHE) schemes (e.g., [3,4,5]) have been proposed, which enable performing any arbitrary computation on encrypted data. However, FHE schemes are currently not suitable for mobile cloud computing applications due to extremely large cipher text size and computational requirements beyond the capabilities of mobile devices today. Our work presents a far better alternative suitable for mobile systems.
Yao’s garbled circuits have been mainly used in the context of secure two-party computation [6,7,24]. Lindell et al. [25] present an extensive survey of secure multiparty computation, along with numerous potential applications—some examples of which are privacy preserving data mining, private set intersection, electronic voting and electronic auction. Over the years, a number of secure two-party and multiparty computation systems have been built (e.g., [26,27,28]). In secure multiparty computation systems, multiple parties hold private inputs and receive the result of the computation. While multiple parties participate in the creation of garbled circuits, only the client has the private inputs and obtains the result of the computation, in garbled form however, in our secure cloud computing system. As we have described in Section 4.2, in our work, we adapt secure multiparty computation protocols [8,9,11,12], for building a secure and verifiable cloud computing for mobile systems.
Some existing works [29,30] use arithmetic circuits for performing homomorphic addition and multiplication operations. However, Boolean circuits are sufficient for our purpose of creating the garbled table entries, since it only involves simple binary operations such as XOR and AND (Section 4.1.1). Additionally, Boolean circuits are more efficient than arithmetic circuits for homomorphic comparison of numbers, which we have used abundantly in our privacy preserving search application (Section 6), since comparison using an arithmetic circuit involves a large number of multiplications and communication rounds among the participants [29,30].
Branching programs offer an alternate method for representing Boolean functions. Ames et al. [31] present a branching program formulation for secure health monitoring using homomorphic encryption. Ames et al. [31] present simulation results on real ECG (which stands for electrocardiogram) data, and note that their approach of using branching programs provides significant speedup in comparison to methods using traditional circuits. It could be a very interesting avenue for future research to explore the use of garbled circuits in conjunction with branching programs, especially for secure cloud computing applications and mobile big data systems.
In the Twin clouds [32] secure cloud computing architecture, the client uses a private cloud for creating garbled circuits and a public commodity cloud for evaluating them. Our solution, however, utilizes multiple public cloud servers for creating as well as evaluating the garbled circuits. Stated alternatively, our solution obviates the requirement of private cloud servers. Furthermore, in twin clouds, the privacy of the client data is lost if the evaluator colludes with the sole/only server that constructs the garbled circuit. In our work, on the other hand, the use of multiple servers for construction of garbled circuits offers greater resistance to collusion (Section 2).
While FHE schemes remain impractical currently, they, however, offer interesting constructions, such as reusable garbled circuits [33] and verifiable computing capabilities [34]. In our proposed system, we enable the client to efficiently verify whether a cloud server has actually evaluated the garbled circuit, without depending on any FHE scheme.
Naehrig et al. [35] present an implementation of a “somewhat” homomorphic encryption scheme, which is capable of computing simple statistics such as mean, standard deviation and regression, which require only addition operations, and a very few multiplication operations. Another recent work (P4P [36]) provides privacy preservation for computations involving summations only. In comparison, our scheme, which is based on Yao’s garbled circuits, is not limited to computation of simple statistics or summations only; i.e., our scheme is more generic, and can perform any arbitrary computation.
Carter et al. [37] have proposed a secure two party computation system, which however has three participants: Alice, Bob and a Proxy. In their work, Alice is a mobile device that delegates the task of evaluating the garbled circuits to the Proxy, which is a cloud server, and Bob is a webserver that creates garbled circuits. We note that our computation and adversary models are very different from that of Carter et al.’s work [37]. First, in their work, both Alice and Bob provide private inputs for the secure two party computation that they wish to perform jointly; however, in our work, only one party, i.e., the mobile client, provides inputs and obtains the result of the computation in garbled form. Second, Carter et al.’s [37] scheme requires that neither Alice nor Bob can collude with the Proxy; in a sharp contrast, even if the evaluating server colludes with all but one of the cloud servers that participated in the creation of the garbled circuit, our method can preserve the privacy of the client’s data.

8. Concluding Remarks

We proposed a novel secure and verifiable cloud computing for mobile big data systems using multiple servers. Our method is a unique combination of the secure multiparty computation protocol of Goldreich et al. [8,9], the garbled circuit design of Beaver et al. [11,12], and the cryptographically secure pseudorandom number generation method of Blum et al. [13,14]. Even if the evaluator colludes with all but one of the servers that participated in the creation of the garbled circuit, our method can preserve the privacy of the mobile client’s inputs and the results of the computation. Furthermore, our system can detect a cheating evaluator that returns arbitrary output without performing any computation at all. We presented the server-side and client-side complexity analysis of our system. Using real-world data, we evaluated our system for a privacy preserving search application that locates the nearest point of interest from the mobile client. We also evaluated the time taken to construct and evaluate a garbled circuit for varying number of servers to demonstrate the feasibility of our proposed approach.
To summarize, our method shows how publicly available location information from different sources (e.g., from Wells Fargo, Chase) may be used in conjunction with private location information of a mobile device in a privacy preserving computation.
Our software implementation is available through our computing in the cloud website [38].

Acknowledgments

Our work is part of the National Science Foundation (NSF) Future Internet Architecture Project, and is supported by NSF under the following grant numbers: CNS-1040689, ECCS-1308208 and CNS-1352880. We thank Srinivasa Vamsi Laxman Perala for implementing various components of the system in Section 5.7.

Author Contributions

S.N.P. contributed to the design of the proposed scheme, analysis, formulation of the case-study, literature survey and manuscript preparation. Z.J.H. supervised this research work, contributed to the refinement of all aspects of this work, and also in enhancing the manscript.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Armbrust, M.; Fox, A.; Griffith, R.; Joseph, A.D.; Katz, R.; Konwinski, A.; Lee, G.; Patterson, D.; Rabkin, A.; Stoica, I.; Zaharia, M. A view of cloud computing. Commun. ACM 2010, 53, 50–58. [Google Scholar] [CrossRef]
  2. Rivest, R.L.; Adleman, L.; Dertouzos, M.L. On data banks and privacy homomorphisms. Found. Secur. Comput. 1978, 4, 169–180. [Google Scholar]
  3. Gentry, C. Computing arbitrary functions of encrypted data. Commun. ACM 2010, 53, 97–105. [Google Scholar] [CrossRef]
  4. Brakerski, Z.; Vaikuntanathan, V. Efficient fully homomorphic encryption from (standard) LWE. In IEEE 52Nd Annual Symposium on Foundations of Computer Science; IEEE Computer Society: Washington, DC, USA, 2011; pp. 97–106. [Google Scholar]
  5. Zhang, X.; Xu, C.; Jin, C.; Xie, R.; Zhao, J. Efficient fully homomorphic encryption from {RLWE} with an extension to a threshold encryption scheme. Future Gener. Comput. Syst. 2014, 36, 180–186. [Google Scholar] [CrossRef]
  6. Yao, A.C. Protocols for secure computations. In Proceedings of the 23rd Annual Symposium on Foundations of Computer Science, SFCS ’08, Chicago, IL, USA, 3–5 November 1982.
  7. Yao, A.C.-C. How to generate and exchange secrets. In Proceedings of the 27th Annual Symposium on Foundations of Computer Science, Toronto, ON, Canada, 27–29 October 1986.
  8. Goldreich, O. Foundations of Cryptography: Volume 2, Basic Applications; Cambridge University Press: Cambridge, UK, 2004. [Google Scholar]
  9. Goldreich, O.; Micali, S.; Wigderson, A. How to play ANY mental game. In Proceedings of the Nineteenth Annual ACM Symposium on Theory of Computing, New York, NY, USA, 25–27 May 1987; pp. 218–229.
  10. Premnath, S.N.; Haas, Z.J. A Practical, Secure, and Verifiable Cloud Computing for Mobile Systems. In Proceedings of the 9th International Conference on Future Networks and Communications (FNC’14)/The 11th International Conference on Mobile Systems and Pervasive Computing (MobiSPC’14)/Affiliated Workshops, Niagara Falls, Canada, 17–20 August 2014; Series Procedia Computer Science. Volume 34, pp. 474–483.
  11. Beaver, D.; Micali, S.; Rogaway, P. The round complexity of secure protocols. In Proceedings of the Twenty-Second Annual ACM Symposium on Theory of Computing, Baltimore, MD, USA, 13–17 May 1990; pp. 503–513.
  12. Rogaway, P. The Round Complexity of Secure Protocols. Ph.D. Thesis, Massachusetts Institute of Technology, Cambridge, MA, USA, 22 April 1991. [Google Scholar]
  13. Blum, L.; Blum, M.; Shub, M. A simple unpredictable pseudo random number generator. SIAM J. Comput. 1986, 15, 364–383. [Google Scholar] [CrossRef]
  14. Schneier, B. Applied Cryptography: Protocols, Algorithms, and Source Code in C, 2nd ed.; John Wiley & Sons, Inc.: Hoboken, NJ, USA, 1995. [Google Scholar]
  15. Naor, M.; Pinkas, B. Efficient oblivious transfer protocols. In Proceedings of the Twelfth Annual ACM-SIAM Symposium on Discrete Algorithms, Washington, DC, USA, 7–9 January 2001; pp. 448–457.
  16. Naor, M.; Pinkas, B. Computationally secure oblivious transfer. J. Cryptol. 2005, 18, 1–35. [Google Scholar] [CrossRef]
  17. Barker, E.; Barker, W.; Burr, W.; Polk, W.; Smid, M. Recommendation for key management—Part 1: General (Revision 3). NIST Spec. Publ. 2012, 700–857. Available online: http://www.amazon.com/Recommendation-Key-Management-General-Revision/dp/1499160224 (accessed on 5 May 2016). [Google Scholar]
  18. Tillich, S.; Smart, N. Circuits of Basic Functions Suitable For MPC and FHE. Available online: http://www.cs.bris.ac.uk/Research /CryptographySecurity/MPC/ (accessed on 15 April 2014).
  19. Chase. Available online: http://www.chase.com (accessed on 15 April 2014).
  20. Wells Fargo. Available online: http://www.wellsfargo.com (accessed on 15 April 2014).
  21. Kolesnikov, V.; Sadeghi, A.R.; Schneider, T. Improved garbled circuit building blocks and applications to auctions and computing minima. In Cryptology and Network Security; Springer: Berlin/Heidelberg, Germany, 2009; pp. 1–20. [Google Scholar]
  22. Huang, Y.; Evans, D.; Katz, J. Private set intersection: Are garbled circuits better than custom protocols. In NDSS; The Internet Society: San Diego, CA, USA, 2012. [Google Scholar]
  23. Domingo-Ferrer, J. A provably secure additive and multiplicative privacy homomorphism. In Information Security; Springer: Berlin/Heidelberg, Germany, 2002; pp. 471–483. [Google Scholar]
  24. Lindell, Y.; Pinkas, B. A proof of security of yao’s protocol for two-party computation. J. Cryptol. 2009, 22, 168–188. [Google Scholar] [CrossRef]
  25. Lindell, Y.; Pinkas, B. Secure multiparty computation for privacy-preserving data mining. J. Priv. Confid. 2009, 1, 59–98. [Google Scholar]
  26. Henecka, W.; Sadeghi, A.R.; Schneider, T.; Wehrenberg, I. TASTY: Tool for automating secure two-party computations. In Proceedings of the 17th ACM Conference on Computer and Communications Security, Chicago, IL, USA, 4–8 October 2010; pp. 451–462.
  27. Malkhi, D.; Nisan, N.; Pinkas, B.; Sella, Y. Fairplay—A secure two-party computation system. In USENIX Security Symposium; USENIX Association: San Diego, CA, USA, 2004. [Google Scholar]
  28. Ben-David, A.; Nisan, N.; Pinkas, B. FairplayMP: A system for secure multi-party computation. In Proceedings of the 15th ACM Conference on Computer and Communications Security, Alexandria, VA, USA, 27–31 October 2008; pp. 257–266.
  29. Burkhart, M.; Strasser, M.; Many, D.; Dimitropoulos, X. SEPIA: Privacy-preserving aggregation of multi-domain network events and statistics. In Proceedings of the 19th USENIX conference on Security, Washington, DC, USA, 11–13 August 2010.
  30. Damgård, I.; Pastro, V.; Smart, N.; Zakarias, S. Multiparty computation from somewhat homomorphic encryption. In Advances in Cryptology–CRYPTO 2012; Springer: Berlin/Heidelberg, Germany, 2012. [Google Scholar]
  31. Ames, S.; Venkitasubramaniam, M.; Page, A.; Kocabas, O.; Soyata, T. Secure health monitoring in the cloud using homomorphic encryption, a branching-program formulation. In Enabling Real-Time Mobile Cloud Computing through Emerging Technologies; Soyata, T., Ed.; IGI Global: Hershey, PA, USA, 2015; pp. 116–152. [Google Scholar]
  32. Bugiel, S.; Nürnberger, S.; Sadeghi, A.R.; Schneider, T. Twin clouds: Secure cloud computing with low latency. In Communications and Multimedia Security; Springer: Berlin/Heidelberg, Germany, 2011; pp. 32–44. [Google Scholar]
  33. Goldwasser, S.; Kalai, Y.; Popa, R.A.; Vaikuntanathan, V.; Zeldovich, N. Reusable garbled circuits and succinct functional encryption. In Proceedings of the Forty-Fifth Annual ACM Symposium on Theory of Computing, Palo Alto, CA, USA, 1–4 June 2013; pp. 555–564.
  34. Gennaro, R.; Gentry, C.; Parno, B. Non interactive verifiable computing: Outsourcing computation to untrusted workers. In Advances in Cryptology–CRYPTO 2010; Springer: Berlin/Heidelberg, Germany, 2010; pp. 465–482. [Google Scholar]
  35. Naehrig, M.; Lauter, K.; Vaikuntanathan, V. Can homomorphic encryption be practical? In Proceedings of the 3rd ACM Workshop on Cloud Computing Security Workshop, Chicago, IL, USA, 17–21 October 2011; pp. 113–124.
  36. Duan, Y.; Canny, J.; Zhan, J. P4P: Practical large-scale privacy-preserving distributed computation robust against malicious users. In Proceedings of the 19th USENIX conference on Security, Washington, DC, USA, 11–13 August 2010.
  37. Carter, H.; Mood, B.; Traynor, P.; Butler, K. Secure outsourced garbled circuit evaluation for mobile devices. In Proceedings of the 22nd USENIX Conference on Security, Washington, DC, USA, 14–16 August 2013.
  38. Computing in the Cloud. Available online: https://people.ece.cornell.edu/haas/wnl/CiC (accessed on 15 July 2014).
Figure 1. Our secure cloud computing model with ( n + 2 ) = 5 servers. (1) Client sends unique seed value, s i , to each p i ( 1 i 3 ) ; (2) p 1 , p 2 , p 3 interact ( I i j , 1 i < j 3 ) to construct shares of the garbled circuit G C ; (3) Each p i sends its share ( G C i ) to p c ; (4) p c computes G C = G C 1 G C 2 G C 3 , and sends it to p e ; (5) Client generates garbled inputs, and sends them to p e for evaluation; (6) p e evaluates G C , and returns the garbled outputs to the client.
Figure 1. Our secure cloud computing model with ( n + 2 ) = 5 servers. (1) Client sends unique seed value, s i , to each p i ( 1 i 3 ) ; (2) p 1 , p 2 , p 3 interact ( I i j , 1 i < j 3 ) to construct shares of the garbled circuit G C ; (3) Each p i sends its share ( G C i ) to p c ; (4) p c computes G C = G C 1 G C 2 G C 3 , and sends it to p e ; (5) Client generates garbled inputs, and sends them to p e for evaluation; (6) p e evaluates G C , and returns the garbled outputs to the client.
Futureinternet 08 00017 g001
Figure 2. A circuit with three gates, P , Q , R , and seven wires, ω i ( 0 i 6 ) .
Figure 2. A circuit with three gates, P , Q , R , and seven wires, ω i ( 0 i 6 ) .
Futureinternet 08 00017 g002
Figure 3. Number of gates in the circuit that computes one garbled table entry as a function of n.
Figure 3. Number of gates in the circuit that computes one garbled table entry as a function of n.
Futureinternet 08 00017 g003
Figure 4. Amount of network traffic to compute one garbled table entry as a function of n.
Figure 4. Amount of network traffic to compute one garbled table entry as a function of n.
Futureinternet 08 00017 g004
Figure 5. Total number of Mbits generated randomly while creating one garbled table entry for the 32-bit adder.
Figure 5. Total number of Mbits generated randomly while creating one garbled table entry for the 32-bit adder.
Futureinternet 08 00017 g005
Figure 6. Size of the garbled circuit in Kbits for the 32-bit adder.
Figure 6. Size of the garbled circuit in Kbits for the 32-bit adder.
Futureinternet 08 00017 g006
Figure 7. Total number of Kbits that the client generates to delegate the construction and evaluation of the garbled circuit, and to verify the outputs for the 32-bit adder.
Figure 7. Total number of Kbits that the client generates to delegate the construction and evaluation of the garbled circuit, and to verify the outputs for the 32-bit adder.
Futureinternet 08 00017 g007
Figure 8. Time taken to construct one garbled table.
Figure 8. Time taken to construct one garbled table.
Futureinternet 08 00017 g008
Figure 9. Time taken to evaluate one garbled gate.
Figure 9. Time taken to evaluate one garbled gate.
Futureinternet 08 00017 g009
Figure 10. Absolute difference between the X and Y coordinates.
Figure 10. Absolute difference between the X and Y coordinates.
Futureinternet 08 00017 g010
Figure 11. Manhattan Distance Computation.
Figure 11. Manhattan Distance Computation.
Futureinternet 08 00017 g011
Figure 12. Finding minimum value and index.
Figure 12. Finding minimum value and index.
Futureinternet 08 00017 g012
Figure 13. Server-side network traffic to construct the garbled circuit for determining the nearest ATM.
Figure 13. Server-side network traffic to construct the garbled circuit for determining the nearest ATM.
Futureinternet 08 00017 g013
Figure 14. Client-side cost to determine the nearest ATM.
Figure 14. Client-side cost to determine the nearest ATM.
Futureinternet 08 00017 g014
Table 1. Garbled Tables for Gates P , Q , R .
Table 1. Garbled Tables for Gates P , Q , R .
PQR
E ω 0 0 [ E ω 1 1 [ ω 4 1 ] ] E ω 2 0 [ E ω 3 1 [ ω 5 0 ] ] E ω 4 1 [ E ω 5 1 [ ω 6 0 ] ]
E ω 0 0 [ E ω 1 0 [ ω 4 0 ] ] E ω 2 1 [ E ω 3 0 [ ω 5 0 ] ] E ω 4 0 [ E ω 5 0 [ ω 6 0 ] ]
E ω 0 1 [ E ω 1 1 [ ω 4 1 ] ] E ω 2 0 [ E ω 3 0 [ ω 5 0 ] ] E ω 4 1 [ E ω 5 0 [ ω 6 1 ] ]
E ω 0 1 [ E ω 1 0 [ ω 4 1 ] ] E ω 2 1 [ E ω 3 1 [ ω 5 1 ] ] E ω 4 0 [ E ω 5 1 [ ω 6 1 ] ]
Table 2. Locations of Banks and ATMs in Salt Lake City, UT (source: Chase [19], Wells Fargo [20]).
Table 2. Locations of Banks and ATMs in Salt Lake City, UT (source: Chase [19], Wells Fargo [20]).
Bank/ATMLocation
Chase201 South 0 East
Chase185 South 100 East
Chase376 East 400 South
Chase531 East 400 South
Wells Fargo299 South 0 East
Wells Fargo381 East 300 South
Wells Fargo79 South 0 East
Wells Fargo778 South 0 East
Wells Fargo570 South 700 East
Wells Fargo235 South 1300 East
Table 3. Circuit size for Manhattan distance calculation.
Table 3. Circuit size for Manhattan distance calculation.
Block # X O R Gates # A N D Gates
2 × S U B 2 × 4 l 2 × l
2 × I N V 2 × l 0
A D D 4 l l
I N C l + 1 l
T o t a l 15 l + 1 4 l
Table 4. Circuit size of 1 Min block.
Table 4. Circuit size of 1 Min block.
Block # X O R Gates # A N D Gates
C M P 3 ( l + 1 ) l + 1
M U X m i n 2 ( l + 1 ) l + 1
M U X i n d e x 2 L i n d L i n d
T o t a l 5 ( l + 1 ) + 2 L i n d 2 ( l + 1 ) + L i n d
Table 5. Complete circuit size for nearest ATM. D I S T ( L ) denotes distance to L locations. T ( M I N ) denotes the tree of MIN blocks.
Table 5. Complete circuit size for nearest ATM. D I S T ( L ) denotes distance to L locations. T ( M I N ) denotes the tree of MIN blocks.
Block # X O R Gates # A N D Gates
D I S T ( L ) v 1 = ( 15 l + 1 ) L v 3 = 4 l L
T ( M I N ) v 2 = [ 5 ( l + 1 ) + 2 L i n d ] × ( L - 1 ) v 4 = [ 2 ( l + 1 ) + L i n d ] × ( L - 1 )
T o t a l v 1 + v 2 v 3 + v 4
A p p l i c a t i o n 2596854

Share and Cite

MDPI and ACS Style

Nandha Premnath, S.; Haas, Z.J. Supporting Privacy of Computations in Mobile Big Data Systems. Future Internet 2016, 8, 17. https://doi.org/10.3390/fi8020017

AMA Style

Nandha Premnath S, Haas ZJ. Supporting Privacy of Computations in Mobile Big Data Systems. Future Internet. 2016; 8(2):17. https://doi.org/10.3390/fi8020017

Chicago/Turabian Style

Nandha Premnath, Sriram, and Zygmunt J. Haas. 2016. "Supporting Privacy of Computations in Mobile Big Data Systems" Future Internet 8, no. 2: 17. https://doi.org/10.3390/fi8020017

APA Style

Nandha Premnath, S., & Haas, Z. J. (2016). Supporting Privacy of Computations in Mobile Big Data Systems. Future Internet, 8(2), 17. https://doi.org/10.3390/fi8020017

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop