On the (In)Security of IDEA in Various Hashing Modes

Lei Wei, Thomas Peyrin, Przemyslaw Sokolowski, San Ling, Josef Pieprzyk, Huaxiong Wang

Abstract

For over two decades, the security of the International Data Encryption Algorithm (IDEA) when used as a building block for hash functions remained an open question. While IDEA is considered a robust block cipher for traditional encryption, this paper demonstrates that its structural properties make it fundamentally insecure for hashing. By exploiting a "null key" property and a novel "almost half-involution" structure, we present practical attacks on several well-known hashing modes, including Davies-Meyer, Abreast-DM, and Tandem-DM. These attacks achieve collision and preimage complexities significantly lower than the theoretical security bounds, regardless of the number of rounds used in the cipher.

Introduction

In the field of symmetric cryptography, block ciphers are frequently repurposed to construct compression functions for hash algorithms. This is typically achieved through modes such as Davies-Meyer (DM), where the message block serves as the cipher's key and the previous hash state serves as the plaintext. However, the security requirements for a block cipher in a hashing mode are significantly more stringent than those for standard encryption. In hashing, the "key" is no longer a secret; an attacker can choose or manipulate it to exploit internal weaknesses.

This paper addresses the long-standing uncertainty regarding the IDEA block cipher's suitability for such constructions. IDEA was the original inspiration for "double-block-length" hashing modes like Abreast-DM and Tandem-DM, yet its security in these specific contexts had not been fully characterized until now.

The Known-Key Vulnerability

The fundamental issue identified is the "known-key gap." A block cipher may be secure against recovery of a secret key, yet fail to behave like a random permutation when the key is known or chosen by an adversary. In the case of IDEA, the researchers focused on the "null key" (a key consisting of all zeros). Under this specific condition, the complex algebraic operations of IDEA—designed to provide diffusion and confusion—collapse into predictable patterns.

Methodology: Exploiting Structural Weaknesses

The attacks presented rely on two primary mathematical discoveries regarding IDEA's behavior under a null key:

1. The T-function Property

When the key is set to all zeros, IDEA's internal multiplications and additions simplify into a "T-function." In a T-function, the $i$-th bit of the output is determined solely by the $i$-th bits and lower-order bits of the input. This lack of high-to-low bit influence allows an attacker to solve for preimages bit-by-bit, starting from the least significant bit, effectively bypassing the cipher's intended complexity.

2. Almost Half-Involution

The authors identified that IDEA (with a null key) can be modeled as a composition of functions: $C = \sigma \circ \theta \circ \sigma^{-1}(P)$. Here, $\sigma$ and $\sigma^{-1}$ are related complex transformations, while $\theta$ is a computationally "light" function. This structural symmetry, termed an "almost half-involution," allows for the discovery of input/output pairs with identical differences ($\Delta P = \Delta C$) with a probability of $2^{-32}$. This is a massive deviation from the $2^{-64}$ probability expected from a secure 64-bit block cipher.

Experimental Results

By combining these structural insights with the Birthday Paradox, the authors developed collision-finding algorithms for various hashing modes. A critical finding is that these attacks are independent of the round count; because they exploit the underlying algebraic structure of the operations rather than differential paths, adding more rounds to IDEA does not mitigate the vulnerability.

The following table summarizes the complexities of the attacks discovered:

Mode Hash Size Attack Type Complexity
Davies-Meyer 64-bit Full Hash Collision $2^{16.13}$
Hirose 128-bit Free-start Collision $2^{1}$ (Instant)
Abreast-DM 128-bit Free-start Collision $2^{48.13}$
Tandem-DM 128-bit Free-start Collision $2^{48.13}$
MJH-Double 128-bit Semi-free-start Collision $2^{32.26}$

Note: A "free-start" collision allows the attacker to choose the initial internal state. While less severe than a full collision from a fixed IV, it invalidates the security proofs of the underlying compression function.

Conclusion

The findings serve as a definitive answer to the 20-year-old question of IDEA's security in hashing modes. The practical attacks on Abreast-DM and Tandem-DM demonstrate that IDEA is unsuitable for these constructions. This research underscores a vital lesson in cryptographic design: the presence of even a single weak-key class can render a block cipher entirely insecure for use in hash functions, as adversaries will invariably steer the computation toward those weakened states. Future work should continue to evaluate other legacy ciphers for similar structural vulnerabilities when used in non-traditional modes.

Summary updated

BibTeX
@inproceedings{wei2012security,
  author = {Lei Wei and Thomas Peyrin and Przemyslaw Sokolowski and San Ling and Josef Pieprzyk and Huaxiong Wang},
  title = {{On the (In)Security of IDEA in Various Hashing Modes}},
  booktitle = {Fse},
  year = {2012},
  doi = {10.1007/978-3-642-34047-5\_10},
}
Figure