{
  "id": "2021/1695",
  "url": "https://opencryptology.org/2021/1695",
  "original_url": "https://eprint.iacr.org/2021/1695",
  "title": "Invertible Quadratic Non-Linear Layers for MPC-/FHE-/ZK-Friendly Schemes over $\\mathbb F_p^n$",
  "authors": [
    "Lorenzo Grassi",
    "Silvia Onofri",
    "Marco Pedicini",
    "Luca Sozzi"
  ],
  "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. This goal is often achieved by instantiating the non-linear layer via power maps $x\\mapsto x^d$.\n\nIn this paper, we start an analysis of new  non-linear permutation functions over $\\mathbb{F}_p^n$ that can be used as building blocks in such  symmetric-key primitives. Given a local map $F:\\mathbb{F}_p^m \\rightarrow \\mathbb{F}_p$, we limit ourselves to focus on S-Boxes over $\\mathbb{F}_p^n$ for $n\\ge m$ 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}, \\ldots, x_{i+m-1} )$. As main results, we prove that\n- given any quadratic function $F:\\mathbb{F}_p^2 \\rightarrow \\mathbb{F}_p$, the corresponding S-Box $\\mathcal{S}_F$ over $\\mathbb{F}_p^n$ for $n\\ge 3$ is never invertible;\n- similarly, given any quadratic function $F:\\mathbb{F}_p^3 \\rightarrow \\mathbb{F}_p$, the corresponding S-Box $\\mathcal{S}_F$ over $\\mathbb{F}_p^n$ for $n\\ge 5$ is never invertible.\nMoreover, for each $p\\ge 3$, we present (1st) generalizations of the Lai-Massey construction over $\\mathbb{F}_p^n$ defined as before via functions $F:\\mathbb{F}_p^m \\rightarrow \\mathbb{F}_p$ for each $n=m\\ge 2$ and (2nd)  (non-trivial) quadratic functions $F:\\mathbb{F}_p^3 \\rightarrow \\mathbb{F}_p$ such that $\\mathcal{S}_F$ over $\\mathbb{F}_p^n$ for $n\\in \\{3,4\\}$ is invertible. As an open problem for future work, we conjecture that for each $m\\ge 1$ there exists a \\textit{finite} integer $n_{\\text{max}}(m)$ such that $\\mathcal{S}_F$ over $\\mathbb{F}_p^n$ defined as before via a quadratic function $F:\\mathbb{F}_p^m \\rightarrow \\mathbb{F}_p$ is \\textit{not} invertible for each $n\\ge n_{\\text{max}}(m)$.\n\nFinally, as a concrete application, we  propose Neptune, a variant of the sponge hash function Poseidon, whose non-linear layer is designed by taking into account the results presented in this paper.\nWe show that this variant leads to a concrete multiplication reduction with respect to Poseidon.",
  "category": "Secret-key cryptography",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“Invertible Quadratic Non-Linear Layers for MPC-/FHE-/ZK-Friendly Schemes over $\\mathbb F_p^n$” by Lorenzo Grassi, Silvia Onofri, Marco Pedicini, Luca Sozzi, Cryptology ePrint Archive, Paper 2021/1695, https://eprint.iacr.org/2021/1695. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": true,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2021-12-30T17:12:02Z",
    "updated": "2023-03-03T11:46:19Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2021/1695.pdf",
    "sha256": "59afaacbba7412fe48b775a60cb463f66f1b06a3ea27e9c1cc08bff79dcd18f3",
    "size": 1104786,
    "source": "github-mirror",
    "source_date": "2024-01-14T06:13:28Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2021/1695/versions/20240114T061328Z.pdf",
      "captured_at": "2024-01-14T06:13:28Z",
      "label": "copy captured 2024-01-14",
      "source": "github-mirror",
      "source_url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2021/1695.pdf",
      "size": 1104786,
      "sha256": "59afaacbba7412fe48b775a60cb463f66f1b06a3ea27e9c1cc08bff79dcd18f3",
      "is_default_pdf": true
    },
    {
      "url": "https://opencryptology.org/2021/1695/versions/20220119T143633Z.pdf",
      "captured_at": "2022-01-19T14:36:33Z",
      "label": "copy captured 2022-01-19",
      "source": "wayback",
      "source_url": "https://web.archive.org/web/20220119143633id_/https://eprint.iacr.org/2021/1695.pdf",
      "size": 1021946,
      "sha256": "7f097483b9b60676cb5e498d8218bbe8cfca93024df7a93ecd7c30ff997e52d5",
      "is_default_pdf": false
    },
    {
      "url": "https://opencryptology.org/2021/1695/versions/20211230T173427Z.pdf",
      "captured_at": "2021-12-30T17:34:27Z",
      "label": "copy captured 2021-12-30",
      "source": "wayback",
      "source_url": "https://web.archive.org/web/20211230173427id_/https://eprint.iacr.org/2021/1695.pdf",
      "size": 1021943,
      "sha256": "5aa46652c9023033f4dea9efdf48f91396dd1d8655e876b688739fe858e1eff2",
      "is_default_pdf": false
    }
  ],
  "other_sources": [
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20260102121814id_/https://eprint.iacr.org/2021/1695.pdf",
      "captured_at": "2026-01-02T12:18:14Z",
      "size": 930874
    },
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2021/1695.pdf",
      "captured_at": "2024-01-14T06:13:28Z",
      "size": 1104786
    }
  ],
  "bibtex": "@misc{cryptoeprint:2021/1695,\n      author = {Lorenzo Grassi and Silvia Onofri and Marco Pedicini and Luca Sozzi},\n      title = {Invertible Quadratic Non-Linear Layers for MPC-/FHE-/ZK-Friendly Schemes over $\\mathbb F_p^n$},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2021/1695},\n      year = {2021},\n      url = {https://eprint.iacr.org/2021/1695}\n}"
}
