{
  "id": "2018/813",
  "url": "https://opencryptology.org/2018/813",
  "original_url": "https://eprint.iacr.org/2018/813",
  "title": "Programming the Demirci-Sel{ç}uk Meet-in-the-Middle Attack with Constraints",
  "authors": [
    "Danping Shi",
    "Siwei Sun",
    "Patrick Derbez",
    "Yosuke Todo",
    "Bing Sun",
    "Lei Hu"
  ],
  "affiliations": null,
  "abstract": "Cryptanalysis with SAT/SMT, MILP and CP has increased in popularity among symmetric-key cryptanalysts and designers due to its high degree of automation. So far, this approach covers differential, linear, impossible differential, zero-correlation, and integral cryptanalysis. However, the Demirci-Selcuk meet-in-the-middle (DS-MITM) attack is one of the most sophisticated techniques that has not been automated with this approach. By an in-depth study of Derbez and Fouque's work on DS-MITM analysis with dedicated search algorithms, we identify the crux of the problem and present a method for automatic DS-MITM attack based on general constraint programming, which allows the cryptanalysts to state the problem at a high level without having to say how it should be solved. Our method is not only able to enumerate distinguishers but can also partly automate the key-recovery process. This approach makes the DS-MITM cryptanalysis more straightforward and easier to follow, since the resolution of the problem is delegated to off-the-shelf constraint solvers and therefore decoupled from its formulation. We apply the method to SKINNY, TWINE, and LBlock, and we get the currently known best DS-MITM attacks on these ciphers. Moreover, to demonstrate the usefulness of our tool for the block cipher designers, we exhaustively evaluate the security of 8!=40320 versions of LBlock instantiated with different words permutations in the F functions. It turns out that the permutation used in the original LBlock is one of the 64 permutations showing the strongest resistance against the DS-MITM attack. The whole process is accomplished on a PC in less than 2 hours. The same process is applied to TWINE, and similar results are obtained.",
  "category": null,
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“Programming the Demirci-Sel{ç}uk Meet-in-the-Middle Attack with Constraints” by Danping Shi, Siwei Sun, Patrick Derbez, Yosuke Todo, Bing Sun, Lei Hu, Cryptology ePrint Archive, Paper 2018/813, https://eprint.iacr.org/2018/813. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": true,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2018-09-06T19:25:46Z",
    "updated": "2018-09-11T07:42:49Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2018/813.pdf",
    "sha256": "60d56c22fc490667785af4ca043614d775efc4f2f25017ccb7c8dc483cfd5347",
    "size": 1009597,
    "source": "github-mirror",
    "source_date": "2019-02-25T18:03:07Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2018/813/versions/20190225T180307Z.pdf",
      "captured_at": "2019-02-25T18:03:07Z",
      "label": "copy captured 2019-02-25",
      "source": "github-mirror",
      "source_url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2018/813.pdf",
      "size": 1009597,
      "sha256": "60d56c22fc490667785af4ca043614d775efc4f2f25017ccb7c8dc483cfd5347",
      "is_default_pdf": true
    }
  ],
  "other_sources": [
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20250827125207id_/https://eprint.iacr.org/2018/813.pdf",
      "captured_at": "2025-08-27T12:52:07Z",
      "size": 875398
    },
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2018/813.pdf",
      "captured_at": "2019-02-25T18:03:07Z",
      "size": 1009597
    }
  ],
  "bibtex": "@misc{cryptoeprint:2018/813,\n      author = {Danping Shi and Siwei Sun and Patrick Derbez and Yosuke Todo and Bing Sun and Lei Hu},\n      title = {Programming the Demirci-Sel{ç}uk Meet-in-the-Middle Attack with Constraints},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2018/813},\n      year = {2018},\n      url = {https://eprint.iacr.org/2018/813}\n}"
}
