{
  "id": "2022/1313",
  "url": "https://opencryptology.org/2022/1313",
  "original_url": "https://eprint.iacr.org/2022/1313",
  "title": "Bounded Surjective Quadratic Functions over $\\mathbb F_p^n$ for MPC-/ZK-/FHE-Friendly Symmetric Primitives",
  "authors": [
    "Lorenzo Grassi"
  ],
  "affiliations": null,
  "abstract": "Motivated by new applications such as secure Multi-Party Computation (MPC), Fully Homomorphic Encryption (FHE), and Zero-Knowledge proofs (ZK), many MPC-, FHE- and ZK-friendly symmetric-key primitives that minimize the number of multiplications over $\\mathbb F_p$ for a large prime $p$ have been recently proposed in the literature. These symmetric primitives are usually defined via invertible functions, including (i) Feistel and Lai-Massey schemes and (ii) SPN constructions instantiated with invertible non-linear S-Boxes. However, the ``invertibility'' property is actually never required in any of the mentioned applications.\n\nIn this paper, we discuss the possibility to set up MPC-/FHE-/ZK-friendly symmetric primitives instantiated with non-invertible bounded surjective functions. With respect to one-to-one functions, any output of a $l$-bounded surjective function admits at most $l$ pre-images. The simplest example is the square map $x\\mapsto x^2$ over $\\mathbb F_p$ for a prime $p\\ge 3$, which is (obviously) $2$-bounded surjective. \nWhen working over $\\mathbb F_p^n$ for $n\\ge 2$, we set up bounded surjective functions by re-considering the recent results proposed by Grassi, Onofri, Pedicini and Sozzi at FSE/ToSC 2022 as starting points. Given a quadratic local map $F:\\mathbb F_p^m \\rightarrow \\mathbb F_p$ for $m\\in\\{1,2,3\\}$, they proved that the shift-invariant non-linear function over $\\mathbb F_p^n$  defined as $\\mathcal S_F(x_0, x_1, \\ldots, x_{n-1}) = y_0\\| y_1\\| \\ldots \\| y_{n-1}$ where $y_i := F(x_i, x_{i+1})$ is never invertible for any $n\\ge 2\\cdot m-1$. Here, we prove that \n\n- the quadratic function $F:\\mathbb F_p^m \\rightarrow \\mathbb F_p$ for $m\\in\\{1,2\\}$ that minimizes the probability of having a collision for $\\mathcal S_F$ over $\\mathbb F_p^n$ is of the form $F(x_0, x_1) = x_0^2 + x_1$ (or equivalent);\n\n- the function $\\mathcal S_F$ over $\\mathbb F_p^n$ defined as before via $F(x_0, x_1) = x_0^2 + x_1$ (or equivalent) is $2^n$-bounded surjective.\n\nAs concrete applications, we propose modified versions of the MPC-friendly schemes MiMC, HadesMiMC, and (partially of) Hydra, and of the FHE-friendly schemes Masta, Pasta, and Rubato. By instantiating them with the bounded surjective quadratic functions proposed in this paper, we are able to improve the security and/or the performances in the target applications/protocols.",
  "category": "Secret-key cryptography",
  "license": {
    "code": "CC BY-SA",
    "url": "https://creativecommons.org/licenses/by-sa/4.0/",
    "label": "CC BY-SA 4.0",
    "attribution": "“Bounded Surjective Quadratic Functions over $\\mathbb F_p^n$ for MPC-/ZK-/FHE-Friendly Symmetric Primitives” by Lorenzo Grassi, Cryptology ePrint Archive, Paper 2022/1313, https://eprint.iacr.org/2022/1313. 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": "2022-10-04T07:33:44Z",
    "updated": "2023-05-26T10:20:47Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2022/1313.pdf",
    "sha256": "f02708df67cd794289fbc3da676b472a0c14e99849d84f9f99db45ae67dc852b",
    "size": 1064869,
    "source": "github-mirror",
    "source_date": "2024-01-14T06:13:34Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "eprint_size": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2022/1313/versions/20240114T061334Z.pdf",
      "captured_at": "2024-01-14T06:13:34Z",
      "label": "copy captured 2024-01-14",
      "source": "github-mirror",
      "source_url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2022/1313.pdf",
      "size": 1064869,
      "sha256": "f02708df67cd794289fbc3da676b472a0c14e99849d84f9f99db45ae67dc852b",
      "is_default_pdf": true
    },
    {
      "url": "https://opencryptology.org/2022/1313/versions/20230326T015258Z.pdf",
      "captured_at": "2023-03-26T01:52:58Z",
      "label": "copy captured 2023-03-26",
      "source": "wayback",
      "source_url": "https://web.archive.org/web/20230326015258id_/https://eprint.iacr.org/2022/1313.pdf",
      "size": 977980,
      "sha256": "46b3c3becc4576cf0f45f4e1aa21cdca805e22a5e65bbb5aef07632be4823061",
      "is_default_pdf": false
    },
    {
      "url": "https://opencryptology.org/2022/1313/versions/20230128T010410Z.pdf",
      "captured_at": "2023-01-28T01:04:10Z",
      "label": "copy captured 2023-01-28",
      "source": "wayback",
      "source_url": "https://web.archive.org/web/20230128010410id_/https://eprint.iacr.org/2022/1313.pdf",
      "size": 965509,
      "sha256": "74b6a3fd20f757dab027fbb4c9b27636a94210aebb2f20c32b90ccc48d64d02c",
      "is_default_pdf": false
    },
    {
      "url": "https://opencryptology.org/2022/1313/versions/20221005T162326Z.pdf",
      "captured_at": "2022-10-05T16:23:26Z",
      "label": "copy captured 2022-10-05",
      "source": "wayback",
      "source_url": "https://web.archive.org/web/20221005162326id_/https://eprint.iacr.org/2022/1313.pdf",
      "size": 966290,
      "sha256": "022cfd134db86adce76636deb2a008891a7b3918aeb6bb3dc9cb1819276e7487",
      "is_default_pdf": false
    }
  ],
  "other_sources": [
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20260309000451id_/https://eprint.iacr.org/2022/1313.pdf",
      "captured_at": "2026-03-09T00:04:51Z",
      "size": 928222
    },
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2022/1313.pdf",
      "captured_at": "2024-01-14T06:13:34Z",
      "size": 1064869
    }
  ],
  "bibtex": "@misc{cryptoeprint:2022/1313,\n      author = {Lorenzo Grassi},\n      title = {Bounded Surjective Quadratic Functions over $\\mathbb F_p^n$ for MPC-/ZK-/FHE-Friendly Symmetric Primitives},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2022/1313},\n      year = {2022},\n      url = {https://eprint.iacr.org/2022/1313}\n}"
}
