Barthe, GillesGillesBartheGourjon, Marc OlivierMarc OlivierGourjonGrégoire, BenjaminBenjaminGrégoireOrlt, MaximilianMaximilianOrltPaglialonga, ClaraClaraPaglialongaPorth, LarsLarsPorth2021-11-232021-11-232021-02-23IACR Transactions on Cryptographic Hardware and Embedded Systems (2): 189-228 (2021)http://hdl.handle.net/11420/10992We propose a new approach for building efficient, provably secure, and practically hardened implementations of masked algorithms. Our approach is based on a Domain Specific Language in which users can write efficient assembly implementations and fine-grained leakage models. The latter are then used as a basis for formal verification, allowing for the first time formal guarantees for a broad range of device-specific leakage effects not addressed by prior work. The practical benefits of our approach are demonstrated through a case study of the PRESENT S-Box: we develop a highly optimized and provably secure masked implementation, and show through practical evaluation based on TVLA that our implementation is practically resilient. Our approach significantly narrows the gap between formal verification of masking and practical security.en2569-2925IACR transactions on cryptographic hardware and embedded systems20212189228Ruhr-Universität Bochumhttps://creativecommons.org/licenses/by/4.0/Domain specific languageHigher-order maskingProbing securitySide-channel resilienceVerificationInformatikPhysikTechnikMasking in fine-grained leakage models: construction, implementation and verificationJournal Article10.15480/882.391710.46586/tches.v2021.i2.189-22810.15480/882.3917Other