• No results found

Reconsidering Generic Composition

N/A
N/A
Protected

Academic year: 2021

Share "Reconsidering Generic Composition"

Copied!
25
0
0

Loading.... (view fulltext now)

Full text

(1)

Phillip Rogaway

University of California, Davis, USA

Tom Shrimpton

Portland State University, USA

Chanathip Namprempre

Thammasat University, Thailand

(2)

What is the correct way to build

an authenticated encryption scheme

from an encryption scheme and a MAC?

(3)

[Bellare-Namprempre – ASIACRYPT 2000]

Authenticated Encryption: Relations among Notions and Analysis of the Generic Composition Paradigm

What is the correct way to build

an authenticated encryption scheme

from an encryption scheme and a MAC?

Encrypt-and-MAC Encrypt-then-MAC MAC-then-Encrypt

always works if

encryption IND-CPA secure and MAC unforgeable

(4)

[Bellare-Namprempre – ASIACRYPT 2000]

Authenticated Encryption: Relations among Notions and Analysis of the Generic Composition Paradigm

What is the correct way to build

an authenticated encryption scheme

from an encryption scheme and a MAC?

Encrypt-and-MAC Encrypt-then-MAC MAC-then-Encrypt

always works if

encryption IND-CPA secure and MAC unforgeable

This summary of [BN]

(5)

IV M C T CtrModeK1 FK2 IV

Encrypt-then-MAC

initialization vector plaintext ciphertext tag IND-CPA secure encryption scheme secure MAC (e.g. PRF)

(6)

M

C T

FK2

IV

Encrypt-then-MAC

if FK2(C) = T then return DecK1(IV,C) else

return “invalid”

CtrModeK1

(7)

M’

C T

FK2

IV’

Encrypt-then-MAC

CtrModeK1

But… [BN] says… ???

if FK2(C) = T then return DecK1(IV,C) else

(8)

“Encrypt-then-MAC” vs. Encrypt-then-MAC

IV M C T EncK1 FK2 IV IV M C T EncK1 FK2

IV-based AE scheme built from an IV-based encryption scheme and a MAC

Probabilistic AE scheme built from a probabilistic encryption scheme and a MAC

Different starting primitives, different final primitives, different security

[BN] is about

this setting only.

(9)

ISO/IEC 19772, Mechanism 5 (Encrypt-then-MAC)

Information Security – Security Techniques – Authenticated Encryption

Appeals to [BN] to justify security of a

nonce-based

scheme

built from

IV-based encryption.

EncK1 D S S C’

F

K2 T C

S required to be a nonce (but not random) “Enc” = CBC, CTR, OFB, CFB blockcipher modes

-- not all have {0,1}* domains

-- some require S to be random for IND-CPA S not covered by tag

(10)

1. Typical goal nowadays is nonce-based AE with associated data (NAE),

not probabilistic AE

N= nonce (“number used once”, e.g. sequence number) A = associated data, bound to plaintext/ciphertext, not private

M = plaintext, private

“Okay, fine:

EtM

+

secure prob. Enc +

secure MAC =

secure prob. AE”

The thing is…

int encrypt(unsigned char *plaintext, int plaintext_len,

unsigned char *key,

unsigned char *iv,

unsigned char *ciphertext)

2. Standards and common crypto libraries don’t provide probabilistic encryption

schemes, they provide IV-based encryption

openSSL

encryption API

NAE

(IV =) N A M

(deterministic)

C

(11)

What are the correct ways to compose

a

secure IV-based encryption

scheme

and a

secure PRF

in order to build

a

nonce-based AE(AD) scheme

?

(12)

Ftag L Fiv L EncK IV M C

N A M

T C’ Ftag L Fiv L EncK IV M C

N A M

T Fiv inputs:

= “missing”

Our basic NAE forms

(N or , A or , M or ) Ftag inputs: (N or , A or , M or )

Fiv inputs: (N or , A or , M or ) Ftag inputs: (N or , A or , M or )

(N or , A or , C or )

or

“E&M” “EtM”

(13)

160 possible constructions analyzed, resulting in:

8

“favored” schemes --- generically secure, good security bounds

1

“transitional” scheme --- generically secure, inferior bound

3

“elusive” schemes --- despite LOADS of effort, unable to find proofs

using only IND$-CPA and PRF security of components, unable to find counterexamples

All other schemes --- we find counterexamples (many trivial, some not)

we target an “all-in-one” AE notion [RS06], equivalent to IND$-CPA + INT-CTXT

(14)

The favored eight

SIV mode [RS06]

“E and M” “E and M” “E and M”

“E then M” “E then M” “M then E” “M then E”

(15)

The favored eight all have the same (good, tight) AE security.

Which should I use?

(16)

Encryption can compute C,T in parallel

Can truncate the tag

by truncating AE scheme output

(17)

IV must be recoverable

from C,T

Encryption can compute C,T in parallel

Can truncate the tag

(18)

IV must be recoverable

from C,T

Nonce-misuse resistan Cannot truncate

Encryption can compute C,T in parallel

Can truncate the tag

by truncating AE scheme output

(19)

IV must be recoverable

from C,T

Nonce-misuse resistan Cannot truncate

Decryption can compute M, check T in parallel Can truncate

Encryption can compute C,T in parallel

Can truncate the tag

(20)

IV must be recoverable

from C,T

Nonce-misuse resistan Cannot truncate

Decryption can compute M, check T in parallel Can truncate

Cannot truncate

“MtE” style schemes have history of problems in practice

Encryption can compute C,T in parallel

Can truncate the tag

by truncating AE scheme output

(21)

F L

What are these “vector input” PRFs?

Real PRFs (e.g. HMAC-SHA) take a string!

Can be instantiated in many ways. We use the

three-xor

construction

.

F

L1,L2,L3

(N,A,M) = f

L1

(N) f

L2

(A) f

L3

(M)

F

L1,L2,L3

(N, ,M) = f

L1

(N) 0

n

f

L3

(M)

F

L1,L2,L3

( , ,M) = 0

n

0

n

f

L3

(M)

(22)

The favored eight, based on a string-input PRF

(using the three-XOR construction)

EAX2

[Bellare, R, Wagner’04]

(23)

Also in the paper

E&M, EtM, MtE taxonomy / security characterization is specific

to building probabilistic AE from probabilistic encryption

Building NAE from tidy nonce-based encryption and a PRF:

Three secure options, one elusive.

Proofs of security for elusive schemes under new “knowledge of tags” assumption

High-level Summary

GC story is much more nuanced when building nonce-based AE

[BN] is fine, but people’s “understanding” of it over-generalizes,

leading to problems in practice

An ISO standard that uses [BN] to justify an NAE design = Broken

(24)

Thank you!

SIV mode [RS06]

“E and M” “E and M” “E and M”

“E then M” “E then M” “M then E” “M then E”

(25)

References

Related documents

novel adaptively parallel attack, ROS-problem, generic model and one-more forgery.. should

The Effects of Tracheal Occlusion on Wnt Signaling in a Rabbit The Effects of Tracheal Occlusion on Wnt Signaling in a Rabbit Model of Congenital Diaphragmatic Hernia.. Model

Keywords — Principal component analysis (PCA), Dynamic Data Mining, Data Stream Mining, radial-basis neural networks (RBFN), kernel evolving neural network, dynamic data mining

Renal tubular epithelial cell injury and oxidative stress induce calcium oxalate crystal formation in mouse kidney. International journal of

competition within the relevant product and geographic markets, and is usually determined by examining the extent of the alleged monopolist’s market share.”). There are

Current and future computerized systems and in- frastructures are going to be based on the layering of dif- ferent systems, designed at different times, with different

Filling possible specular highlights with a represen- tative colour of their surrounding e ff ectively prevents the filtered image to appear too bright in regions where

The present case report demonstrates the usefulness of titanium miniplates for orthodontic anchorage to intrude the upper molars and concurrent use of