The Parallel Reversible Pebbling Game: Analyzing the Post-Quantum Security of iMHFs

Abstract

The classical (parallel) black pebbling game is a useful abstraction which allows us to analyze the resources (space, space-time, cumulative space) necessary to evaluate a function ff with a static data-dependency graph GG. Of particular interest in the field of cryptography are data-independent memory-hard functions fG,Hf_{G,H} which are defined by a directed acyclic graph (DAG) GG and a cryptographic hash function HH. The pebbling complexity of the graph GG characterizes the amortized cost of evaluating fG,Hf_{G,H} multiple times as well as the total cost to run a brute-force preimage attack over a fixed domain X\mathcal{X}, i.e., given y{0,1}y \in \{0,1\}^* find xXx \in \mathcal{X} such that fG,H(x)=yf_{G,H}(x)=y. While a classical attacker will need to evaluate the function fG,Hf_{G,H} at least m=Xm=|\mathcal{X}| times a quantum attacker running Grover\u27s algorithm only requires O(m)\mathcal{O}(\sqrt{m}) blackbox calls to a quantum circuit CG,HC_{G,H} evaluating the function fG,Hf_{G,H}. Thus, to analyze the cost of a quantum attack it is crucial to understand the space-time cost (equivalently width times depth) of the quantum circuit CG,HC_{G,H}. We first observe that a legal black pebbling strategy for the graph GG does not necessarily imply the existence of a quantum circuit with comparable complexity --- in contrast to the classical setting where any efficient pebbling strategy for GG corresponds to an algorithm with comparable complexity for evaluating fG,Hf_{G,H}. Motivated by this observation we introduce a new parallel reversible pebbling game which captures additional restrictions imposed by the No-Deletion Theorem in Quantum Computing. We apply our new reversible pebbling game to analyze the reversible space-time complexity of several important graphs: Line Graphs, Argon2i-A, Argon2i-B, and DRSample. Specifically, (1) we show that a line graph of size NN has reversible space-time complexity at most O(N1+2logN)\mathcal{O}\left(N^{1+\frac{2}{\sqrt{\log N}}}\right). (2) We show that any (e,d)(e,d)-reducible DAG has reversible space-time complexity at most O(Ne+dN2d)\mathcal{O}(Ne+dN2^d). In particular, this implies that the reversible space-time complexity of Argon2i-A and Argon2i-B are at most O(N2loglogN/logN)\mathcal{O}(N^2 \log \log N/\sqrt{\log N}) and O(N2/logN3)\mathcal{O}(N^2/\sqrt[3]{\log N}), respectively. (3) We show that the reversible space-time complexity of DRSample is at most O(N2loglogN/logN)\mathcal{O}(N^2 \log \log N/\log N). We also study the cumulative pebbling cost of reversible pebblings extending a (non-reversible) pebbling attack of Alwen and Blocki on depth-reducible graphs

    Similar works