Loading [MathJax]/extensions/MathMenu.js
Exploiting an HMAC-SHA-1 Optimization to Speed up PBKDF2 | IEEE Journals & Magazine | IEEE Xplore

Exploiting an HMAC-SHA-1 Optimization to Speed up PBKDF2


Abstract:

PBKDF2 [1] is a well-known password-based key derivation function. In order to slow attackers down, PBKDF2 introduces CPU-intensive operations based on an iterated pseudo...Show More

Abstract:

PBKDF2 [1] 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 [2] 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 [3] . 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 [4] , and applying the Boyar-Peralta heuristic [5] . 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 against PBKDF2.
Published in: IEEE Transactions on Dependable and Secure Computing ( Volume: 17, Issue: 4, 01 July-Aug. 2020)
Page(s): 775 - 781
Date of Publication: 30 October 2018

ISSN Information:


Contact IEEE to Subscribe

References

References is not available for this document.