Cryptology ePrint Archive: Report 2017/1253

Micro-Architectural Power Simulator for Leakage Assessment of Cryptographic Software on ARM Cortex-M3 Processors

Yann Le Corre and Johann Großschädl and Daniel Dinu

Abstract: Masking is a common technique to protect software implementations of symmetric cryptographic algorithms against Differential Power Analysis (DPA) attacks. The development of a properly masked version of a block cipher is an incremental and time-consuming process since each iteration of the development cycle involves a costly leakage assessment. To achieve a high level of DPA resistance, the architecture-specific leakage properties of the target processor need to be taken into account. However, for most embedded processors, a detailed description of these leakage properties is lacking and often not even the HDL model of the micro-architecture is openly available. Recent research has shown that power simulators for leakage assessment can significantly speed up the development process. Unfortunately, few such simulators exist and even fewer take target-specific leakages into account. To fill this gap, we present MAPS, a micro-architectural power simulator for the M3 series of ARM Cortex processors, one of today's most widely-used embedded platforms. MAPS is fast, easy to use, and able to model the Cortex-M3 pipeline leakages, in particular the leakage introduced by the pipeline registers. The M3 leakage properties are inferred from its HDL source code, and therefore MAPS does not need a complicated and expensive profiling phase. Taking first-order masked Assembler implementations of the lightweight cipher Simon as example, we study how the pipeline leakages manifest and discuss some guidelines on how to avoid them.

Category / Keywords: implementation / side-channel attacks

Original Publication (in the same form): Proceedings of COSADE 2018

Date: received 28 Dec 2017, last revised 23 Apr 2018

Contact author: johann groszschaedl at uni lu

Available format(s): PDF | BibTeX Citation

Note: The full source code of MAPS is available on Github under the GNU General Public License version 3 (GPLv3):

Version: 20180423:121604 (All versions of this report)

Short URL:

[ Cryptology ePrint archive ]