MICE SRI PERFORMANCE IS BAD INTEGRITY OVER ALL Recap Reference - - PowerPoint PPT Presentation

mice sri performance is bad
SMART_READER_LITE
LIVE PREVIEW

MICE SRI PERFORMANCE IS BAD INTEGRITY OVER ALL Recap Reference - - PowerPoint PPT Presentation

IETF 95 MICE SRI PERFORMANCE IS BAD INTEGRITY OVER ALL Recap Reference resource, include a hash of that resource <script src=https://other.origin.example/script.js integrity=sha384-dOTZf16X8p34q2/kYyEFm0jh8> Client


slide-1
SLIDE 1

MICE

IETF 95

slide-2
SLIDE 2

INTEGRITY OVER ALL

SRI PERFORMANCE IS BAD

Recap Reference resource, include a hash of that resource <script src=“https://other.origin.example/script.js”
 integrity=“sha384-dOTZf16X8p34q2/kYyEFm0jh8…”> Client checks hash and aborts if it doesn’t match Hash calculation requires the entire resource This blocks progressive loads Or forces nasty handling logic for errors (not always possible)

2

slide-3
SLIDE 3

MORE HASHING

SOLUTION

…and maybe a little hipster crypto Support both signing and hashing together Straight integrity: match hash to expected value Signing: sign over hash and check signature Flexible record sizing allows tuning of chunk sizes If rs>=Content-Length, the result is hash of body||0x1

3

slide-4
SLIDE 4

GENERATION IS RELATIVELY EXPENSIVE

PROGRESSIVE INTEGRITY

H H H H HEADER FIELD GENERATE BACKWARDS S

4

slide-5
SLIDE 5

FIRST CHUNK IS VALIDATED

PROGRESSIVE INTEGRITY

H HEADER FIELD V VALIDATE FORWARDS =

5

slide-6
SLIDE 6

RELEASE EACH CHUNK AS IT IS VALIDATED

PROGRESSIVE INTEGRITY

H H HEADER FIELD V VALIDATE FORWARDS = =

6

slide-7
SLIDE 7

SIGNATURE IS VALID ALL THE WAY

PROGRESSIVE INTEGRITY

H H H H HEADER FIELD V VALIDATE FORWARDS = = = =

7

slide-8
SLIDE 8

YEAH, I SEEM TO LIKE THOSE

CONTENT ENCODING

Allows for interstitial interleaving of integrity Solves questions about when the integrity applies Interaction with gzip, brötli, and other C-E resolved Can compress either before or after authentication

8

slide-9
SLIDE 9

OR IS TOO MUCH MERKLE BARELY ENOUGH?

IS A SIMPLER DESIGN BETTER?

H HEADER FIELD H H H

9