+ All Categories
Home > Documents > FSE 2018 Modes of operations for computing on encrypted data · 1 Dragos Rotaru, N.P. Smart, M....

FSE 2018 Modes of operations for computing on encrypted data · 1 Dragos Rotaru, N.P. Smart, M....

Date post: 13-Feb-2020
Category:
Upload: others
View: 8 times
Download: 0 times
Share this document with a friend
44
Dragos Rotaru, N.P. Smart, M. Stam imec-Cosic, Dept. Electrical Engineering 1 FSE 2018 Modes of operations for computing on encrypted data Dragos Rotaru, N.P. Smart, and Martijn Stam KU Leuven, University of Bristol
Transcript
Page 1: FSE 2018 Modes of operations for computing on encrypted data · 1 Dragos Rotaru, N.P. Smart, M. Stam imec-Cosic, Dept. Electrical Engineering FSE 2018 Modes of operations for computing

Dragos Rotaru, N.P. Smart, M. Stam imec-Cosic, Dept. Electrical Engineering1

FSE 2018

Modes of operations for computing on encrypted data

Dragos Rotaru, N.P. Smart, and Martijn Stam

KU Leuven, University of Bristol

Page 2: FSE 2018 Modes of operations for computing on encrypted data · 1 Dragos Rotaru, N.P. Smart, M. Stam imec-Cosic, Dept. Electrical Engineering FSE 2018 Modes of operations for computing

Dragos Rotaru, N.P. Smart, M. Stam imec-Cosic, Dept. Electrical Engineering2

Multiparty computation hijacks FSE’18

Dragos Rotaru 2

Goal: Compute F(a, b, c)

a c

b

Page 3: FSE 2018 Modes of operations for computing on encrypted data · 1 Dragos Rotaru, N.P. Smart, M. Stam imec-Cosic, Dept. Electrical Engineering FSE 2018 Modes of operations for computing

Dragos Rotaru, N.P. Smart, M. Stam imec-Cosic, Dept. Electrical Engineering3

What is the problem?

Page 4: FSE 2018 Modes of operations for computing on encrypted data · 1 Dragos Rotaru, N.P. Smart, M. Stam imec-Cosic, Dept. Electrical Engineering FSE 2018 Modes of operations for computing

Dragos Rotaru, N.P. Smart, M. Stam imec-Cosic, Dept. Electrical Engineering4

What is the problem?

42 42 42 42

Page 5: FSE 2018 Modes of operations for computing on encrypted data · 1 Dragos Rotaru, N.P. Smart, M. Stam imec-Cosic, Dept. Electrical Engineering FSE 2018 Modes of operations for computing

Dragos Rotaru, N.P. Smart, M. Stam imec-Cosic, Dept. Electrical Engineering5

What is the problem?

42 42 42 42

Enc Enc Enc

Page 6: FSE 2018 Modes of operations for computing on encrypted data · 1 Dragos Rotaru, N.P. Smart, M. Stam imec-Cosic, Dept. Electrical Engineering FSE 2018 Modes of operations for computing

Dragos Rotaru, N.P. Smart, M. Stam imec-Cosic, Dept. Electrical Engineering6

What is the problem?

42 42 42

Enc(42)

Page 7: FSE 2018 Modes of operations for computing on encrypted data · 1 Dragos Rotaru, N.P. Smart, M. Stam imec-Cosic, Dept. Electrical Engineering FSE 2018 Modes of operations for computing

Dragos Rotaru, N.P. Smart, M. Stam imec-Cosic, Dept. Electrical Engineering7

What is the problem?

42 42 42

Enc(42)

Page 8: FSE 2018 Modes of operations for computing on encrypted data · 1 Dragos Rotaru, N.P. Smart, M. Stam imec-Cosic, Dept. Electrical Engineering FSE 2018 Modes of operations for computing

Dragos Rotaru, N.P. Smart, M. Stam imec-Cosic, Dept. Electrical Engineering8

What is the problem?

42 42 42

Enc(42) Tag(E(42))

Page 9: FSE 2018 Modes of operations for computing on encrypted data · 1 Dragos Rotaru, N.P. Smart, M. Stam imec-Cosic, Dept. Electrical Engineering FSE 2018 Modes of operations for computing

Dragos Rotaru, N.P. Smart, M. Stam imec-Cosic, Dept. Electrical Engineering9

What is the problem?

Enc(42) Tag(E(42))

For free: detect malicious

encryption keys.

Page 10: FSE 2018 Modes of operations for computing on encrypted data · 1 Dragos Rotaru, N.P. Smart, M. Stam imec-Cosic, Dept. Electrical Engineering FSE 2018 Modes of operations for computing

Dragos Rotaru, N.P. Smart, M. Stam imec-Cosic, Dept. Electrical Engineering10

Prior work – PRFs in MPC (CCS’16)

Enc(42) Tag(Enc(42))

- MiMC

- Legendre PRF

Page 11: FSE 2018 Modes of operations for computing on encrypted data · 1 Dragos Rotaru, N.P. Smart, M. Stam imec-Cosic, Dept. Electrical Engineering FSE 2018 Modes of operations for computing

Dragos Rotaru, N.P. Smart, M. Stam imec-Cosic, Dept. Electrical Engineering11

Prior work – PRFs in MPC (CCS’16)

Enc(42) Tag(Enc(42))

M[1]

Enc

Page 12: FSE 2018 Modes of operations for computing on encrypted data · 1 Dragos Rotaru, N.P. Smart, M. Stam imec-Cosic, Dept. Electrical Engineering FSE 2018 Modes of operations for computing

Dragos Rotaru, N.P. Smart, M. Stam imec-Cosic, Dept. Electrical Engineering12

Prior work – PRFs in MPC (CCS’16)

Enc(42) Tag(Enc(42))

M[1] M[2]

Enc

+

Enc

Page 13: FSE 2018 Modes of operations for computing on encrypted data · 1 Dragos Rotaru, N.P. Smart, M. Stam imec-Cosic, Dept. Electrical Engineering FSE 2018 Modes of operations for computing

Dragos Rotaru, N.P. Smart, M. Stam imec-Cosic, Dept. Electrical Engineering13

Prior work – PRFs in MPC (CCS’16)

Enc(42) Tag(Enc(42))

M[1] M[2] M[3]

Enc

+ +

Enc Enc

Page 14: FSE 2018 Modes of operations for computing on encrypted data · 1 Dragos Rotaru, N.P. Smart, M. Stam imec-Cosic, Dept. Electrical Engineering FSE 2018 Modes of operations for computing

Dragos Rotaru, N.P. Smart, M. Stam imec-Cosic, Dept. Electrical Engineering14

Prior work – PRFs in MPC (CCS’16)

Enc(42) Tag(Enc(42))

M[1] M[2] M[3] M[4]

Enc

+ + +

Enc Enc EncTag

Page 15: FSE 2018 Modes of operations for computing on encrypted data · 1 Dragos Rotaru, N.P. Smart, M. Stam imec-Cosic, Dept. Electrical Engineering FSE 2018 Modes of operations for computing

Dragos Rotaru, N.P. Smart, M. Stam imec-Cosic, Dept. Electrical Engineering15

What we have done

• Analyze AE in Multiparty Computation (MPC).

• Useful MPC happens in Fp => Need AE and PRFs modp.

• Look for parallel AE: CTR+PMAC, OTR.

[42] Enc(42) Tag(42)

Page 16: FSE 2018 Modes of operations for computing on encrypted data · 1 Dragos Rotaru, N.P. Smart, M. Stam imec-Cosic, Dept. Electrical Engineering FSE 2018 Modes of operations for computing

Dragos Rotaru, N.P. Smart, M. Stam imec-Cosic, Dept. Electrical Engineering16

The story

This Photo by Unknown Author is licensed under CC BY-NC-ND

Page 17: FSE 2018 Modes of operations for computing on encrypted data · 1 Dragos Rotaru, N.P. Smart, M. Stam imec-Cosic, Dept. Electrical Engineering FSE 2018 Modes of operations for computing

Dragos Rotaru, N.P. Smart, M. Stam imec-Cosic, Dept. Electrical Engineering17

The story

‘You take the blue pill—the story ends, you wake up in your

bed and believe whatever you want to believe.

You take the red pill—you stay in Wonderland, and I show

you how deep the rabbit hole goes.’

Page 18: FSE 2018 Modes of operations for computing on encrypted data · 1 Dragos Rotaru, N.P. Smart, M. Stam imec-Cosic, Dept. Electrical Engineering FSE 2018 Modes of operations for computing

Dragos Rotaru, N.P. Smart, M. Stam imec-Cosic, Dept. Electrical Engineering18

The story

‘You take the blue pill—the story ends, you wake up in your

bed and believe whatever you want to believe.

You take the red pill—you stay in Wonderland, and I show

you how deep the rabbit hole goes.’

Page 19: FSE 2018 Modes of operations for computing on encrypted data · 1 Dragos Rotaru, N.P. Smart, M. Stam imec-Cosic, Dept. Electrical Engineering FSE 2018 Modes of operations for computing

Dragos Rotaru, N.P. Smart, M. Stam imec-Cosic, Dept. Electrical Engineering19

Down the rabbit hole - MPC with Secret Sharing

𝑥 = 𝑥1 +⋯+ 𝑥𝑛Each 𝑃𝑖 has 𝑥 ← 𝑥𝑖

𝑥 ← 𝑥1

𝑥 ← 𝑥2

𝑥 ← 𝑥3

Page 20: FSE 2018 Modes of operations for computing on encrypted data · 1 Dragos Rotaru, N.P. Smart, M. Stam imec-Cosic, Dept. Electrical Engineering FSE 2018 Modes of operations for computing

Dragos Rotaru, N.P. Smart, M. Stam imec-Cosic, Dept. Electrical Engineering20

MPC Preprocessing Phase

Generate triples

[c] = [a][b]

Page 21: FSE 2018 Modes of operations for computing on encrypted data · 1 Dragos Rotaru, N.P. Smart, M. Stam imec-Cosic, Dept. Electrical Engineering FSE 2018 Modes of operations for computing

Dragos Rotaru, N.P. Smart, M. Stam imec-Cosic, Dept. Electrical Engineering21

MPC Preprocessing Phase

Generate triples

[c] = [a][b]

Page 22: FSE 2018 Modes of operations for computing on encrypted data · 1 Dragos Rotaru, N.P. Smart, M. Stam imec-Cosic, Dept. Electrical Engineering FSE 2018 Modes of operations for computing

Dragos Rotaru, N.P. Smart, M. Stam imec-Cosic, Dept. Electrical Engineering22

MPC Preprocessing Phase

Page 23: FSE 2018 Modes of operations for computing on encrypted data · 1 Dragos Rotaru, N.P. Smart, M. Stam imec-Cosic, Dept. Electrical Engineering FSE 2018 Modes of operations for computing

Dragos Rotaru, N.P. Smart, M. Stam imec-Cosic, Dept. Electrical Engineering23

MPC Preprocessing Phase

Page 24: FSE 2018 Modes of operations for computing on encrypted data · 1 Dragos Rotaru, N.P. Smart, M. Stam imec-Cosic, Dept. Electrical Engineering FSE 2018 Modes of operations for computing

Dragos Rotaru, N.P. Smart, M. Stam imec-Cosic, Dept. Electrical Engineering24

MPC Online Phase

Use Triples.

Page 25: FSE 2018 Modes of operations for computing on encrypted data · 1 Dragos Rotaru, N.P. Smart, M. Stam imec-Cosic, Dept. Electrical Engineering FSE 2018 Modes of operations for computing

Dragos Rotaru, N.P. Smart, M. Stam imec-Cosic, Dept. Electrical Engineering25

MPC Online Phase

Use Triples.

Page 26: FSE 2018 Modes of operations for computing on encrypted data · 1 Dragos Rotaru, N.P. Smart, M. Stam imec-Cosic, Dept. Electrical Engineering FSE 2018 Modes of operations for computing

Dragos Rotaru, N.P. Smart, M. Stam imec-Cosic, Dept. Electrical Engineering26

MPC Circuit Evaluation

X Y Z

X

Y

Z

Page 27: FSE 2018 Modes of operations for computing on encrypted data · 1 Dragos Rotaru, N.P. Smart, M. Stam imec-Cosic, Dept. Electrical Engineering FSE 2018 Modes of operations for computing

Dragos Rotaru, N.P. Smart, M. Stam imec-Cosic, Dept. Electrical Engineering27

MPC Circuit Evaluation

X Y Z

Page 28: FSE 2018 Modes of operations for computing on encrypted data · 1 Dragos Rotaru, N.P. Smart, M. Stam imec-Cosic, Dept. Electrical Engineering FSE 2018 Modes of operations for computing

Dragos Rotaru, N.P. Smart, M. Stam imec-Cosic, Dept. Electrical Engineering28

MPC Circuit Evaluation

X Y Z

Page 29: FSE 2018 Modes of operations for computing on encrypted data · 1 Dragos Rotaru, N.P. Smart, M. Stam imec-Cosic, Dept. Electrical Engineering FSE 2018 Modes of operations for computing

Dragos Rotaru, N.P. Smart, M. Stam imec-Cosic, Dept. Electrical Engineering29

MPC Circuit Evaluation

X Y Z

Page 30: FSE 2018 Modes of operations for computing on encrypted data · 1 Dragos Rotaru, N.P. Smart, M. Stam imec-Cosic, Dept. Electrical Engineering FSE 2018 Modes of operations for computing

Dragos Rotaru, N.P. Smart, M. Stam imec-Cosic, Dept. Electrical Engineering30

MPC Circuit Evaluation

3 triples.

2 comm. rounds

X Y Z

Page 31: FSE 2018 Modes of operations for computing on encrypted data · 1 Dragos Rotaru, N.P. Smart, M. Stam imec-Cosic, Dept. Electrical Engineering FSE 2018 Modes of operations for computing

Dragos Rotaru, N.P. Smart, M. Stam imec-Cosic, Dept. Electrical Engineering31

Tweak your encryption to MPC

Reveal

Page 32: FSE 2018 Modes of operations for computing on encrypted data · 1 Dragos Rotaru, N.P. Smart, M. Stam imec-Cosic, Dept. Electrical Engineering FSE 2018 Modes of operations for computing

Dragos Rotaru, N.P. Smart, M. Stam imec-Cosic, Dept. Electrical Engineering32

Tweak your encryption to MPC

Page 33: FSE 2018 Modes of operations for computing on encrypted data · 1 Dragos Rotaru, N.P. Smart, M. Stam imec-Cosic, Dept. Electrical Engineering FSE 2018 Modes of operations for computing

Dragos Rotaru, N.P. Smart, M. Stam imec-Cosic, Dept. Electrical Engineering33

Tweak your encryption to MPC

Page 34: FSE 2018 Modes of operations for computing on encrypted data · 1 Dragos Rotaru, N.P. Smart, M. Stam imec-Cosic, Dept. Electrical Engineering FSE 2018 Modes of operations for computing

Dragos Rotaru, N.P. Smart, M. Stam imec-Cosic, Dept. Electrical Engineering34

How-to compute PMAC

Page 35: FSE 2018 Modes of operations for computing on encrypted data · 1 Dragos Rotaru, N.P. Smart, M. Stam imec-Cosic, Dept. Electrical Engineering FSE 2018 Modes of operations for computing

Dragos Rotaru, N.P. Smart, M. Stam imec-Cosic, Dept. Electrical Engineering35

Let’s do AE with CTR+pPMAC

Page 36: FSE 2018 Modes of operations for computing on encrypted data · 1 Dragos Rotaru, N.P. Smart, M. Stam imec-Cosic, Dept. Electrical Engineering FSE 2018 Modes of operations for computing

Dragos Rotaru, N.P. Smart, M. Stam imec-Cosic, Dept. Electrical Engineering36

Let’s do AE with CTR+pPMAC

Page 37: FSE 2018 Modes of operations for computing on encrypted data · 1 Dragos Rotaru, N.P. Smart, M. Stam imec-Cosic, Dept. Electrical Engineering FSE 2018 Modes of operations for computing

Dragos Rotaru, N.P. Smart, M. Stam imec-Cosic, Dept. Electrical Engineering37

When ideal meets real

Page 38: FSE 2018 Modes of operations for computing on encrypted data · 1 Dragos Rotaru, N.P. Smart, M. Stam imec-Cosic, Dept. Electrical Engineering FSE 2018 Modes of operations for computing

Dragos Rotaru, N.P. Smart, M. Stam imec-Cosic, Dept. Electrical Engineering38

When ideal meets real – surprise!

Page 39: FSE 2018 Modes of operations for computing on encrypted data · 1 Dragos Rotaru, N.P. Smart, M. Stam imec-Cosic, Dept. Electrical Engineering FSE 2018 Modes of operations for computing

Dragos Rotaru, N.P. Smart, M. Stam imec-Cosic, Dept. Electrical Engineering39

When ideal meets real – surprise!

Legendre

MiMC

Page 40: FSE 2018 Modes of operations for computing on encrypted data · 1 Dragos Rotaru, N.P. Smart, M. Stam imec-Cosic, Dept. Electrical Engineering FSE 2018 Modes of operations for computing

Dragos Rotaru, N.P. Smart, M. Stam imec-Cosic, Dept. Electrical Engineering40

Other competitive modes

Page 41: FSE 2018 Modes of operations for computing on encrypted data · 1 Dragos Rotaru, N.P. Smart, M. Stam imec-Cosic, Dept. Electrical Engineering FSE 2018 Modes of operations for computing

Dragos Rotaru, N.P. Smart, M. Stam imec-Cosic, Dept. Electrical Engineering41

Other competitive modes

Page 42: FSE 2018 Modes of operations for computing on encrypted data · 1 Dragos Rotaru, N.P. Smart, M. Stam imec-Cosic, Dept. Electrical Engineering FSE 2018 Modes of operations for computing

Dragos Rotaru, N.P. Smart, M. Stam imec-Cosic, Dept. Electrical Engineering42

• Preprocessing scales linearly in terms of number of

message blocks - roughly n PRFs for n messages.

• Number of rounds of a cipher vs. multiplicative depth in

MPC.

Some open problems

Page 43: FSE 2018 Modes of operations for computing on encrypted data · 1 Dragos Rotaru, N.P. Smart, M. Stam imec-Cosic, Dept. Electrical Engineering FSE 2018 Modes of operations for computing

Dragos Rotaru, N.P. Smart, M. Stam imec-Cosic, Dept. Electrical Engineering43

Thank you!

Page 44: FSE 2018 Modes of operations for computing on encrypted data · 1 Dragos Rotaru, N.P. Smart, M. Stam imec-Cosic, Dept. Electrical Engineering FSE 2018 Modes of operations for computing

Dragos Rotaru, N.P. Smart, M. Stam imec-Cosic, Dept. Electrical Engineering44

• Questions?

Thank you!


Recommended