{
  "id": "2022/1337",
  "url": "https://opencryptology.org/2022/1337",
  "original_url": "https://eprint.iacr.org/2022/1337",
  "title": "How to Enumerate LWE Keys as Narrow as in Kyber/Dilithium",
  "authors": [
    "Timo Glaser",
    "Alexander May"
  ],
  "affiliations": null,
  "abstract": "In the Learning with Errors (LWE) problem we are given a matrix $A \\in \\mathbb{Z}_q^{N \\times N}$ and a target vector $\\vec{t} \\in \\mathbb{Z}_q^N$ such that there exists small-norm $\\vec{s}, \\vec{e}\\in \\mathbb{Z}_q^N$ satisfying $A\\cdot\\vec{s} = \\vec{t} + \\vec{e} \\bmod q$.\nModern cryptosystems often sample $\\vec{s}, \\vec{e}$ from  narrow distributions that take integer values in a small range $[-\\eta, \\eta].$ Kyber and Dilithium both choose $\\eta=2$ and $\\eta=3$ using either a Centered Binomial distribution (Kyber), or a uniform distribution (Dilithium).\nIn this work, we address the fundamental question how hard the enumeration of LWE secret keys for narrow distributions with $\\eta \\leq 3$ is. At Crypto 21, May proposed a representation-based algorithm for enumerating ternary keys, i.e. the case $\\eta = 1$, with a fixed number of $\\pm 1$ entries. In this work, we extend May's algorithm in several ways.\nFirst, we show how to deal with keys sampled from a probability distribution as in many modern systems like Kyber and Dilithium, rather than with keys having a fixed number of entries.\nSecond, we generalize to larger values $\\eta= 2, 3$, thereby achieving asymptotic key guess complexities that are not far off from lattice estimates.\nE.g. for Kyber's Centered Binomial distribution we achieve heuristic time/memory complexities of $\\mathcal{O}(2^{0.36N})$ for $\\eta=2$,  and  $\\mathcal{O}(2^{0.37N})$ for $\\eta=3$. For Dilithium's uniform distribution we achieve heuristic complexity $\\mathcal{O}(2^{0.38N})$ for $\\eta=2$.\nLet $S$ be the Shannon entropy of Kyber/Dilithium keys. Then our algorithms runs in time about ${S}^{\\frac 16}$, which greatly improves over the standard combinatorial Meet-in-the-Middle attack with complexity ${S}^{\\frac 1 2}$.\nOur results also compare well to current lattice asymptotics of $2^{0.29 \\beta}$, where the lattice parameter $\\beta$ is roughly of size $\\frac 4 5 N$. Thus, our analysis supports that Kyber secret keys are indeed hard to enumerate. Yet, we find it remarkable that a purely combinatorial key search is almost competitive with highly evolved lattice sieving techniques.",
  "category": "Attacks and cryptanalysis",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“How to Enumerate LWE Keys as Narrow as in Kyber/Dilithium” by Timo Glaser, Alexander May, Cryptology ePrint Archive, Paper 2022/1337, https://eprint.iacr.org/2022/1337. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": false,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2022-10-07T09:04:12Z",
    "updated": "2023-08-25T12:50:47Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2022/1337.pdf",
    "sha256": "81e5cbbb9e0c18f069ee0cb65332369f4982c1de493374ffa7fd550bb2c79cce",
    "size": 826628,
    "source": "github-mirror",
    "source_date": "2024-01-14T06:13:34Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2022/1337/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/1337.pdf",
      "size": 826628,
      "sha256": "81e5cbbb9e0c18f069ee0cb65332369f4982c1de493374ffa7fd550bb2c79cce",
      "is_default_pdf": true
    },
    {
      "url": "https://opencryptology.org/2022/1337/versions/20221010T115923Z.pdf",
      "captured_at": "2022-10-10T11:59:23Z",
      "label": "copy captured 2022-10-10",
      "source": "wayback",
      "source_url": "https://web.archive.org/web/20221010115923id_/https://eprint.iacr.org/2022/1337.pdf",
      "size": 806329,
      "sha256": "52fbdedaa4529a4161bfb5b22c2617fc97d7ee3c3436f91ff041cd86f0b7f3b9",
      "is_default_pdf": false
    }
  ],
  "other_sources": [
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20260209232817id_/https://eprint.iacr.org/2022/1337.pdf",
      "captured_at": "2026-02-09T23:28:17Z",
      "size": 583004
    },
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2022/1337.pdf",
      "captured_at": "2024-01-14T06:13:34Z",
      "size": 826628
    }
  ],
  "bibtex": "@misc{cryptoeprint:2022/1337,\n      author = {Timo Glaser and Alexander May},\n      title = {How to Enumerate LWE Keys as Narrow as in Kyber/Dilithium},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2022/1337},\n      year = {2022},\n      url = {https://eprint.iacr.org/2022/1337}\n}"
}
