{
  "id": "2016/367",
  "url": "https://opencryptology.org/2016/367",
  "original_url": "https://eprint.iacr.org/2016/367",
  "title": "An Analysis of OpenSSL's Random Number Generator",
  "authors": [
    "Falko Strenzke"
  ],
  "affiliations": null,
  "abstract": "In this work we demonstrate various weaknesses of the random number generator (RNG)\nin the OpenSSL cryptographic library.\nWe show how OpenSSL's RNG, knowingly in a low entropy state, potentially leaks low entropy\nsecrets in its output, which were never intentionally fed to the RNG by\nclient code, thus posing vulnerabilities even when in the given\nusage scenario the low entropy state is respected by the client application.\nTurning to the core cryptographic functionality of the RNG,\nwe show how OpenSSL's functionality for\nadding entropy to the RNG state fails to be effectively a mixing function.\nIf an initial low entropy state of the RNG\nwas falsely presumed to have 256 bits of entropy based on wrong entropy\nestimations, this causes attempts to recover from this state to succeed only in long term\nbut to fail in short term.\nAs a result, the entropy level of generated cryptographic keys can be limited to\n80 bits, even though thousands of bits of entropy might have been fed to the RNG state\npreviously. In the same scenario, we demonstrate an attack recovering the RNG\nstate from later output with an off-line effort between $2^{82}$ and $2^{84}$ hash evaluations,\nfor seeds with an entropy level $n$ above 160 bits. We also show\nthat seed data with an entropy of $160$ bits, fed into the RNG, under certain\ncircumstances, might be recovered from\nits output with an effort of $2^{82}$ hash evaluations.\nThese results are highly relevant for embedded systems that fail to provide sufficient\nentropy through their operating system RNG at boot time and rely on subsequent reseeding of\nthe OpenSSL RNG.\nFurthermore, we identify a\ndesign flaw that limits the entropy of the RNG's output to 240 bits in the general case\neven for an initially correctly seeded RNG, despite the fact that a security level of\n256 bits is intended.",
  "category": null,
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“An Analysis of OpenSSL's Random Number Generator” by Falko Strenzke, Cryptology ePrint Archive, Paper 2016/367, https://eprint.iacr.org/2016/367. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": true,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2016-04-12T21:03:41Z",
    "updated": "2016-04-12T21:03:41Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2016/367.pdf",
    "sha256": "97b30791b3bb77ce941b1e55e517635af64a283611c7b8366ca22680e1d896a6",
    "size": 449144,
    "source": "github-mirror",
    "source_date": "2019-02-25T17:24:56Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2016/367/versions/20190225T172456Z.pdf",
      "captured_at": "2019-02-25T17:24:56Z",
      "label": "copy captured 2019-02-25",
      "source": "github-mirror",
      "source_url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2016/367.pdf",
      "size": 449144,
      "sha256": "97b30791b3bb77ce941b1e55e517635af64a283611c7b8366ca22680e1d896a6",
      "is_default_pdf": true
    }
  ],
  "other_sources": [
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20251225182236id_/https://eprint.iacr.org/2016/367.pdf",
      "captured_at": "2025-12-25T18:22:36Z",
      "size": 388235
    },
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2016/367.pdf",
      "captured_at": "2019-02-25T17:24:56Z",
      "size": 449144
    }
  ],
  "bibtex": "@misc{cryptoeprint:2016/367,\n      author = {Falko Strenzke},\n      title = {An Analysis of OpenSSL's Random Number Generator},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2016/367},\n      year = {2016},\n      url = {https://eprint.iacr.org/2016/367}\n}"
}
