Paper 2020/506

Tornado: Automatic Generation of Probing-Secure Masked Bitsliced Implementations

Sonia Belaïd, Pierre-Evariste Dagand, Darius Mercadier, Matthieu Rivain, and Raphaël Wintersdorff


Cryptographic implementations deployed in real world devices often aim at (provable) security against the powerful class of side-channel attacks while keeping reasonable performances. Last year at Asiacrypt, a new formal verification tool named tightPROVE was put forward to exactly determine whether a masked implementation is secure in the well-deployed probing security model for any given security order t. Also recently, a compiler named Usuba was proposed to automatically generate bitsliced implementations of cryptographic primitives. This paper goes one step further in the security and performances achievements with a new automatic tool named Tornado. In a nutshell, from the high-level description of a cryptographic primitive, Tornado produces a functionally equivalent bitsliced masked implementation at any desired order proven secure in the probing model, but additionally in the so-called register probing model which much better fits the reality of software implementations. This framework is obtained by the integration of Usuba with tightPROVE+, which extends tightPROVE with the ability to verify the security of implementations in the register probing model and to fix them with inserting refresh gadgets at carefully chosen locations accordingly. We demonstrate Tornado on the lightweight cryptographic primitives selected to the second round of the NIST competition and which somehow claimed to be masking friendly. It advantageously displays performances of the resulting masked implementations for several masking orders and proves their security in the register probing model.

Available format(s)
Publication info
A minor revision of an IACR publication in EUROCRYPT 2020
CompilerMaskingAutomated verificationBitslice
Contact author(s)
sonia belaid @ cryptoexperts com
pierre-evariste dagand @ lip6 fr
darius mercadier @ lip6 fr
matthieu rivain @ cryptoexperts com
raphaelwin @ hotmail com
2020-05-05: received
Short URL
Creative Commons Attribution


      author = {Sonia Belaïd and Pierre-Evariste Dagand and Darius Mercadier and Matthieu Rivain and Raphaël Wintersdorff},
      title = {Tornado: Automatic Generation of Probing-Secure Masked Bitsliced Implementations},
      howpublished = {Cryptology ePrint Archive, Paper 2020/506},
      year = {2020},
      note = {\url{}},
      url = {}
Note: In order to protect the privacy of readers, does not use cookies or embedded third party content.