Cryptology ePrint Archive: Report 2015/060

Verified Proofs of Higher-Order Masking

Gilles Barthe and Sonia Belaïd and François Dupressoir and Pierre-Alain Fouque and Benjamin Grégoire and Pierre-Yves Strub

Abstract: In this paper, we study the problem of automatically verifying higher-order masking countermeasures. This problem is important in practice (weaknesses have been discovered in schemes that were thought secure), but is inherently exponential: for $t$-order masking, it involves proving that every subset of $t$ intermediate variables is distributed independently of the secrets. Some type systems have been proposed to help cryptographers check their proofs, but many of these approaches are insufficient for higher-order implementations. We propose a new method, based on program verification techniques, to check the independence of sets of intermediate variables from some secrets. Our new language-based characterization of the problem also allows us to design and implement several algorithms that greatly reduce the number of sets of variables that need to be considered to prove this independence property on \emph{all} valid adversary observations. The result of these algorithms is either a proof of security or a set of observations on which the independence property cannot be proved. We focus on AES implementations to check the validity of our algorithms. We also confirm the tool's ability to give useful information when proofs fail, by rediscovering existing attacks and discovering new ones.

Category / Keywords: secret-key cryptography / Masking, Automatic tools, EasyCrypt, Higher-Order Masking

Original Publication (with minor differences): IACR-EUROCRYPT-2015

Date: received 26 Jan 2015, last revised 6 Feb 2015

Contact author: sonia belaid at live fr

Available format(s): PDF | BibTeX Citation

Note: IACR copyright agreement

Version: 20150206:134157 (All versions of this report)

Short URL: ia.cr/2015/060

Discussion forum: Show discussion | Start new discussion


[ Cryptology ePrint archive ]