The Hash Function Family LAKE

Jean-Philippe Aumasson, Willi Meier, Raphael C.-w. Phan

Abstract

LAKE is a family of cryptographic hash functions, including LAKE-256 and LAKE-512, designed to provide high performance and enhanced security over the SHA-2 family. Introduced at FSE 2008, LAKE utilizes the HAsh Iterative FrAmework (HAIFA) to natively support randomized hashing and protect against generic attacks. By employing a "wide-pipe" internal state and a multi-stage compression function, LAKE offers significant speed advantages in software while maintaining a robust defense against modern differential cryptanalysis.

1. Introduction

In the mid-2000s, the cryptographic community faced a "hash crisis" as established standards like MD5 and SHA-1 were compromised. The Merkle-Damgård construction, while foundational, was found vulnerable to multi-collision and herding attacks. LAKE was proposed as a solution that prioritizes both software efficiency and structural resistance to these emerging threats. It is optimized for 32-bit and 64-bit processors and integrates features like salts and bit counters directly into its iterative process.

2. Architectural Design

LAKE's design is built upon several key pillars: the HAIFA framework, a wide-pipe construction, and an ARX-based (Addition, Rotation, XOR) round function.

2.1 The HAIFA Framework

Unlike traditional constructions, LAKE adopts the HAIFA framework, which incorporates a salt ($S$) and a bit counter ($t$) into every compression function call. This design natively supports randomized hashing and prevents pre-computation attacks. The notation used throughout the LAKE specification is summarized below:

Figure 1: Notation and definitions for the LAKE hash function family.

2.2 Wide-Pipe and Compression Function

The compression function in LAKE follows a "wide-pipe" approach, where the internal state is twice the size of the final output (e.g., a 512-bit internal state for a 256-bit hash). This makes finding internal collisions significantly harder. The process is divided into three distinct stages: saltstate, processmessage, and feedforward.

Figure 2: Overview of the LAKE compression function showing the iterative flow through saltstate, processmessage, and feedforward stages.

2.3 Stage Breakdown

  1. saltstate: This stage expands the chaining variable and injects the salt and block index.
  2. processmessage: The core of the function, consisting of 8 rounds (LAKE-256) or 10 rounds (LAKE-512). It utilizes non-linear functions $f$ and $g$ to mix message words.
  3. feedforward: This final stage compresses the wide internal state back to the size of the chaining variable.

3. Performance and Security Analysis

LAKE was designed for high-speed software execution. By avoiding heavy operations like multiplication, it ensures constant-time execution and prevents side-channel leakage.

3.1 Software Benchmarks

LAKE-256 demonstrates superior performance compared to SHA-256 on common x86 architectures. On an AMD Athlon XP, LAKE-256 achieved a speed of 38 cycles per byte, nearly twice as fast as SHA-256's 70 cycles per byte. This efficiency stems from a lower total operation count (1,908 for LAKE-256 vs. 2,232 for SHA-256) and a reduced reliance on XOR operations, which can be slower on modern pipelined CPUs.

3.2 Resistance to Differential Attacks

LAKE addresses the "perturb-and-correct" strategies used in differential attacks by ensuring high interdependence between state words. Unlike functions that update only one word per step (like SHA-1), LAKE updates all state words in a chain during each round. This makes it extremely difficult for an attacker to "correct" a difference introduced in a previous step. Furthermore, the wide-pipe design ensures that the internal round function is nearly injective, forcing potential collisions to occur at the final compression stage.

4. Conclusion

LAKE represents a significant step forward in hash function design, balancing the need for high-speed software performance with rigorous security requirements. By integrating the HAIFA framework and a wide-pipe architecture, it provides a flexible and robust alternative to the SHA-2 family, particularly for applications requiring randomized hashing and high throughput.

Summary updated

BibTeX
@inproceedings{aumasson2008hash,
  author = {Jean-Philippe Aumasson and Willi Meier and Raphael C.-W. Phan},
  title = {{The Hash Function Family LAKE}},
  booktitle = {Fse},
  year = {2008},
  doi = {10.1007/978-3-540-71039-4\_3},
}
Figure