SLIDE 28 A new API Type-based analysis
Type-based analysis
A linear type-and-effect system with judgement ⊢ Γ c Γ′
1 we model production and consumption of resources via special
annotations produce(R), consume(R)
2 critical operations always performed after the MAC check
Γ(pi) = Mac[i0, . . . , im] Γ(pi0), . . . , Γ(pim) = • ⊢ Γ{pi0 : Γ(i0), . . . , pim : Γ(im)} c1 Γ′ ⊢ Γ c2 Γ′ ⊢ Γ if MACK(pi1, . . . , pim) = pi then c1 else c2 Γ′
3 production and consumption controlled via linear effects; OTP
incremented and written back to the card before consumption
FAST 2011 () Secure recharge of disposable RFID tickets September 2011, Leuven 13 / 17