arXiv:2609.31517cs.CCSep 2026

Manuscript Offprint

arXiv:2609.31517

A search-to-decision reduction for the linear code equivalence problem

Jean-François Biasse, Giacomo Micheli, Benjamin Prada, Philip Waitkevich

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

We present a polynomial-time reduction from the search variant of the linear code equivalence problem (i.e. the search for a linear isometry between the inputs) to its decisional variant. More precisely, given two linearly equivalent codes C1,C2⊆Fqn\mathcal{C}_1, \mathcal{C}_2 \subseteq \mathbb{F}_q^n, we show how to recover a linear isometry between them by making a polynomial number of queries to an oracle for decisional linear code equivalence. First, we prove that search-Permutation Code Equivalence (search-PCE – the problem of finding a permutation π∈Sn\pi \in \mathcal{S}_n mapping C1\mathcal{C}_1 to C2\mathcal{C}_2) reduces in polynomial time to PCE (i.e. the problem of deciding if there is a permutation map from C1\mathcal{C}_1 to C2\mathcal{C}_2) via at most n2n^2 oracle calls on instances of dimension kk and length at most n2(n+1)/2n^2(n+1)/2. We then extend this approach to linearly equivalent codes: we recover the permutation part of a linear isometry via at most n2n^2 calls to a Linear Code Equivalence (LCE) oracle on instances of the same size, and we give a deterministic polynomial-time algorithm to recover the diagonal part once this permutation is known. Altogether, this yields a polynomial-time procedure to recover a linear isometry from an oracle for decisional LCE. From a linear-algebraic perspective, our results provide an explicit reconstruction of a monomial equivalence between two matrix representations from oracle access to the corresponding orbit membership problem.

1 Introduction

Given two linear codes C1\mathcal{C}_1 and C2\mathcal{C}_2 of length nn over a finite field Fq\mathbb{F}_q, the Permutation Code Equivalence problem (PCE) consists in finding a permutation map π∈Sn\pi \in \mathcal{S}_n such that π(C1)=C2\pi(\mathcal{C}_1) = \mathcal{C}_2. If we are given the image of a basis of C1\mathcal{C}_1 via π\pi, this problem is computationally easy. On the other hand, if we only know an arbitrary basis of π(C1)\pi(\mathcal{C}_1), then there is no known efficient algorithm for solving general instances of PCE. In most of the literature, PCE is phrased in its decisional variant: given C1\mathcal{C}_1 and C2\mathcal{C}_2, decide whether there is π∈Sn\pi \in \mathcal{S}_n such that C2=π(C1)\mathcal{C}_2 = \pi(\mathcal{C}_1). On the other hand, the search variant of PCE requires us to find π\pi such that π(C1)=C2\pi(\mathcal{C}_1) = \mathcal{C}_2. In the following, we call these two variants PCE and search-PCE. PCE can be generalized to general linear isometries between codes. The Linear Code Equivalence Problem (LCE) is the task of deciding if there is a linear isometry τ∈Fq∗n×Sn\tau \in \mathbb{F}_q^{*n} \times \mathcal{S}_n such that τ(C1)=C2\tau(\mathcal{C}_1) = \mathcal{C}_2, while the most generic variant of the code equivalence

*Department of Mathematics and Statistics, University of South Florida, Tampa, FL 33620 USA. E-mail: {biasse,gmicheli,bprada,phillipwaitkevich}@usf.edu.

†^{\dagger}An extended abstract of this paper was presented at the 2023 IEEE ISIT conference.

problem consists in deciding if there is a field isomorphism α∈Aut(Fq)\alpha \in \text{Aut}(\mathbb{F}_q) and τ∈Fq∗n×Sn\tau \in \mathbb{F}_q^{*n} \times \mathcal{S}_n such that τ(α(C1))=C2\tau(\alpha(\mathcal{C}_1)) = \mathcal{C}_2. In the rest of this paper, we focus on PCE and LCE. Interestingly, the available algorithms for the resolution of the most generic instances of the code equivalence problem actually do it by solving the search variant. From a linear-algebraic point of view, the problem is to reconstruct a monomial transformation between two matrix representations of equivalent codes; our arguments exploit repeated or proportional column structure and, in the linear case, the behavior of supports under row reduction. In particular, the code equivalence problem can be viewed as a matrix equivalence problem under the action of the monomial group, combining left multiplication by GLk(Fq)\text{GL}_k(\mathbb{F}_q) and right multiplication by permutation and diagonal matrices. Our reductions exploit structural properties of this action, such as the behavior of repeated or proportional columns and the invariance of row-reduced forms, to reconstruct a representative of the equivalence class. In this paper, we show that search-PCE can be efficiently solved by using an oracle to PCE, and that search-LCE can be efficiently solved by using an oracle to LCE.

The Code Equivalence problem in cryptography The code equivalence problem intersects cryptography based on error correcting codes (a.k.a “code-based cryptography”). In the McEliece cryptosystem [1], the private key is a code C1C_1, and the public key is C2=π(C1)C_2 = \pi(C_1) where π\pi is a secret permutation. Note that being able to solve PCE (or search-PCE) does not imply being able to break the McEliece cryptosystem because in this case, we are only given C2C_2. If potential candidates for C1C_1 are given to us (for example in the context of a key exposure attack), then we can decide if any of them is the private key by solving PCE, but in general there are too many possible secret keys to efficiently reduce the cryptanalysis of McEliece to PCE (or search-PCE).

A Zero-Knowledge protocol due to Girault [2] first used PCE as a hardness assumption. This identification scheme both relies on the hardness of the binary syndrome decoding problem and of search-PCE. This scheme was later improved by Sendrier and Simos [3, Sec. 4.2]. Biasse, Micheli, Persichetti and Santini described the identification (and digital signature) scheme LESS [4] which uses search-PCE (or search-LCE) as its sole security assumption (through a rigorous security proof). From a high level perspective, the task of solving search-PCE (resp. search-LCE) (and thus breaking LESS) can be viewed as inverting the group action of Sn\mathcal{S}_n (resp. Fq∗n×Sn\mathbb{F}_q^{*n} \times \mathcal{S}_n) on the set of linear codes equivalent to a given code C1\mathcal{C}_1. From this perspective, cryptography based on the hardness of search-PCE and search-LCE falls under the umbrella of “hard homogeneous spaces” described by Couveignes [5], and “Cryptographic Group Actions” (see [6]). Hence, many results applying to this family of schemes, including follow-up works from the isogeny-based scheme CSIDH [7], can be used to enhance code equivalence-based cryptosystems. This way, practical improvements to LESS were described in [8], as well as advanced signature functionalities (ring signatures, identity based signatures) enabled by the cryptographic group action framework [9].

Prior work on the resolution of the code equivalence problem In 1982, Leon [10] described an algorithm to solve search-PCE that relies on the following observation: since π\pi preserves the Hamming weight of a codeword, we can attempt to draw pairs c,π(c)c, \pi(c) by computing the sets of weight-w codewords in C1C_1 and C2C_2 and matching them when they have the same multisets of entries. With enough valid pairs, π\pi can be recovered. The complexity of Leon's algorithm is exponential, but this approach seems to offer the best performance in practice in the general case. Since the publication of cryptosystems based on the code equivalence problem, some follow-up works brought practical improvements to Leon's method [11, 12] to solve search-PCE and search-LCE without changing the overall complexity class.

Besides Leon’s algorithm and related works, algorithms exist to solve search-PCE efficiently for codes of small hull (the intersection of a code with its dual). For example, Sendrier’s Support Splitting Algorithm (SSA [13]) relies on the concept of a signature function that takes a code as input, and returns the same value for two equivalent codes. Sendrier’s signature function is based on the weight enumerator function whose calculation takes time O~(n3+qhn2)\tilde{O}(n^3 + q^h n^2) where hh is the dimension of the hull. In the case of a hull of small dimension, this algorithm can be efficient, however, if a code is weakly self-dual, then the complexity is exponential. Note that SSA can be extended to the resolution of search-LCE by considering the closure of the input codes and applying SSA. However, when q≥5q \geq 5, the closure of a code is always weakly self-dual, which means that for the vast majority of instances of search-LCE, SSA has exponential complexity. The work of Bardet, Otmani, and Saheed-Taha [14] shows that when h=0h = 0, an instance of search-PCE efficiently reduces to an instance of the Weighted Graph Isomorphism (WGI) problem. The resulting complexity is in O(n2.373CWGI(n))O(n^{2.373}C_{\text{WGI}}(n)), where CWGI(n)C_{\text{WGI}}(n) denotes the cost of solving WGI in a graph of size nn, which can be done in quasi-polynomial time with Babai’s algorithm [15]. An algebraic approach was also investigated in [16] where the code equivalence problem was reduced to the resolution of a system of quadratic equations. With trivial hull, the system can be solved efficiently via the block linearization technique, but in the case of an arbitrary hull, the complexity appears to be exponential. The deterministic algorithm with the best asymptotic run time to solve PCE is due to Babai [17], and it runs in time 2n+o(n+q)2^{n+o(n+q)}. This work was generalized by Bennett et al. [18] who presented a 2n+o(n+q)2^{n+o(n+q)}-time deterministic algorithm for search-LCE, as well as randomized 2n/2+o(n+q)2^{n/2+o(n+q)}-time algorithms for search-PCE and search-LCE, and 2n/3+o(n+q)2^{n/3+o(n+q)}-time quantum algorithms for search-PCE and search-LCE.

In terms of complexity theory, it is worth noting that code equivalence is unlikely to be NP-complete. More specifically, Petrank and Roth showed in [19] that if code equivalence were NP-complete, then the polynomial hierarchy would collapse at the first level, which is widely believed to be untrue. In the same paper, they showed that the Graph Isomorphism (GI) problem efficiently reduced to PCE. Until Babai's groundbreaking work on GI [15], this was often used to justify the alleged hardness of PCE. However, this is no longer relevant to gauge the computational hardness of PCE (except in the very special case of h = 0, an efficient solution to GI does not seem to imply an efficient solution to PCE).

Finally, it is worth noting that generalizations of the code equivalence problem to rank metric codes have recently received some attention. Recent work proposed optimized methods for the resolution of the code equivalence problem in rank metric codes [20, 21], and Chou et al. suggested the use of this problem as the hardness assumption for a new identification scheme [22].

Our contribution Despite these advances, all existing algorithms for search-PCE and search-LCE operate independently of any oracle for their decisional counterparts. A natural question – standard in complexity theory but largely unaddressed for code equivalence – is whether a solver for the decisional problem can be leveraged to solve the search problem. We answer this affirmatively.

First, we prove that search-PCE reduces to PCE with a polynomial number of oracle calls.

Theorem 1. There is a polynomial-time algorithm to solve search-PCE on input [n,k,d]q[n, k, d]_q codes that uses at most n2n^2 calls to an oracle for PCE on input codes of dimension kk and length at most n2(n+1)/2n^2(n+1)/2 over Fq\mathbb{F}_q.

Second, we prove that search-LCE reduces to LCE in the sense that one can recover the permutation part of a linear isometry with a polynomial number of oracle calls.

Theorem 2. There is a polynomial-time algorithm which, on input two linearly equivalent [n,k,d]q[n, k, d]_q codes, recovers a permutation π∈Sn\pi \in S_n such that there exists v∈Fq∗nv \in \mathbb{F}_q^{*n} with τ=(π,v)\tau = (\pi, v) satisfying τ(C1)=C2\tau(C_1) = C_2, using at most n2n^2 calls to an oracle for LCE on input codes of dimension kk and length at most n2(n+1)/2n^2(n+1)/2 over Fq\mathbb{F}_q.

Finally, given such a permutation π\pi, we prove that the diagonal part v can be recovered deterministically in polynomial time. This yields a polynomial-time procedure to recover a full linear isometry from an oracle for LCE. The deterministic reconstruction of the diagonal part of a monomial transformation from linear-algebraic data is a key technical contribution of this work. While a standard approach based on solving linear systems is known, it is inherently heuristic in general. We replace it with a method based on row-reduced echelon forms and connectivity properties of column supports, yielding a fully deterministic procedure.

This paper is organized as follows. Section 2 introduces the necessary background and notation. Section 3 proves Theorem 1, namely the reduction from search-PCE to PCE. Section 4 proves the corresponding reduction for LCE at the level of the permutation part: given two linearly equivalent codes, it shows how to recover a permutation π∈Sn\pi \in S_n for which there exists v∈Fq∗nv \in \mathbb{F}_q^{*n} such that (π,v)(\pi, v) maps one code to the other. Section 5 then addresses the recovery of the diagonal part. After recalling a folklore heuristic approach and a simpler projective-frame-based special case for context, we present a new deterministic polynomial-time method to recover vv from π\pi, thereby completing the reconstruction of a full linear isometry.

Relation to prior work. A preliminary version of this work appeared as an extended abstract in the proceedings of ISIT 2023 [23]. That version establishes the search-to-decision reduction for permutation code equivalence, corresponding to the results of Section 3 of the present paper. The current manuscript extends these results in several directions. In particular, we develop a reduction for linear code equivalence, which requires additional techniques to recover the diagonal part of the transformation once the permutation is known. This leads to the deterministic reconstruction method of Section 5, which has no analogue in the conference version.

References (16)