Generic Attacks on Strengthened HMAC: n-bit Secure HMAC Requires Key in All Blocks.

Yu Sasaki,Lei Wang
DOI: https://doi.org/10.1007/978-3-319-10879-7_19
2014-01-01
Abstract:HMAC is the most widely used hash based MAC scheme. Recently, several generic attacks have been presented against HMAC with a complexity between 2 n/2 and 2 n , where n is the output size of an underlying hash function. In this paper, we investigate the security of strengthened HMAC in which the key is used to process underlying compression functions. With such a modification, the attacker is unable to precompute the property of the compression function offline, and thus previous generic attacks are prevented. In this paper, we show that keying the compression function in all blocks is necessary to prevent a generic internal state recovery attack with a complexity less than 2 n . In other words, only with a single keyless compression function, the internal state is recovered faster than 2 n . To validate the claim, we present a generic attack against the strengthened HMAC in which only one block is keyless, thus pre-computable offline. Our attack uses the previous generic attack by Naito et al. as a base. We improve it so that the attack can be applied only with a single keyless compression function while the attack complexity remains unchanged from the previous work.
What problem does this paper attempt to address?