Rubik’s cube for cryptographers

Apart from ACM CCS, London has something else to offer this week. On Wednesday, the London Mathematical Society organised the Computer Science Colloquium, which was devoted to cryptography. This post will highlight the talk of Christophe Petit from University of Birmingham based on his work in group-based cryptography.

The Rubik’s cube is presumably the most popular mathematical puzzle. It is also a great example of a non-abelian group. Namely, each cube move represents a group element. Solving the Rubik’s puzzle with the minimal number of moves is equivalent to the following problem. Given a non-abelian group \(G\), its generating set \(S\) and a group element \(h\), find a “short” factorisation of \(h\), i.e.

$$h = \prod_{i=1}^n g_i$$

where \(n\) is small with relation to the group order. Babai conjectured that any element of a simple group admits a short factorisation. The constructive proof of this conjecture are known for specific families of groups, but it is believed to be hard in generic matrix groups. Remember, cryptography is where hardness is. Given the Rubik’s problem, one can build a hash function such that for a message \(m=m_1|m_2|…|m_n\) its hash is equal to

$$H(m) = g_{m_1} \cdot g_{m_2} \dots g_{m_n}.$$

The preimage resistance of \(H\) relies on the hardness of the constructive proof of the Rubik’s problem.

Christophe demonstrated several examples of such hash functions including Zemor’91, Tillich-Zemor’94, Charles-Goren-Lauter’09, Petit-Lauren-Quisquater’08. In addition, he surveyed the most common frameworks for attacking Rubik’s problem. For example, subgroup and lifting techniques led to efficient attacks on the aforementioned hash functions although small parameter changes can help to avoid them.

Surprisingly, Rubik’s problem is also useful outside cryptography, namely in quantum computing. Let \(f\) be a function whose efficient representation is known for classical computers. To implement \(f\) in a quantum computer one should find such a quantum circuit \(C\) that simulates \(f\) and has a short factorisation into universal quantum gates

$$C = \prod U_i,$$

where \(C\) and \(U_i\) can be represented by unitary matrices.

As a summary, Rubik’s cube is not just a toy, but an interesting source of inspiration for cryptographers. Moreover, it can unite two distant scientific communities in order to invent new techniques while solving each other’s problems.