{
  "id": "2018/097",
  "url": "https://opencryptology.org/2018/097",
  "original_url": "https://eprint.iacr.org/2018/097",
  "title": "Exploiting an HMAC-SHA-1 optimization to speed up PBKDF2",
  "authors": [
    "Andrea Visconti",
    "Federico Gorla"
  ],
  "affiliations": null,
  "abstract": "PBKDF2 [27] is a well-known password-based key derivation function. In order to slow attackers down, PBKDF2 introduces CPU-intensive operations based on an iterated pseudorandom function (in our case HMAC-SHA-1). If we are able to speed up a SHA-1 or an HMAC implementation, we are able to speed up PBKDF2-HMAC-SHA-1. This means that a performance improvement might be exploited by regular users and attackers. Interestingly, FIPS 198-1 [31] suggests that it is possible to precompute first message block of a keyed hash function only once, store such a value and use it each time is needed [43]. Therefore the computation of first message block does not contribute to slowing attackers down, thus making the computation of second message block crucial. In this paper we focus on the latter, investigating the possibility to avoid part of the HMAC-SHA-1 operations. We show that some CPU-intensive operations may be replaced with a set of equivalent, but less onerous, instructions. We identify useless XOR operations exploiting and extending Intel optimizations [26], and applying the Boyar-Peralta heuristic [12]. In addition, we provide an alternative method to compute the SHA-1 message scheduling function and explain why attackers might exploit these findings to speed up a brute force attack.",
  "category": null,
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“Exploiting an HMAC-SHA-1 optimization to speed up PBKDF2” by Andrea Visconti, Federico Gorla, Cryptology ePrint Archive, Paper 2018/097, https://eprint.iacr.org/2018/097. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": true,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2018-01-28T21:42:35Z",
    "updated": "2018-01-28T21:42:35Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2018/097.pdf",
    "sha256": "e5c7688f6bfffce3768a2b41b1b907e6761e04544f6a03576218c15676ad7ac8",
    "size": 1421821,
    "source": "github-mirror",
    "source_date": "2019-02-25T18:03:07Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2018/097/versions/20190225T180307Z.pdf",
      "captured_at": "2019-02-25T18:03:07Z",
      "label": "copy captured 2019-02-25",
      "source": "github-mirror",
      "source_url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2018/097.pdf",
      "size": 1421821,
      "sha256": "e5c7688f6bfffce3768a2b41b1b907e6761e04544f6a03576218c15676ad7ac8",
      "is_default_pdf": true
    }
  ],
  "other_sources": [
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20260224050541id_/https://eprint.iacr.org/2018/097.pdf",
      "captured_at": "2026-02-24T05:05:41Z",
      "size": 1108555
    },
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2018/097.pdf",
      "captured_at": "2019-02-25T18:03:07Z",
      "size": 1421821
    }
  ],
  "bibtex": "@misc{cryptoeprint:2018/097,\n      author = {Andrea Visconti and Federico Gorla},\n      title = {Exploiting an HMAC-SHA-1 optimization to speed up PBKDF2},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2018/097},\n      year = {2018},\n      url = {https://eprint.iacr.org/2018/097}\n}"
}
