Cryptographic hash functions from expander graphs

Denis Xavier Charles, Eyal Z. Goren, Kristin E. LauterIACR ePrint 2006

Abstract

This paper introduces a novel construction for cryptographic hash functions based on the properties of expander graphs, specifically Ramanujan graphs. By interpreting input messages as directions for a non-backtracking walk on a $k$-regular graph, the authors establish a framework where the security of the hash function is provably linked to hard mathematical problems. Two primary constructions are explored: one based on Pizer’s graphs (supersingular elliptic curves and isogenies) and another based on Lubotzky-Phillips-Sarnak (LPS) graphs. The resulting functions offer a bridge between the high speed of heuristic hash functions and the formal security of number-theoretic constructions.

1. Introduction

Standard cryptographic hash functions, such as the SHA family, are designed for high-speed performance using complex bit-shuffling heuristics. While these functions are widely deployed, they lack a formal reduction to a well-studied mathematical problem. If the underlying heuristic is compromised, the security of the entire system is lost.

In contrast, "provable" hash functions are those where finding a collision is mathematically equivalent to solving a known difficult problem, such as integer factorization or the discrete logarithm problem. Historically, provable hashes have been too slow for practical use. This work addresses this efficiency gap by utilizing expander graphs—graphs that are simultaneously sparse and highly connected—to create hash functions that are both mathematically robust and computationally viable.

2. The Walk-Based Hash Construction

The fundamental mechanism proposed is to treat a graph as a map and the input message as a set of navigation instructions. The process follows three steps:

  1. Initialization: A fixed starting vertex is chosen in a $k$-regular graph.
  2. The Walk: The input message is partitioned into chunks. Each chunk determines which edge to follow to the next vertex. To prevent trivial collisions (e.g., immediately returning to a previous node), the walk is strictly "non-backtracking."
  3. The Output: The label of the final vertex reached after the walk serves as the hash value.

Because expander graphs exhibit "rapid mixing," a relatively short walk (logarithmic relative to the total number of vertices) ensures that the final destination is essentially indistinguishable from a uniform random distribution over the vertex set.

3. Ramanujan Graph Families

The authors focus on Ramanujan graphs, which are optimal expanders. Two specific families are analyzed for their cryptographic properties:

3.1 Pizer’s Graphs (Isogeny-Based)

In Pizer’s graphs, the vertices represent supersingular elliptic curves over a finite field, and the edges represent isogenies (algebraic maps) between these curves. The security of this construction rests on the Supersingular Isogeny Problem: finding a path between two specific vertices is equivalent to finding an isogeny between two curves, a problem currently considered resistant to both classical and quantum attacks.

3.2 Lubotzky-Phillips-Sarnak (LPS) Graphs

LPS graphs are Cayley graphs based on the group $PSL(2, \mathbb{F}_p)$. In this construction, the walk is computed via a series of $2 \times 2$ matrix multiplications in a finite field. Finding a collision in an LPS-based hash is equivalent to finding a short cycle (the girth) in the graph, which is a difficult problem in combinatorial group theory.

4. Performance and Security Analysis

The authors evaluated their constructions using mathematical parameters and performance benchmarks implemented in C++ using the Number Theory Library (NTL).

  • Security Levels: For Pizer’s graphs, a 256-bit prime $p$ is estimated to provide approximately 128 bits of security against known collision-finding algorithms like Pollard’s Rho.
  • Efficiency: The LPS construction is significantly faster than the Pizer construction. While Pizer’s method requires roughly $2 \log(p)$ multiplications per bit, the LPS method requires only about 7 multiplications per bit. On a 2.6GHz Opteron workstation, a walk of length 1,000 on a 1024-bit LPS graph was completed in 0.188 seconds.
  • Collision Resistance: A primary concern is the existence of short cycles. The authors provide specific conditions for the prime $p$ to ensure the graph's girth is large enough to prevent easy collisions.

5. Conclusion and Future Work

This work establishes expander graphs as a viable foundation for provable cryptography. While the LPS-based hash offers superior speed, the Pizer-based hash provides a promising avenue for post-quantum security. Future research is required to optimize isogeny computations to make the elliptic curve approach more competitive and to further investigate potential algebraic attacks against specific graph parameters. The construction remains a foundational influence on the modern field of isogeny-based cryptography.

Summary updated

BibTeX
@article{charles2006cryptographic,
  author = {Denis Xavier Charles and Eyal Z. Goren and Kristin E. Lauter},
  title = {{Cryptographic hash functions from expander graphs}},
  journal = {IACR Cryptol. ePrint Arch.},
  year = {2006},
}
Figure