Cryptology ePrint Archive: Report 2017/1233

Provably secure compilation of side-channel countermeasures

Gilles Barthe and Benjamin Grégoire and Vincent Laporte

Abstract: Software-based countermeasures provide effective mitigation against side-channel attacks, often with minimal efficiency and deployment overheads. Their effectiveness is often amenable to rigorous analysis: specifically, several popular countermeasures can be formalized as information flow policies, and correct implementation of the countermeasures can be verified with state-of-the-art analysis and verification techniques. However, in absence of further justification, the guarantees only hold for the language (source, target, or intermediate representation) on which the analysis is performed.

We consider the problem of preserving side-channel countermeasures by compilation, and present a general method for proving that compilation preserves software-based side-channel countermeasures. The crux of our method is the notion of 2-simulation, which adapts to our setting the notion of simulation from compiler verification. Using the Coq proof assistant, we verify the correctness of our method and of several representative instantiations.

Category / Keywords: implementation / constant-time, secure compilation

Date: received 22 Dec 2017

Contact author: vlaporte at imdea org

Available format(s): PDF | BibTeX Citation

Version: 20171222:210334 (All versions of this report)

Short URL:

Discussion forum: Show discussion | Start new discussion

[ Cryptology ePrint archive ]