Odds and ends Determinis0c Encryp0on Construc0ons: - - PowerPoint PPT Presentation

odds and ends determinis0c encryp0on construc0ons siv and
SMART_READER_LITE
LIVE PREVIEW

Odds and ends Determinis0c Encryp0on Construc0ons: - - PowerPoint PPT Presentation

Online Cryptography Course


slide-1
SLIDE 1

Dan ¡Boneh ¡

Odds ¡and ¡ends ¡ Determinis0c ¡Encryp0on ¡ Construc0ons: ¡ ¡ ¡ SIV ¡and ¡wide ¡PRP ¡

Online ¡Cryptography ¡Course ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡Dan ¡Boneh ¡

slide-2
SLIDE 2

Dan ¡Boneh ¡

Determinis0c ¡encryp0on ¡

Needed ¡for ¡maintaining ¡an ¡encrypted ¡database ¡index ¡

  • Lookup ¡records ¡by ¡encrypted ¡index ¡

Determinis0c ¡CPA ¡security: ¡

  • Security ¡if ¡never ¡encrypt ¡same ¡message ¡twice ¡using ¡same ¡key: ¡

¡ ¡the ¡pair ¡ ¡ ¡(key ¡, ¡msg) ¡ ¡ ¡is ¡unique ¡ ¡ Formally: ¡ ¡ ¡we ¡defined ¡determinis0c ¡CPA ¡security ¡game ¡ ¡

slide-3
SLIDE 3

Dan ¡Boneh ¡

Construc0on ¡1: ¡ ¡Synthe0c ¡IV ¡ ¡ ¡(SIV) ¡

Let ¡ ¡(E, ¡D) ¡be ¡a ¡CPA-­‑secure ¡encryp0on. ¡ ¡ ¡ ¡ ¡ ¡ ¡E(k, ¡m ¡ ¡; ¡ ¡r) ¡⟶ ¡c ¡ Let ¡ ¡ ¡F:K ¡× ¡M ¡⟶ ¡R ¡ ¡ ¡be ¡a ¡secure ¡PRF ¡ Define: ¡ ¡ ¡ ¡ ¡Edet( ¡(k1,k2) ¡, ¡m) ¡= ¡ Thm: ¡ ¡ ¡ ¡Edet ¡is ¡sem. ¡sec. ¡under ¡det. ¡CPA ¡. ¡ Proof ¡sketch: ¡ ¡ ¡ ¡ ¡dis0nct ¡msgs. ¡ ¡ ¡⇒ ¡ ¡ ¡ ¡all ¡r’s ¡are ¡indist. ¡from ¡random ¡

¡

Well ¡suited ¡for ¡messages ¡longer ¡than ¡one ¡AES ¡block ¡ ¡(16 ¡bytes) ¡ ¡ ¡ ¡ ¡

slide-4
SLIDE 4

Dan ¡Boneh ¡

Ensuring ¡ciphertext ¡integrity ¡

Goal: ¡ ¡ ¡det. ¡CPA ¡security ¡ ¡and ¡ ¡ciphertext ¡integrity ¡ ¡ ¡⇒ ¡ ¡ ¡DAE: ¡ ¡determinis=c ¡authen=cated ¡encryp=on ¡ Consider ¡a ¡SIV ¡special ¡case: ¡ ¡ ¡ ¡SIV-­‑CTR ¡ ¡ ¡ ¡ ¡SIV ¡where ¡cipher ¡is ¡counter ¡mode ¡with ¡rand. ¡IV ¡

message ¡ PRF ¡ ¡F ¡

k1 ¡

CTR ¡mode ¡with ¡PRF ¡ ¡Fctr ¡

Fctr(k2, ¡IV) ¡ ¡ ¡ll ¡ ¡Fctr(k2, ¡IV+1) ¡ll ¡… ¡ll ¡Fctr(k2, ¡IV+L) ¡ IV ¡

k2 ¡

ciphertext ¡

slide-5
SLIDE 5

Dan ¡Boneh ¡

  • Det. ¡Auth. ¡Enc. ¡(DAE) ¡for ¡free ¡

Decryp=on: ¡ ¡ ¡ ¡ ¡ ¡ ¡ Thm: ¡ ¡ ¡ ¡if ¡F ¡is ¡a ¡secure ¡PRF ¡ ¡and ¡ ¡CTR ¡from ¡Fctr ¡is ¡CPA-­‑secure ¡ ¡ ¡then ¡SIV-­‑CTR ¡from ¡F, ¡Fctr ¡provides ¡DAE ¡

message ¡

CTR ¡mode ¡with ¡PRF ¡ ¡Fctr ¡

Fctr(k2,IV) ¡ ¡ ¡ll ¡ ¡Fctr(k2, ¡IV+1) ¡ll ¡… ¡ll ¡Fctr(k2,IV+L) ¡ IV ¡

k2 ¡

ciphertext ¡ PRF ¡ ¡F ¡

k1 ¡ if ¡ ¡≠IV ¡output ¡⊥ ¡

slide-6
SLIDE 6

Dan ¡Boneh ¡

Construc0on ¡2: ¡ ¡ ¡ ¡just ¡use ¡a ¡PRP ¡

Let ¡ ¡(E, ¡D) ¡be ¡a ¡secure ¡PRP. ¡ ¡ ¡ ¡ ¡ ¡E: ¡K ¡× ¡X ¡⟶ ¡X ¡ Thm: ¡ ¡ ¡ ¡(E,D) ¡is ¡sem. ¡sec. ¡under ¡det. ¡CPA ¡. ¡ Proof ¡sketch: ¡ ¡ ¡ ¡let ¡ ¡ ¡f: ¡X ¡⟶ ¡X ¡ ¡ ¡be ¡a ¡truly ¡random ¡inver0ble ¡func. ¡ ¡in ¡ ¡EXP(0) ¡ ¡adv. ¡sees: ¡ ¡ ¡ ¡f(m1,0), ¡…, ¡f(mq,0) ¡ ¡in ¡ ¡EXP(1) ¡ ¡adv. ¡sees: ¡ ¡ ¡ ¡f(m1,1), ¡…, ¡f(mq,1) ¡ ¡ Using ¡AES: ¡ ¡ ¡ ¡Det. ¡CPA ¡secure ¡encryp0on ¡for ¡16 ¡byte ¡messages. ¡ ¡ ¡Longer ¡messages?? ¡ ¡ ¡ ¡Need ¡PRPs ¡on ¡larger ¡msg ¡spaces ¡… ¡

¡ ¡q ¡random ¡values ¡in ¡X ¡

slide-7
SLIDE 7

Dan ¡Boneh ¡

EME: ¡ ¡ ¡construc0ng ¡a ¡wide ¡block ¡PRP ¡

Let ¡ ¡(E, ¡D) ¡be ¡a ¡secure ¡PRP. ¡ ¡ ¡ ¡ ¡ ¡E: ¡K ¡× ¡{0,1}n ¡⟶ ¡{0,1}n ¡ EME: ¡ ¡ ¡a ¡PRP ¡on ¡ ¡ ¡{0,1}N ¡ ¡ ¡for ¡ ¡ ¡ ¡N ¡⨠ ¡n ¡ ¡ Performance: ¡

  • can ¡be ¡2x ¡slower ¡then ¡SIV ¡

x[0] ¡ x[1] ¡ x[2] ¡ y[0] ¡ y[1] ¡ y[2] ¡

E ¡ E ¡ E ¡ E ¡ E ¡ E ¡ E ¡

⨁ ¡ ⨁ ¡ ⨁ ¡ ⨁ ¡ ⨁ ¡ ⨁ ¡ ⨁ ¡ ⨁ ¡ ⨁ ¡

slide-8
SLIDE 8

Dan ¡Boneh ¡

PRP-­‑based ¡Det. ¡Authen0cated ¡Enc. ¡

Goal: ¡ ¡ ¡det. ¡CPA ¡security ¡ ¡and ¡ ¡ciphertext ¡integrity ¡ ¡ ¡⇒ ¡ ¡ ¡DAE: ¡ ¡determinis=c ¡authen=cated ¡encryp=on ¡ Encryp=on: ¡ ¡ ¡Decryp=on: ¡ ¡

message ¡ 00000 ¡ 80 ¡

E(k, ¡⋅) ¡

ciphertext ¡ message ¡ ……… ¡

D(k, ¡⋅) ¡

ciphertext ¡ if ¡≠080 ¡output ¡⊥ ¡

slide-9
SLIDE 9

Dan ¡Boneh ¡

PRP-­‑based ¡Det. ¡Authen0cated ¡Enc. ¡

Let ¡ ¡(E, ¡D) ¡be ¡a ¡secure ¡PRP. ¡ ¡ ¡ ¡ ¡ ¡E: ¡K ¡× ¡(X×{0,1}n) ¡⟶ ¡X×{0,1}n ¡ Thm: ¡ ¡ ¡ ¡1/2n ¡is ¡negligible ¡ ¡ ¡⇒ ¡ ¡ ¡PRP-­‑based ¡enc. ¡provides ¡DAE ¡ Proof ¡sketch: ¡ ¡ ¡ ¡suffices ¡to ¡prove ¡ciphertext ¡integrity ¡ ¡

  • Adv. ¡
  • Chal. ¡

π⟵Perms[X×{0,1}n] ¡

x1, ¡ ¡ ¡ ¡… ¡, ¡ ¡xq ¡ ¡ ¡∈ ¡X ¡ π ¡(x1 ¡0n), ¡…, ¡π(xq ¡0n) ¡ ¡

c ¡∉ ¡{ ¡π ¡(x1 ¡0n), ¡…, ¡π(xq ¡0n) ¡} ¡

But ¡then ¡ ¡ ¡ ¡Pr[ ¡LSBn( ¡π-­‑1(c) ¡) ¡= ¡0n ¡] ¡≤ ¡1/2n ¡

slide-10
SLIDE 10

Dan ¡Boneh ¡

End ¡of ¡Segment ¡