{
  "id": "2025/945",
  "url": "https://opencryptology.org/2025/945",
  "original_url": "https://eprint.iacr.org/2025/945",
  "title": "Quantum Security Analysis of the Key-Alternating Ciphers",
  "authors": [
    "Chen Bai",
    "Mehdi Esmaili",
    "Atul Mantri"
  ],
  "affiliations": null,
  "abstract": "In this work, we study the quantum security of key-alternating ciphers (KAC), a natural multi-round generalization of the Even–Mansour (EM) cipher underlying many block cipher constructions, including AES. While the classical security of KAC and the quantum security of the $1$-round KAC (i.e. Even-Mansour) cipher are well understood, the quantum resistance of multi-round KAC remains largely unexplored. We focus on the $2$-round KAC construction, defined using public $n$-bit permutations $P_1$, $P_2$ and keys $k_0$, $k_1$, and $k_2$ as $E(x) = P_2(P_1(x \\oplus k_0) \\oplus k_1) \\oplus k_2.$ Our main contributions are as follows: \n\n1. Quantum Lower Bounds. We provide the first formal analysis showing that a $2$-round KAC is quantum-secure in both the $Q1$ and $Q2$ models. Specifically, in the $Q1$ model, a (non-adaptive) adversary must make at least $2^{2n/5}$ quantum queries to the public permutations and at least $2^{2n/5}$ classical queries to the cipher in order to distinguish it from a random permutation (in contrast to the classical lower bound of $2^{2n/3}$ queries). As a corollary, we show that in the $Q2$ model, a (non-adaptive) adversary requires $2^{n/4}$ quantum queries. To achieve such a result, we employ the quantum hybrid method along with recently proposed lifting theorems in the ideal cipher and random permutation oracle model. \n\n2. Quantum Key-Recovery Attack. We give the first nontrivial quantum key-recovery attack on multi-round KAC in the $Q1$ model where the adversary has quantum access to all of the public permutations. Our quantum attack applies to any $t$-round KAC and achieves quantum query complexity $O(2^{\\alpha n})$, where $\\alpha = \\frac{t(t+1)}{(t+1)^2 + 1}$, improving over the best known classical bound of $O(2^{\\alpha' n})$, where $\\alpha' = \\frac{t}{t+1}$, from Bogdanov et al. (EUROCRYPT 2012). The attack leverages a novel application of quantum walk algorithms specifically adapted to the KAC structure.\n\n3. The $Q1^*$ Model. To bridge the classical and $Q1$ settings, we introduce the $Q1^*$, in which the adversary has quantum superposition access to at most one permutation. This model is crucial for our $Q1$ lower bound and supports similar key-recovery attacks to Q1, using fewer quantum resources. We believe $Q1^*$ is of independent interest.",
  "category": "Secret-key cryptography",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“Quantum Security Analysis of the Key-Alternating Ciphers” by Chen Bai, Mehdi Esmaili, Atul Mantri, Cryptology ePrint Archive, Paper 2025/945, https://eprint.iacr.org/2025/945. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": false,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2025-05-23T19:40:38Z",
    "updated": "2025-05-23T19:40:38Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2025/945.pdf",
    "sha256": "9ee97662040e22ed4698f9982e2b3be6390b1558a08f5a888c7861d8f4b911bd",
    "size": 615883,
    "source": "github-mirror",
    "source_date": "2026-04-28T17:20:00Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2025/945/versions/20260428T172000Z.pdf",
      "captured_at": "2026-04-28T17:20:00Z",
      "label": "copy captured 2026-04-28",
      "source": "github-mirror",
      "source_url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2025/945.pdf",
      "size": 615883,
      "sha256": "9ee97662040e22ed4698f9982e2b3be6390b1558a08f5a888c7861d8f4b911bd",
      "is_default_pdf": true
    }
  ],
  "other_sources": [
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2025/945.pdf",
      "captured_at": "2026-04-28T17:20:00Z",
      "size": 615883
    },
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20260419165907id_/https://eprint.iacr.org/2025/945.pdf",
      "captured_at": "2026-04-19T16:59:07Z",
      "size": 612173
    }
  ],
  "bibtex": "@misc{cryptoeprint:2025/945,\n      author = {Chen Bai and Mehdi Esmaili and Atul Mantri},\n      title = {Quantum Security Analysis of the Key-Alternating Ciphers},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2025/945},\n      year = {2025},\n      url = {https://eprint.iacr.org/2025/945}\n}"
}
