Cryptanalysis of the LAKE Hash Family

Alex Biryukov, Praveen Gauravaram, Jian Guo, Dmitry Khovratovich, San Ling, Krystian Matusiewicz, Ivica Nikolic, Josef Pieprzyk, Huaxiong Wang

Abstract

The LAKE hash family was developed as a robust alternative to the Merkle-Damgård construction, utilizing the HAIFA framework to mitigate structural vulnerabilities such as length-extension attacks. This paper presents a detailed cryptanalysis of LAKE-256, demonstrating that the security of the framework is undermined by the non-injectivity of its internal compression primitives. By exploiting algebraic properties of the internal $f$ and $g$ functions, we identify differential trails that lead to collisions with complexities significantly lower than the birthday bound. Specifically, we present collision attacks with complexities of $2^{33}$ and $2^{42}$, which are notably independent of the number of rounds.

1. Introduction

In the mid-2000s, the cryptographic community faced a crisis following the successful attacks on MD5 and SHA-1. These vulnerabilities prompted the development of new hash function frameworks, most notably the HAIFA (HAsh Iterative FRamework) construction. LAKE was designed to leverage HAIFA’s strengths, incorporating additional inputs such as salts and block counters to enhance security. However, the security of a hash function relies not only on its high-level framework but also on the mathematical integrity of its internal compression function. This study scrutinizes the internal logic of LAKE-256 to determine if its design holds up against differential cryptanalysis.

2. Vulnerability Analysis: Non-Injectivity

The primary weakness identified in LAKE-256 lies in its internal $f$ function. Cryptographic compression functions are ideally designed to be injective or behave like random oracles. However, LAKE’s $f$ function is non-injective, meaning distinct inputs can map to identical outputs.

This property allows an attacker to introduce a difference into the internal state and subsequently "cancel" it out. By manipulating the modular addition, rotations, and XOR operations (ARX), an attacker can control the "carry effect." This control ensures that differences introduced in one word do not propagate uncontrollably throughout the state, facilitating the creation of differential trails.

3. Methodology

The analysis employs differential cryptanalysis focused on three specific types of trails through the compression function:

  • (H, t)-type Trails: These utilize differences in the chaining values ($H$) and the block counter ($t$).
  • (H, S)-type Trails: These exploit differences in the chaining values ($H$) and the salt ($S$).
  • H-type Trails: These focus solely on differences in the chaining values to identify near-collisions.

To realize these trails, the authors developed four specialized algorithms (Al1 through Al4) to solve systems of ARX equations. These algorithms efficiently identify the specific message bits required to satisfy the necessary differential conditions, turning theoretical vulnerabilities into practical attacks.

4. Results and Discussion

The cryptanalysis reveals devastating efficiencies in attacking the LAKE-256 compression function. The complexities of these attacks are summarized below:

Attack Type Target Complexity Significance
(H, t)-type Full Collision $2^{33}$ Executable on consumer hardware in minutes.
(H, S)-type Full Collision $2^{42}$ Far below the $2^{128}$ theoretical security bound.
H-type Near-Collision $2^{99}$ Demonstrates weakness even without auxiliary inputs.

A critical finding is that these attacks are round-independent. Because the differences are neutralized within the initial message processing steps, increasing the number of rounds does not enhance security against these specific differential trails. The authors validated these results by generating concrete examples of colliding pairs for the (H, t) and (H, S) attacks.

5. Conclusion

While the successor to LAKE, BLAKE, utilizes a different internal structure that resists these specific attacks, the techniques developed in this study remain highly relevant. The equation-solving algorithms (Al1-Al4) provide a general framework for analyzing ARX-based cryptographic primitives. This research serves as a cautionary tale: a secure high-level framework like HAIFA cannot compensate for fundamental flaws in the underlying compression function.

Summary updated

BibTeX
@inproceedings{biryukov2009cryptanalysis,
  author = {Alex Biryukov and Praveen Gauravaram and Jian Guo and Dmitry Khovratovich and San Ling and Krystian Matusiewicz and Ivica Nikolic and Josef Pieprzyk and Huaxiong Wang},
  title = {{Cryptanalysis of the LAKE Hash Family}},
  booktitle = {FSE},
  year = {2009},
  doi = {10.1007/978-3-642-03317-9\_10},
}
Figure