Use Data-depend Function Build Message Expansion Function

ZiJie Xu, Ke XuIACR ePrint 2011

Abstract

This paper presents a novel approach to designing message expansion functions for hash functions, specifically aimed at thwarting differential attacks. By utilizing data-dependent shifts and "enhancement functions," the authors create a structure where message bits are mathematically "locked" in place when differences are introduced, significantly increasing the difficulty of finding collisions. The design ensures that any attempt to modify the message to find a collision will "fix" at least $5.5 \times n$ bits and affect at least 8 internal parameters, severely limiting an attacker's flexibility.

Introduction

In the world of cryptography, hash functions (like MD5 or SHA-1) are often broken using differential attacks. Attackers look for "differential paths"—specific patterns of changes in the input that result in the same output (a collision). A key tool for attackers is message modification, where they subtly tweak message bits to stay on a desired differential path. Current message expansion functions—the part of a hash function that stretches a small message into a larger set of words for processing—are often too "flexible." This paper aims to create a "rigid" expansion function where even tiny changes propagate uncontrollably, making it nearly impossible for an attacker to find a valid collision path.

Methodology

The authors build their expansion function using several specialized components designed to maximize rigidity and difference propagation:

  • Astrict Functions: These are mathematical constraints designed to create a one-to-one correspondence between modular differences and bitwise differences. This simplifies analysis and restricts the "freedom" an attacker has to manipulate bits.
  • Data-Dependent Equations ($F2$): The core of the system uses functions where the amount of bit-shifting is determined by the data itself. This creates a circular dependency: to change the output in a specific way, you must change the shift amount, which is tied to the very bits you are trying to manipulate.
  • Internal Hash Functions ($h1$–$h4$): Four simple internal hash functions filter lightweight collisions. These ensure that even if an attacker provides an input with very few changed bits (low Hamming weight), the internal state will still produce significant differences.
  • Enhancement Functions ($ST1, ST2$): These are built using XORed rotations to further amplify the weight of any differences introduced into the system.

System Architecture

The overall design follows a three-part construction to ensure comprehensive coverage and complexity. Part 1 utilizes the original message words directly. Part 2 processes message words through the data-dependent $F2$ functions. Part 3 utilizes the internal hash and enhancement functions to maximize the spread of differences across the expanded message.

The three-part architecture of the proposed message expansion function.

Key Results and Analysis

The proposed function produces a total of 656 words, a significantly larger and more complex expansion than standard algorithms like SHA-256 (which uses 64 words). Key security metrics include:

  • Bit Fixing: The proposed function "fixes" at least 88 cells (where a cell is $1/16$th of a word). For an $n$-bit word, this equates to $5.5 \times n$ bits that are mathematically constrained by given differences.
  • Modification Impact: Any modification to the message is guaranteed to affect at least 8 data-dependent function parameters. This aims to eliminate "tunnels"—techniques where attackers can change certain bits without affecting the rest of the differential path.
  • Collision Resistance: The internal hash functions were shown to have no collisions with a Hamming weight lower than 8, preventing "easy" low-weight attacks.

Conclusion and Future Work

While the 656-word expansion introduces computational overhead, it provides a highly rigid framework for collision resistance. The authors acknowledge that to build a practical, fast hash function, they would need to design a highly efficient "core function" (compression function) to pair with this expansion. Future work will involve integrating this expansion into a full, high-performance hashing algorithm.

Summary updated

BibTeX
@article{xu2011use,
  author = {ZiJie Xu and Ke Xu},
  title = {{Use Data-depend Function Build Message Expansion Function}},
  journal = {IACR Cryptol. ePrint Arch.},
  year = {2011},
}
Figure