{
  "id": "2024/1795",
  "url": "https://opencryptology.org/2024/1795",
  "original_url": "https://eprint.iacr.org/2024/1795",
  "title": "How Fast Does the Inverse Walk Approximate a Random Permutation?",
  "authors": [
    "Vishesh Jain",
    "Tianren Liu",
    "Clayton Mizgerd",
    "Angelos Pelecanos",
    "Stefano Tessaro",
    "Vinod Vaikuntanathan"
  ],
  "affiliations": null,
  "abstract": "For a finite field $\\mathbb{F}$ of size $n$, the (patched) inverse permutation $\\mathrm{INV}: \\mathbb{F} \\to \\mathbb{F}$  computes the inverse of $x$ over $\\mathbb{F}$ when $x\neq 0$ and outputs $0$ when $x=0$, and the $\\mathrm{ARK}_K$ (AddRoundKey) permutation adds a fixed constant $K$ to its input, i.e.,\n    $$\\mathrm{INV}(x) = x^{n-2} \\hspace{.1in} \\mbox{and} \\hspace{.1in} \n    \\mathrm{ARK}_K(x) = x + K \\;.$$\nWe study the process of alternately applying the $\\mathrm{INV}$ permutation followed by a random linear permutation $\\mathrm{ARK}_K$, which is a random walk over the alternating (or symmetric) group that we call the inverse walk.\n    \nWe show matching upper and lower bounds on the number of rounds it takes for this process to approximate a random permutation over $\\mathbb{F}$. We show that $r$ rounds of the inverse walk over the field of size $n$ with $$r = \\Theta\\left(n\\log n + n\\log \\frac{1}{\\epsilon}\\right)$$rounds generate a permutation that is $\\epsilon$-close (in total variation distance) to a uniformly random permutation of the appropriate sign. Our bound on $r$ is optimal, up to a constant. \n \nIn fact, we prove stronger lower bounds showing that the inverse walk needs at least $t = \\Omega(n \\log(1/\\epsilon))$ rounds to become $\\epsilon$-approximately $4$-wise independent and at least $s = \\Omega(n\\log n)$ rounds to get to within $(1-o_n(1))$ in total variation distance of a given $4$-wise independent permutation.\n    \nOur result answers an open question from the work of Liu, Pelecanos, Tessaro, and Vaikuntanathan (CRYPTO 2023) by proving the $t$-wise independence of (a variant of) AES for $t$ up to the square root of the field size, compared to the original result that only held for $t=2$. It also constitutes a significant improvement on a result of Carlitz (Proc. American Mathematical Society, 1953) who showed a reachability result: namely, that every even permutation can be generated eventually by composing $\\mathrm{INV}$ and $\\mathrm{ARK}$. We show a tight convergence result, namely a tight quantitative bound on the number of rounds to reach a random (even) permutation.\n\nOur work brings to the forefront the view of block ciphers as random walks and uses novel combinatorial and analytic tools to study their pseudorandomness, both of which we hope will prove useful in the study of block ciphers.",
  "category": "Secret-key cryptography",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“How Fast Does the Inverse Walk Approximate a Random Permutation?” by Vishesh Jain, Tianren Liu, Clayton Mizgerd, Angelos Pelecanos, Stefano Tessaro, Vinod Vaikuntanathan, Cryptology ePrint Archive, Paper 2024/1795, https://eprint.iacr.org/2024/1795. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": false,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2024-11-03T04:00:03Z",
    "updated": "2025-09-14T04:55:43Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2024/1795.pdf",
    "sha256": "f48ca5e2056ad1951668ee1fe4c62b3c633557082d0fa8d0a69560334e26a992",
    "size": 474856,
    "source": "github-mirror",
    "source_date": "2026-04-28T17:20:00Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "eprint_size": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2024/1795/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/2024/1795.pdf",
      "size": 474856,
      "sha256": "f48ca5e2056ad1951668ee1fe4c62b3c633557082d0fa8d0a69560334e26a992",
      "is_default_pdf": true
    },
    {
      "url": "https://opencryptology.org/2024/1795/versions/20250524T163805Z.pdf",
      "captured_at": "2025-05-24T16:38:05Z",
      "label": "copy captured 2025-05-24",
      "source": "wayback",
      "source_url": "https://web.archive.org/web/20250524163805id_/https://eprint.iacr.org/2024/1795.pdf",
      "size": 432973,
      "sha256": "935be6ab586905fb9a4fa76402cbf979c5b8f78d555a94ada381357d00cd67eb",
      "is_default_pdf": false
    },
    {
      "url": "https://opencryptology.org/2024/1795/versions/20241104T052025Z.pdf",
      "captured_at": "2024-11-04T05:20:25Z",
      "label": "copy captured 2024-11-04",
      "source": "wayback",
      "source_url": "https://web.archive.org/web/20241104052025id_/https://eprint.iacr.org/2024/1795.pdf",
      "size": 393465,
      "sha256": "a27062b26be0e9bd99f86cf08f4534bee515fb5562fc0ea49f25d5d8de1eeaa1",
      "is_default_pdf": false
    }
  ],
  "other_sources": [
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2024/1795.pdf",
      "captured_at": "2026-04-28T17:20:00Z",
      "size": 474856
    },
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20260421005541id_/https://eprint.iacr.org/2024/1795.pdf",
      "captured_at": "2026-04-21T00:55:41Z",
      "size": 460978
    }
  ],
  "bibtex": "@misc{cryptoeprint:2024/1795,\n      author = {Vishesh Jain and Tianren Liu and Clayton Mizgerd and Angelos Pelecanos and Stefano Tessaro and Vinod Vaikuntanathan},\n      title = {How Fast Does the Inverse Walk Approximate a Random Permutation?},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2024/1795},\n      year = {2024},\n      url = {https://eprint.iacr.org/2024/1795}\n}"
}
