A Cryptographic Hash Function from Markoff Triples

Elena Fuchs, Kristin E. Lauter, Matthew Litman, Austin TranarXiv 2021

Introduction

In the search for post-quantum cryptographic primitives, expander graph cryptography has emerged as a compelling field. The security of these systems typically rests on the difficulty of the path-finding problem: given two nodes in a large, highly connected graph, find a path between them. While previous constructions like LPS Cayley graphs have been compromised, and Supersingular Isogeny Graphs are under intense scrutiny, there is a clear need for diverse mathematical foundations. This paper proposes a new candidate: the Markoff graph, derived from the Markoff equation: $$x_1^2 + x_2^2 + x_3^2 - 3x_1x_2x_3 = 0 \pmod p$$

Visualizations of Markoff graphs modulo p, showing the complex connectivity patterns that underpin the hash function's security.

The Markoff Hash Function

The proposed hash function operates by interpreting an input bit string as a sequence of instructions for a walk on the Markoff graph modulo a large prime $p$.

  1. Graph Construction: The vertices are the set of triples $(x_1, x_2, x_3)$ that satisfy the Markoff equation modulo $p$. The edges are defined by three involutions, $R_1, R_2, R_3$, which transform a triple by fixing two elements and changing the third (e.g., $R_3(x_1, x_2, x_3) = (x_1, x_2, 3x_1x_2 - x_3)$).
  2. Hashing Process: Starting from a canonical base point such as $(1, 1, 1)$, each bit of the input determines which involution to apply next. The final vertex reached after processing the entire input serves as the hash value.

Security and the BGS Algorithm

The security of the Markoff hash function depends on the hardness of finding a path between the starting point and the output vertex. The authors analyze the BGS algorithm (Bourgain, Gamburd, and Sarnak), originally developed to prove graph connectivity, as a potential attack vector.

A key structural insight is the concept of the "Cage". Most vertices in the Markoff graph belong to this large, well-connected component. The difficulty of the BGS algorithm lies in the "Opening" and "Middle Game" phases—moving a vertex from a low-order state into the cage. Once in the cage, the "End Game" of connecting two vertices is relatively straightforward.

Empirical Complexity Analysis

To evaluate the security margin, the authors performed extensive simulations using SageMath 9.1 on primes up to $100,000$. Their analysis suggests a heuristic complexity for the BGS algorithm of $O(p \log \log p)$.

A log-log plot of the average time taken by the BGS path-finding algorithm versus the prime p, demonstrating the O(p) heuristic complexity.

Since the total number of vertices in the graph is approximately $O(p^2)$, an attack complexity of $O(p)$ represents a "square root" security level. For a target security level equivalent to SHA-256, the authors recommend using a prime $p \approx 2^{128}$. This would make the $O(p)$ path-finding attack computationally infeasible.

Conclusion and Future Directions

The Markoff hash function presents a promising new direction for graph-based cryptography. While the $O(p)$ complexity provides a strong heuristic security guarantee, several open questions remain. The "expander" property of these graphs, while strongly conjectured, has not been fully proven. Additionally, further research is required to characterize the distribution of short cycles to ensure robust collision resistance. For practical implementation, the authors suggest avoiding "smooth" primes (where $p^2 - 1$ has many small factors) to ensure optimal connectivity and path-finding difficulty.

Summary updated

BibTeX
@misc{fuchs2021cryptographic,
  author = {Elena Fuchs and Kristin E. Lauter and Matthew Litman and Austin Tran},
  title = {{A Cryptographic Hash Function from Markoff Triples}},
  year = {2021},
  eprint = {2107.10906},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2107.10906},
}
Figure