{
  "id": "2021/523",
  "url": "https://opencryptology.org/2021/523",
  "original_url": "https://eprint.iacr.org/2021/523",
  "title": "No Time to Hash: On Super Efficient Entropy Accumulation",
  "authors": [
    "Yevgeniy Dodis",
    "Siyao Guo",
    "Noah Stephens-Davidowitz",
    "Zhiye Xie"
  ],
  "affiliations": null,
  "abstract": "Real-world random number generators (RNGs) cannot afford to use (slow) cryptographic hashing every time they refresh their state $R$ with a new entropic input $X$. Instead, they use ``superefficient'' simple entropy-accumulation procedures, such as\n$$R \\leftarrow  \\mathsf{rot}_{\\alpha, n}(R) \\oplus X,$$\nwhere $\\mathsf{rot}_{\\alpha,n}$ rotates an $n$-bit state $R$ by some fixed number $\\alpha$. For example, Microsoft's RNG uses $\\alpha=5$ for $n=32$ and $\\alpha=19$ for $n=64$. Where do these numbers come from? Are they good choices?\nShould rotation be replaced by a better permutation $\\pi$ of the input bits?\n\nIn this work we initiate a rigorous study of these pragmatic questions, by modeling the sequence of successive entropic inputs $X_1,X_2,\\ldots$ as independent (but otherwise adversarial) samples from some natural distribution family ${\\mathcal D}$. Our contribution is as follows.\n\n* We define $2$-monotone distributions as a rich family ${\\mathcal D}$ that includes relevant real-world distributions (Gaussian, exponential, etc.), but avoids trivial impossibility results.\n\n* For any $\\alpha$ with $\\gcd(\\alpha,n)=1$, we show that rotation accumulates $\\Omega(n)$ bits of entropy from $n$ independent samples $X_1,\\ldots,X_n$ from any (unknown) $2$-monotone distribution with entropy $k > 1$.\n\n* However, we also show that some choices of  $\\alpha$ perform much better than others for a given $n$. E.g., we show $\\alpha=19$ is one of the best choices for $n=64$; in contrast, $\\alpha=5$ is good, but generally worse than $\\alpha=7$, for $n=32$.\n\n* More generally, given a permutation $\\pi$ and $k\\ge 1$, we define a simple parameter, the covering number $C_{\\pi,k}$, and show that it characterizes the number of steps before the rule\n$$(R_1,\\ldots,R_n)\\leftarrow (R_{\\pi(1)},\\ldots, R_{\\pi(n)})\\oplus X$$\naccumulates nearly $n$ bits of entropy from independent, $2$-monotone samples of min-entropy $k$ each.\n\n* We build a simple permutation $\\pi^*$, which achieves nearly optimal $C_{\\pi^*,k}\\approx n/k$ for all values of $k$ simultaneously, and experimentally validate that it compares favorably with all rotations $\\mathsf{rot}_{\\alpha,n}$.",
  "category": "Foundations",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“No Time to Hash: On Super Efficient Entropy Accumulation” by Yevgeniy Dodis, Siyao Guo, Noah Stephens-Davidowitz, Zhiye Xie, Cryptology ePrint Archive, Paper 2021/523, https://eprint.iacr.org/2021/523. 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-04-23T12:24:21Z",
    "updated": "2022-03-17T14:13:54Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2021/523.pdf",
    "sha256": "f1b0c827f78fb1954fb756648af95762b59cfdc979255b001530f05db74952c0",
    "size": 3078718,
    "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/523/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/523.pdf",
      "size": 3078718,
      "sha256": "f1b0c827f78fb1954fb756648af95762b59cfdc979255b001530f05db74952c0",
      "is_default_pdf": true
    },
    {
      "url": "https://opencryptology.org/2021/523/versions/20210820T003548Z.pdf",
      "captured_at": "2021-08-20T00:35:48Z",
      "label": "copy captured 2021-08-20",
      "source": "wayback",
      "source_url": "https://web.archive.org/web/20210820003548id_/https://eprint.iacr.org/2021/523.pdf",
      "size": 3076487,
      "sha256": "ade3ee177729253c00f7e94c79dc96210db2f46b985cbd44163b988b00ced871",
      "is_default_pdf": false
    }
  ],
  "other_sources": [
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20260310161259id_/https://eprint.iacr.org/2021/523.pdf",
      "captured_at": "2026-03-10T16:12:59Z",
      "size": 2038989
    },
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2021/523.pdf",
      "captured_at": "2024-01-14T06:13:28Z",
      "size": 3078718
    }
  ],
  "bibtex": "@misc{cryptoeprint:2021/523,\n      author = {Yevgeniy Dodis and Siyao Guo and Noah Stephens-Davidowitz and Zhiye Xie},\n      title = {No Time to Hash: On Super Efficient Entropy Accumulation},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2021/523},\n      year = {2021},\n      url = {https://eprint.iacr.org/2021/523}\n}"
}
