Secure Computation Slides stolen from Joe Kilian & Vitali Shmatikov Boaz Barak.

Slides:



Advertisements
Similar presentations
Constant-Round Private Database Queries Nenad Dedic and Payman Mohassel Boston UniversityUC Davis.
Advertisements

Dov Gordon & Jonathan Katz University of Maryland.
1 Cryptography: on the Hope for Privacy in a Digital World Omer Reingold VVeizmann and Harvard CRCS.
Revisiting the efficiency of malicious two party computation David Woodruff MIT.
Quid-Pro-Quo-tocols Strengthening Semi-Honest Protocols with Dual Execution Yan Huang 1, Jonathan Katz 2, David Evans 1 1. University of Virginia 2. University.
Joe Kilian NEC Laboratories, America Aladdin Workshop on Privacy in DATA March 27, 2003.
Wonders of the Digital Envelope
Off-the-Record Communication, or, Why Not To Use PGP
Secure Computation of Linear Algebraic Functions
Secure Multiparty Computations on Bitcoin
Last Class: The Problem BobAlice Eve Private Message Eavesdropping.
Efficient Zero-Knowledge Proof Systems Jens Groth University College London.
Polling With Physical Envelopes A Rigorous Analysis of a Human–Centric Protocol Tal Moran Joint work with Moni Naor.
ITIS 6200/ Secure multiparty computation – Alice has x, Bob has y, we want to calculate f(x, y) without disclosing the values – We can only do.
Rational Oblivious Transfer KARTIK NAYAK, XIONG FAN.
CS555Topic 241 Cryptography CS 555 Topic 24: Secure Function Evaluation.
Netprog: Cryptgraphy1 Cryptography Reference: Network Security PRIVATE Communication in a PUBLIC World. by Kaufman, Perlman & Speciner.
Oblivious Transfer (OT) Alice (sender) has n secrets Alice wants to give k secrets to Bob Bob wants the secrets but does not want Alice to know which secrets.
Key Exchange Using Passwords and Long Keys Vladimir Kolesnikov Charles Rackoff Comp. Sci. University of Toronto.
Eran Omri, Bar-Ilan University Joint work with Amos Beimel and Ilan Orlov, BGU Ilan Orlov…!??!!
Lect. 18: Cryptographic Protocols. 2 1.Cryptographic Protocols 2.Special Signatures 3.Secret Sharing and Threshold Cryptography 4.Zero-knowledge Proofs.
Receipt-Free Universally-Verifiable Voting With Everlasting Privacy Tal Moran Joint work with Moni Naor.
Yan Huang, Jonathan Katz, David Evans University of Maryland, University of Virginia Efficient Secure Two-Party Computation Using Symmetric Cut-and-Choose.
COVERT MULTI-PARTY COMPUTATION YINMENG ZHANG ALADDIN REU 2005 LUIS VON AHN MANUEL BLUM.
COVERT TWO-PARTY COMPUTATION LUIS VON AHN CARNEGIE MELLON UNIVERSITY JOINT WORK WITH NICK HOPPER JOHN LANGFORD.
Oblivious Transfer based on the McEliece Assumptions
Secure Multi-party Computations (MPC) A useful tool to cryptographic applications Vassilis Zikas.
Proactive Secure Mobile Digital Signatures Work in progress. Ivan Damgård and Gert Læssøe Mikkelsen University of Aarhus.
10/25/20061 Threshold Paillier Encryption Web Service A Master’s Project Proposal by Brett Wilson.
Co-operative Private Equality Test(CPET) Ronghua Li and Chuan-Kun Wu (received June 21, 2005; revised and accepted July 4, 2005) International Journal.
HOW TO PLAN A COUP D’ETAT COVERT MULTI-PARTY COMPUTATION YINMENG ZHANG ALADDIN REU 2005 LUIS VON AHN MANUEL BLUM.
1 Introduction to Secure Computation Benny Pinkas HP Labs, Princeton.
CRYPTOGRAPHY WHAT IS IT GOOD FOR? Andrej Bogdanov Chinese University of Hong Kong CMSC 5719 | 6 Feb 2012.
CMSC 414 Computer and Network Security Lecture 6 Jonathan Katz.
Overview of Cryptography and Its Applications Dr. Monther Aldwairi New York Institute of Technology- Amman Campus INCS741: Cryptography.
Games Computers (and Computer Scientists) Play Avi Wigderson.
E- Business Digital Signature Varna Free University Prof. Teodora Bakardjieva.
Adaptively Secure Broadcast, Revisited
Pretty Good Privacy by Philip Zimmerman presented by: Chris Ward.
How to play ANY mental game
CS573 Data Privacy and Security
Public-Key Encryption with Lazy Parties Kenji Yasunaga Institute of Systems, Information Technologies and Nanotechnologies (ISIT), Japan Presented at SCN.
Provable Unlinkability Against Traffic Analysis Amnon Ta-Shma Joint work with Ron Berman and Amos Fiat School of Computer Science, Tel-Aviv University.
Untraceable Electronic Mail, Return Addresses, and Digital Pseudonyms David Chaum CACM Vol. 24 No. 2 February 1981 Presented by: Adam Lee 1/24/2006 David.
Wonders of the Digital Envelope Avi Wigderson Institute for Advanced Study.
Slide 1 Vitaly Shmatikov CS 380S Introduction to Secure Multi-Party Computation.
Security protocols  Authentication protocols (this lecture)  Electronic voting protocols  Fair exchange protocols  Digital cash protocols.
1 Cryptography NOTES. 2 Secret Key Cryptography Single key used to encrypt and decrypt. Key must be known by both parties. Assuming we live in a hostile.
Password Mistyping in Two-Factor Authenticated Key Exchange Vladimir KolesnikovCharles Rackoff Bell LabsU. Toronto ICALP 2008.
On the Communication Complexity of SFE with Long Output Daniel Wichs (Northeastern) joint work with Pavel Hubáček.
1 Needham-Schroeder A --> S: A,B, N A S --> A: {N A,B,K AB,{K AB,A} KBS } KAS A --> B:{K AB,A} KBS B --> A:{N B } KAB A --> B:{N B -1} KAB.
Cryptography 1 Crypto Cryptography 2 Crypto  Cryptology  The art and science of making and breaking “secret codes”  Cryptography  making “secret.
Network Security Continued. Digital Signature You want to sign a document. Three conditions. – 1. The receiver can verify the identity of the sender.
Software Security Seminar - 1 Chapter 4. Intermediate Protocols 발표자 : 이장원 Applied Cryptography.
A Brief Introduction to Mix Networks Ari Juels RSA Laboratories © 2001, RSA Security Inc.
Cryptography CS Lecture 19 Prof. Amit Sahai.
1 Cryptography Troy Latchman Byungchil Kim. 2 Fundamentals We know that the medium we use to transmit data is insecure, e.g. can be sniffed. We know that.
Second Price Auctions A Case Study of Secure Distributed Computing Bart De Decker Gregory Neven Frank Piessens Erik Van Hoeymissen.
Cryptographic Security Aveek Chakraborty CS5204 – Operating Systems1.
 5.1 Zero-Knowledge Proofs  5.2 Zero-Knowledge Proofs of Identity  5.3 Identity-Based Public-Key Cryptography  5.4 Oblivious Transfer  5.5 Oblivious.
1 Introduction to Quantum Information Processing CS 467 / CS 667 Phys 467 / Phys 767 C&O 481 / C&O 681 Richard Cleve DC 3524 Course.
Multi-Party Computation r n parties: P 1,…,P n  P i has input s i  Parties want to compute f(s 1,…,s n ) together  P i doesn’t want any information.
Topic 36: Zero-Knowledge Proofs
The first Few Slides stolen from Boaz Barak
Course Business I am traveling April 25-May 3rd
Cryptography CS 555 Lecture 22
Helger Lipmaa University of Tartu, Estonia
Diffie/Hellman Key Exchange
Key Exchange With Public Key Cryptography
Presentation transcript:

Secure Computation Slides stolen from Joe Kilian & Vitali Shmatikov Boaz Barak

Goal of cryptology – protect messages from prying eyes. Lockboxes for data: data safe as long as it is locked up. Curses! I cannot read the message! Well Done! Thank you, Sir Cryptographer! Cryptology – The First Few Millennia

Then: data protected, but not used. Now: Use data, but still protect it as much as possible. Secure Computation: Can we combine information while protecting it as much as possible? The Last Twenty Years

Want to know if both parties are interested in each other. But… Do not want to reveal unrequited love. He loves me, he loves me not… She loves me, she loves me not… Input = 1 : I love you Input = 0: I love you Must compute F(X,Y)=XÆY, giving F(X,Y) to both players. Can we reveal the answer without revealing the inputs? … as a friend The Love Game (AKA the AND game)

Pearl wants to know whether she has more toys than Gersh, Doesnt want to tell Gersh anything. Gersh is willing for Pearl to find out who has more toys, Doesnt want Pearl to know how many toys he has. Who has more toys? Who Cares? Pearl wants to know whether she has more toys than Gersh, Doesnt want to tell Gersh anything. Gersh is willing for Pearl to find out who has more toys, Doesnt want Pearl to know how many toys he has. Can we give Pearl the information she wants, and nothing else, without giving Gersh any information at all? The Spoiled Children Problem (AKA The Millionaires Problem [Yao])

Secret Key: S Public Key: P Trusted public servant cheerfully encrypts, decrypts, signs messages, when appropriate. S1S1 S2S2 S3S3 Blakley,Shamir,Desmedt-Frankel…: Can break secret key up among several entities, Can still encrypt, decrypt, sign, Remains secure even if a few parties are corrupted. Distributed Cryptographic Entities

Auction with private bids: Bids are made to the system, but kept private Only the winning bid, bidders are revealed. Can we have private bids where no one, not even the auctioneer, knows the losing bids? Normal auction: Players reveal bids – high bid is identified along with high bidders. Drawback: Revealing the losing bids gives away strategic information that bidders and auctioneers might exploit in later auctions. $2 $7 $3 $5 $4 Auctions with Private Bids

Final Tally: War: 2 Peace: 2 Nader: 1 The winner is: War War Peace War Peace Nader Electronic Voting

12345 X1X1 X2X2 X3X3 X4X4 X5X5 F 2 (X 1,…,X 5 )F 3 (X 1,…,X 5 )F 4 (X 1,…,X 5 )F 5 (X 1,…,X 5 ) F 1 (X 1,…,X 5 ) Players: 1,…,N Inputs: X 1,…,X N Outputs: F 1 (X 1,…,X N ),…,F N (X 1,…,X N ) Players should learn correct outputs and nothing else. Secure Computation (Yao, Goldreich-Micali-Wigderson)

A snuff Protocol Dont worry, Ill carry your secrets to the grave! The answer is… Ill Help! (for a rea- sonable con- sulting fee…) An Ideal Protocol 16 Tons X1X1 X2X2 F 1 (X 1,X 2 )F 2 (X 1,X 2 ) Goal: Implement something that looks like ideal protocol.

The Nature of the Enemy Corrupting a player lets adversary: Learn its input/output See everything it knew, saw, later sees. Control its behavior (e.g., messages sent) That 80s CIA training sure came in handy… = input = output = changed

The winner still is: War Final Tally: Red-Blooded-American Patriots: Terrorist-Sympathizing Liberals: War Peace Privacy: Inputs should not be revealed. Correctness: Answer should correspond to inputs. Guantanamo The winner is: War What can go wrong?

Outputs may reveal inputs: If candidate received 100% of the votes, we know how you voted. Cannot complain about adversary learning what it can by (independently) selecting its inputs and looking at its outputs. Cannot complain about adversary altering outcome solely by (independently) altering its inputs. Goal is to not allow the adversary to do anything else. Definitions very subtle: Beaver, Micali-Rogaway, Canetti… What We Can/Cant Hope For

Def: Let f:{0,1} n £ {0,1} n {0,1} n £ {0,1} n. A 2-party protocol P is an SFE for f if: Formal definition Correctness: Alice, Bob honest with inputs x,y resp. then Alice learns f 1 (x,y) and Bob learns f 2 (x,y) Security for Alice: If Alice honest with input x, then for every cheating Bob*, there is a simulator S* s.t. S* yIdeal f 2 (x,y) » » Security for Bob: symmetric. Alice(x)Bob*

Yao (GMW,GV,K,…): Yes! * Cryptographic solutions require reasonable assumptions e.g., hardness of factoring * Slight issues about both players getting answer at same time. As long as functions are computable in polynomial time, solutions require polynomial computation, communication. Goldreich-Micali-Wigderson (BGW,CCD,RB,Bea,…): Yes, if number of parties corrupted is less than some constant fraction of the total number of players (e.g., <n/2, <n/3). No hardness assumptions necessary. Can We Do It?

Yaos Protocol Compute any function securely First, convert the function into a boolean circuit AND xy z Truth table: xyz OR xy z Truth table: xyz ANDORAND NOT ORAND Alices inputs Bobs inputs

Overview: 1.Alice prepares garbled version C of C 2.Sends encrypted form x of her input x 3.Allows bob to obtain encrypted form y of his input y 4.Bob can compute from C,x,y the encryption z of z=C(x,y) 5.Bob sends z to Alice and she decrypts and reveals to him z ANDORAND NOT ORAND Alices inputs Bobs inputs Crucial properties: 1.Bob never sees Alices input x in unencrypted form. 2.Bob can obtain encryption of y without Alice learning y. 3.Neither party learns intermediate values. 4.Remains secure even if parties try to cheat.

Intuition ab c AND

Intuition ab c AND a a b b a b b a ab

1: Pick Random Keys For Each Wire Next, evaluate one gate securely –Later, generalize to the entire circuit Alice picks two random keys for each wire –One key corresponds to 0, the other to 1 –6 keys in total for a gate with 2 input wires AND x y z k 0z, k 1z Alice Bob k 0x, k 1x k 0y, k 1y

2: Encrypt Truth Table Alice encrypts each row of the truth table by encrypting the output-wire key with the corresponding pair of input-wire keys AND x y z k 0z, k 1z Alice Bob k 0x, k 1x k 0y, k 1y Original truth table: xyz Encrypted truth table: E k 0x (E k 0y (k 0z )) E k 0x (E k 1y (k 0z )) E k 1x (E k 0y (k 0z )) E k 1x (E k 1y (k 1z ))

3: Send Garbled Truth Table Alice randomly permutes (garbles) encrypted truth table and sends it to Bob AND x y z k 0z, k 1z Alice Bob k 0x, k 1x k 0y, k 1y Garbled truth table: E k 0x (E k 0y (k 0z )) E k 0x (E k 1y (k 0z )) E k 1x (E k 0y (k 0z )) E k 1x (E k 1y (k 1z )) E k 0x (E k 0y (k 0z )) E k 0x (E k 1y (k 0z )) E k 1x (E k 0y (k 0z )) E k 1x (E k 1y (k 1z )) Does not know which row of garbled table corresponds to which row of original table

4: Send Keys For Alices Inputs Alice sends the key corresponding to her input bit –Keys are random, so Bob does not learn what this bit is AND x y z k 0z, k 1z Alice Bob k 0x, k 1x k 0y, k 1y If Alices bit is 1, she simply sends k 1x to Bob; if 0, she sends k 0x Learns K bx where b is Alices input bit, but not b (why?) Garbled truth table: E k 0x (E k 0y (k 0z )) E k 0x (E k 1y (k 0z )) E k 1x (E k 0y (k 0z )) E k 1x (E k 1y (k 1z ))

5: Use OT on Keys for Bobs Input Alice and Bob run oblivious transfer protocol –Alices input is the two keys corresponding to Bobs wire –Bobs input into OT is simply his 1-bit input on that wire AND x y z k 0z, k 1z Alice Bob k 0x, k 1x k 0y, k 1y Run oblivious transfer Alices input: k 0y, k 1y Bobs input: his bit b Bob learns k by What does Alice learn? Knows K bx where b is Alices input bit and K by where b is his own input bit Garbled truth table: E k 0x (E k 0y (k 0z )) E k 0x (E k 1y (k 0z )) E k 1x (E k 0y (k 0z )) E k 1x (E k 1y (k 1z ))

6: Evaluate Garbled Gate Using the two keys that he learned, Bob decrypts exactly one of the output-wire keys –Bob does not learn if this key corresponds to 0 or 1 Why is this important? AND x y z k 0z, k 1z Alice Bob k 0x, k 1x k 0y, k 1y Knows K bx where b is Alices input bit and K by where b is his own input bit Garbled truth table: E k 0x (E k 0y (k 0z )) E k 0x (E k 1y (k 0z )) E k 1x (E k 0y (k 0z )) E k 1x (E k 1y (k 1z )) Suppose b=0, b=1 This is the only row Bob can decrypt. He learns K 0z

In this way, Bob evaluates entire garbled circuit –For each wire in the circuit, Bob learns only one key –It corresponds to 0 or 1 (Bob does not know which) Therefore, Bob does not learn intermediate values (why?) Bob tells Alice the key for the final output wire and she tells him if it corresponds to 0 or 1 –Bob does not tell her intermediate wire keys (why?) 7: Evaluate Entire Circuit ANDOR AND NOT OR AND Alices inputs Bobs inputs

8: Making it robust So far, protocol is only secure for honest-but-curious (aka semi-honest) adversaries: Alice can prepare faulty circuit (e.g. C(x,y)=y). Bob can give Alice wrong output. Solutions: Alice proves in zero knowledge that garbled circuit is correct. (Need also proofs of knowledge for inputs.) cut and choose – Alice prepares several copies of garbled circuit. Bob asks to open up some of them, and then they use an unopened one to compute.

Step 1: Break computations to be performed into itsy-bitsy steps. (additions, multiplications, bitwise operations) Is there any hope? Step 3: Despair at how many itsy-bitsy steps your computation takes. General solutions as impractical as they are beautiful. Step 2: For each operation... Can We Really Do It?

Naor-Pinkas-Sumner Functions computed when running auctions are simple. Can exploit algebraic structure to minimize work. Rabin: Can compute sums very efficiently Testing if two strings are equal is very practical. Sometimes, dont need too many itsy-bitsy operations. Highly optimize Yao-like constructions. Signs of Hope

Protocols are now very practical. Many interesting issues, both human and technical: What should our definitions be? Several commercial efforts Chaum, Neff, NEC,… Most extensively researched subarea of secure computation. 100,000 voters a piece of cake, 1,000,000 voters doable. Electronic Voting