{
  "id": "2025/1017",
  "url": "https://opencryptology.org/2025/1017",
  "original_url": "https://eprint.iacr.org/2025/1017",
  "title": "Using the Schur Product to Solve the Code Equivalence Problem",
  "authors": [
    "Michele Battagliola",
    "Rocco Mora",
    "Paolo Santini"
  ],
  "affiliations": null,
  "abstract": "Given two linear codes, the Code Equivalence Problem asks to find (if it exists) an isometry mapping one code into the other. A special case is the Permutation Equivalence Problem (PEP), where the isometry must be a permutation.\nThe hardness of PEP is crucially dependent on the hull of a code, that is, the intersection between a code and its dual.\nIndeed, most of the known algorithms have running time that grows exponentially with the hull dimension.\nSince random codes have very small hull with large probability, PEP is deemed easy for random codes.\n\nIn this paper we study how the so-called Schur product between linear codes can be employed to solve PEP.\nThe basic idea is to transform a given PEP instance by computing the square of the given codes.\nWhile it is well known that the square code operation preserves equivalence between linear codes, we show that, regardless of the hull dimension of the starting codes, their square codes have trivial hull with high probability. Furthermore, we show that as long as the code rate is sufficiently low, no additional permutations mapping the square codes exist with high probability. This effectively generates a new pair of equivalent codes with trivial hulls, where the underlying permutation remains identical to that of the original instance. This observation allows us to leverage existing hull-based attacks to recover the permutation for the square codes, and consequently, for the original codes. \nFurthermore, we improve this attack by exploiting the structural relationship between hulls: if a permutation maps two codes, the same permutation also maps their respective hulls. We show that by considering the square of the hull as a code in its own right, its hull also becomes trivial with high probability.\n\nThis allows for the identification of new weak instances of PEP, leading to an attack whose complexity no longer depends on the initial hull dimension, as it is the case of most known algorithm. \nIn particular, we show that our attack achieves average polynomial-time complexity (since the square of the hull, when seen as a code, intersects with its dual in a low dimensional space with large probability) as long as $k < \\sqrt{2n}$ or $h < \\sqrt{2n}$, where $n$, $k$, and $h$ denote the code length, dimension, and hull dimension, respectively.\nWe corroborate our analysis, which relies on some (plausible) heuristics, with intensive numerical simulations.\n\nAs a concrete application, we consider the updatable encryption scheme proposed by Albrecht, Benčina, and Lai at Eurocrypt 2025.\nAll the recommended instances fall into the range of weak PEP instances identified in this paper; hence, they are susceptible to our attack.\nAs a demonstration, we successfully recover the secret permutation for two of the instances claiming 128 bits of security in about $10$ minutes on average on a laptop.\nAs a fix, instances with hull dimension $h > \\sqrt{2n}$ should be employed.",
  "category": "Attacks and cryptanalysis",
  "license": {
    "code": "CC BY-SA",
    "url": "https://creativecommons.org/licenses/by-sa/4.0/",
    "label": "CC BY-SA 4.0",
    "attribution": "“Using the Schur Product to Solve the Code Equivalence Problem” by Michele Battagliola, Rocco Mora, Paolo Santini, Cryptology ePrint Archive, Paper 2025/1017, https://eprint.iacr.org/2025/1017. Licensed under CC BY-SA 4.0 (https://creativecommons.org/licenses/by-sa/4.0/).",
    "retroactive": false,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2025-06-02T10:04:58Z",
    "updated": "2026-05-19T12:37:00Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2025/1017.pdf",
    "sha256": "993e7b3291ed3a6e2f058d4a8261b668379c5d9668c8d9f6a3e099dc99e09ef0",
    "size": 607182,
    "source": "wayback",
    "source_date": "2026-08-25T18:31:28Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "eprint_size": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2025/1017/versions/20260825T183128Z.pdf",
      "captured_at": "2026-08-25T18:31:28Z",
      "label": "copy captured 2026-08-25",
      "source": "wayback",
      "source_url": "https://web.archive.org/web/20260825183128id_/https://eprint.iacr.org/2025/1017.pdf",
      "size": 607182,
      "sha256": "993e7b3291ed3a6e2f058d4a8261b668379c5d9668c8d9f6a3e099dc99e09ef0",
      "is_default_pdf": true
    },
    {
      "url": "https://opencryptology.org/2025/1017/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/1017.pdf",
      "size": 586435,
      "sha256": "50eaa46a7868303292bed5121019aa5cd158c30ed3f3ec162513735b09e6a91b",
      "is_default_pdf": false
    }
  ],
  "other_sources": [
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20260825183128id_/https://eprint.iacr.org/2025/1017.pdf",
      "captured_at": "2026-08-25T18:31:28Z",
      "size": 600537
    },
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2025/1017.pdf",
      "captured_at": "2026-04-28T17:20:00Z",
      "size": 586435
    }
  ],
  "bibtex": "@misc{cryptoeprint:2025/1017,\n      author = {Michele Battagliola and Rocco Mora and Paolo Santini},\n      title = {Using the Schur Product to Solve the Code Equivalence Problem},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2025/1017},\n      year = {2025},\n      url = {https://eprint.iacr.org/2025/1017}\n}"
}
