Efficient MILP Modelings for Sboxes and Linear Layers of SPN ciphers

Mixed Integer Linear Programming (MILP) solvers are regularly used by designers for providing security arguments and by cryptanalysts for searching for new distinguishers. For both applications, bitwise models are more refined and permit to analyze properties of primitives more accurately than word...

Full description

Bibliographic Details
Main Authors: Christina Boura, Daniel Coggia
Format: Article
Language:English
Published: Ruhr-Universität Bochum 2020-09-01
Series:IACR Transactions on Symmetric Cryptology
Subjects:
Online Access:https://tosc.iacr.org/index.php/ToSC/article/view/8705
id doaj-bbe08365d69241159a6b463318fb7035
record_format Article
spelling doaj-bbe08365d69241159a6b463318fb70352021-04-02T16:59:52ZengRuhr-Universität BochumIACR Transactions on Symmetric Cryptology2519-173X2020-09-012020310.13154/tosc.v2020.i3.327-361Efficient MILP Modelings for Sboxes and Linear Layers of SPN ciphersChristina Boura0Daniel Coggia1Inria, Paris, France; University of Versailles Saint-Quentin-en-Yvelines (UVSQ), Versailles, FranceInria, Paris, France; Direction Générale de l’Armement, Paris, France Mixed Integer Linear Programming (MILP) solvers are regularly used by designers for providing security arguments and by cryptanalysts for searching for new distinguishers. For both applications, bitwise models are more refined and permit to analyze properties of primitives more accurately than word-oriented models. Yet, they are much heavier than these last ones. In this work, we first propose many new algorithms for efficiently modeling any subset of Fn2 with MILP inequalities. This permits, among others, to model differential or linear propagation through Sboxes. We manage notably to represent the differential behaviour of the AES Sbox with three times less inequalities than before. Then, we present two new algorithms inspired from coding theory to model complex linear layers without dummy variables. This permits us to represent many diffusion matrices, notably the ones of Skinny-128 and AES in a much more compact way. To demonstrate the impact of our new models on the solving time we ran experiments for both Skinny-128 and AES. Finally, our new models allowed us to computationally prove that there are no impossible differentials for 5-round AES and 13-round Skinny-128 with exactly one input and one output active byte, even if the details of both the Sbox and the linear layer are taken into account. https://tosc.iacr.org/index.php/ToSC/article/view/8705MILPSboxLinear LayerImpossible Differential
collection DOAJ
language English
format Article
sources DOAJ
author Christina Boura
Daniel Coggia
spellingShingle Christina Boura
Daniel Coggia
Efficient MILP Modelings for Sboxes and Linear Layers of SPN ciphers
IACR Transactions on Symmetric Cryptology
MILP
Sbox
Linear Layer
Impossible Differential
author_facet Christina Boura
Daniel Coggia
author_sort Christina Boura
title Efficient MILP Modelings for Sboxes and Linear Layers of SPN ciphers
title_short Efficient MILP Modelings for Sboxes and Linear Layers of SPN ciphers
title_full Efficient MILP Modelings for Sboxes and Linear Layers of SPN ciphers
title_fullStr Efficient MILP Modelings for Sboxes and Linear Layers of SPN ciphers
title_full_unstemmed Efficient MILP Modelings for Sboxes and Linear Layers of SPN ciphers
title_sort efficient milp modelings for sboxes and linear layers of spn ciphers
publisher Ruhr-Universität Bochum
series IACR Transactions on Symmetric Cryptology
issn 2519-173X
publishDate 2020-09-01
description Mixed Integer Linear Programming (MILP) solvers are regularly used by designers for providing security arguments and by cryptanalysts for searching for new distinguishers. For both applications, bitwise models are more refined and permit to analyze properties of primitives more accurately than word-oriented models. Yet, they are much heavier than these last ones. In this work, we first propose many new algorithms for efficiently modeling any subset of Fn2 with MILP inequalities. This permits, among others, to model differential or linear propagation through Sboxes. We manage notably to represent the differential behaviour of the AES Sbox with three times less inequalities than before. Then, we present two new algorithms inspired from coding theory to model complex linear layers without dummy variables. This permits us to represent many diffusion matrices, notably the ones of Skinny-128 and AES in a much more compact way. To demonstrate the impact of our new models on the solving time we ran experiments for both Skinny-128 and AES. Finally, our new models allowed us to computationally prove that there are no impossible differentials for 5-round AES and 13-round Skinny-128 with exactly one input and one output active byte, even if the details of both the Sbox and the linear layer are taken into account.
topic MILP
Sbox
Linear Layer
Impossible Differential
url https://tosc.iacr.org/index.php/ToSC/article/view/8705
work_keys_str_mv AT christinaboura efficientmilpmodelingsforsboxesandlinearlayersofspnciphers
AT danielcoggia efficientmilpmodelingsforsboxesandlinearlayersofspnciphers
_version_ 1721554826365501440