Special Topics in Cryptography Mohammad Mahmoody Logistics Most - - PowerPoint PPT Presentation

special topics in cryptography
SMART_READER_LITE
LIVE PREVIEW

Special Topics in Cryptography Mohammad Mahmoody Logistics Most - - PowerPoint PPT Presentation

Special Topics in Cryptography Mohammad Mahmoody Logistics Most submitted PS3. If you have not you will get delay, but email it to me ASAP. Deadline for project reports/drafts + slides : This Thursday 5pm. There will be a collab post for


slide-1
SLIDE 1

Special Topics in Cryptography

Mohammad Mahmoody

slide-2
SLIDE 2

Logistics

  • Most submitted PS3. If you have not you will get delay, but email it to

me ASAP.

  • Deadline for project reports/drafts + slides : This Thursday 5pm. There

will be a collab post for it.

  • I will announce the order of presentations. So your talk could be on

any of the remaining days.

  • You are all anticipated to participate in each others’ presentations.
slide-3
SLIDE 3

Last time

  • Zero Knowledge Proofs
  • Secure computation

Today

slide-4
SLIDE 4

Can we ever prove we know something without revealing the details of the secret?

  • Alice knows a magic word to open the door inside the cave:
slide-5
SLIDE 5

Formal Definition of Zero Knowledge Proofs

  • Suppose 𝑀 ∈ 𝐎𝐐 meaning, there is poly-time verifier 𝑊(⋅,⋅) such that 𝑦 ∈

𝑀 ⇔ ∃ 𝑥, 𝑊 𝑦, 𝑥 = 1

  • Examples:
  • An “interactive” protocol between a “prover” 𝑄 and a “verifier” 𝑊:

1. Is sound if: for all even malicious prover 𝑄∗ : Pr 𝑊 𝑦 = 1 ≤ negl(𝑜) 2. Is zero-knowledge if: for all even malicious verifier 𝑊∗ ∃ 𝑇 such that 𝑇 𝑦 ≈ view(𝑊) in interaction with 𝑄 on input 𝑦

slide-6
SLIDE 6
slide-7
SLIDE 7

Another way to see these two properties

  • Using a “trusted third party”.
  • Ideal World:
  • Real World:
slide-8
SLIDE 8

Secure Multiparty Computation

slide-9
SLIDE 9

Yao’s Billionaires Problem: Who has more money?

slide-10
SLIDE 10

In General

  • Parties 𝑄

1, … , 𝑄 𝑛 want to compute 𝑔(𝑦1, … , 𝑦𝑛) “securely” :

  • Party 𝑄𝑗 has input 𝑦𝑗 an would learn 𝑔(𝑦1, … , 𝑦𝑛)
  • Nobody should learn beyond what they would from the output.
  • Security Models:
  • 1. Semi-honest (aka honest-but-curious) : cheating party follows the

protocol, but at the end tries to extract information.

  • 2. Malicious: cheating party might deviate from protocol completely.
slide-11
SLIDE 11

How to define security in general?

  • Ideal Model:
  • Real Model:
slide-12
SLIDE 12

How about fully malicious attackers (who might change their inputs)?

  • Ideal model does not allow changing the inputs after they are ‘sent’
  • Ideal Model:
  • Real Model:
slide-13
SLIDE 13

Oblivious Transfer: a “complete” functionality

slide-14
SLIDE 14

Semi-Honest OT from Trapdoor Permutations

slide-15
SLIDE 15

Using OT to get 2 party secure computation

slide-16
SLIDE 16

Recall: Secure Function Evaluation

  • Protocol’s output: f(x,y) where function f is known to both parties.
slide-17
SLIDE 17

Yao’s Solution: Garbling of circuits: (Using OT and SKE as building Blocks)

1. Alice writes f as a circuit C 2. Convert C into a “garbled” version G where:

  • B “hides” the computation and only reveals the output.
  • Bob can plug in his input only with Alice’s help.

3. Alice sends G (and related keys) to Bob 4. Bob gets right keys for his own inputs using OT protocol. 5. Bob “executes” the circuit and sends the answer back.

AND OR AND NOT OR AND

Alice’s inputs Bob’s inputs

AND

x y z

k0z, k1z Alice Bob k0x, k1x k0y, k1y

slide-18
SLIDE 18

Garbling truth table of NAND gate

slide-19
SLIDE 19

Yao’s garbled circuit

  • The basic form is only semi-honest secure
  • Can be made maliciously secure:
  • inefficiently: using ZK proofs
  • Efficiently: using “cut and choose”