Introduction
Code-based cryptography emerged at the end of the last century as a promising approach to building cryptographic schemes capable of resisting both classical and quantum attacks. In response to the rapid recent advances in quantum computing, NIST has standardized the first post-quantum schemes and has selected the code-based KEM HQC for standardization [43 ] , making code-based cryptography a central area of research in the field.
The first code-based cryptographic scheme dates back to 1978. It was introduced by McEliece and based on Goppa codes [42 ] . A longstanding issue was that McEliece’s original proposal was affected by the drawback of requiring large key sizes. Later, Niederreiter introduced a dual formulation of the scheme and proposed instantiating it with generalized Reed–Solomon (GRS) codes [45 ] . The higher decoding capacity of GRS codes compared to Goppa ones led to a significant reduction of the key size for a similar claimed security level. However, the strong algebraic structure of GRS codes turns out to be difficult to mask and, in 1992, Sidelnikov and Shestakov proposed a devastating attack on McEliece instantiated with GRS codes [55 ] . Subsequent proposals attempted to retain the advantages of structured codes while preventing the recovery of their underlying algebraic structure. In particular, Berger and Loidreau proposed a variant based on subcodes of GRS codes [7 ] , which was subsequently broken by Wieschebrink [59 ] . Other variants of McEliece attempting to use generalized Reed–Solomon codes with an adequate masking such as [4 , 6 , 31 , 56 , 57 , 58 ] were all subject to efficient attacks [12 , 13 , 14 , 16 ] . Similarly, McEliece variants based on algebraic geometry codes and their subcodes proposed in [30 ] were shown to be vulnerable to polynomial-time structural attacks [15 ] . Other proposals relied on structured alternant codes. However, several of these variants were also shown to be vulnerable to structural attacks [5 , 18 , 49 ] .
Another approach to obtain more compact keys has been to consider rank-metric codes instead of Hamming-metric ones. In 1991 the first rank-metric McEliece-like scheme (GPT) was proposed. It builds on Gabidulin codes [20 ] , the rank-metric analogues of Reed–Solomon codes. Because of the strong algebraic structure of these codes, the original GPT scheme and most of its variants [19 , 21 , 22 , 34 , 37 , 51 , 52 , 53 ] were (at least partially) broken, mainly by the attacks of Gibson [24 , 25 ] , Overbeck [50 ] and their extensions [8 , 9 , 10 , 11 , 23 , 48 ] .
Linearized Reed–Solomon codes are optimal sum-rank-metric codes that generalize both Reed–Solomon and Gabidulin codes, making them natural candidates for building post-quantum code-based primitives [46 , 54 ] . They were introduced in [39 ] as a special class of evaluation codes, whose definition can therefore be reduced to the choice of suitable evaluation parameters. Since the security of code-based schemes typically relies on the difficulty of identifying the algebraic structure of the underlying code, the problem of distinguishing linearized Reed–Solomon codes from random ones has recently attracted considerable attention. An Overbeck-type distinguisher for (generalized) linearized Reed–Solomon codes was first proposed in [29 ] . More recently, [1 ] addressed the distinguishability problem for these codes in a broader setting. However, although these methods can identify a target code as a linearized Reed–Solomon one, none of them provides a recovery procedure for its evaluation parameters from the sole knowledge of an arbitrary generator matrix. Recovering such parameters is of particular interest since, when they are known, existing decoding algorithms allow one to efficiently decode linearized Reed–Solomon codes up to half their minimum distance. Thus, structure recovery could potentially turn a structural distinguisher into an effective decoding attack. A first partial attempt in this direction was proposed in [28 ] . However, this strategy is not fully general, as it requires partial knowledge of the code’s evaluation parameters. In particular, an attacker with access only to a masked generator matrix must first guess some of the code’s parameters to carry out the attack, introducing an additional exponential computational cost.
Our contribution
In this paper, we fill in this gap by proposing a polynomial-time procedure for a full structure recovery of the evaluation parameters of linearized Reed–Solomon codes, starting from a public masked generator matrix. First, we show that, for codes over the finite field F q m \mathbb{F}_{q^m} F q m with dimension k < m k < m k < m , an Overbeck-type attack, combined with a suitable manipulation of the public matrix, allows one to recover the evaluation parameters of these codes. For larger dimensions, we provide a full structure recovery as long as each block of the sum-rank code has length m m m . Denoting by N N N the length of the code and by ω \omega ω the complexity exponent of linear algebra, our algorithm succeeds in recovering the evaluation parameters in O ( N ω + 1 ) O(N^{\omega+1}) O ( N ω + 1 ) operations in F q m \mathbb{F}_{q^m} F q m and O ( N 3 ) O(N^3) O ( N 3 ) applications of an automorphism of F q m \mathbb{F}_{q^m} F q m . More fine-grained complexity formulas are given in the core of the text.
Note that our procedures address the structure recovery of linearized Reed–Solomon codes, while an apparently broader notion called generalized linearized Reed–Solomon codes was introduced in [28 ] . As a byproduct, we show in Theorem 2 that both notions are strictly equivalent, hence focusing on linearized Reed–Solomon codes is not restrictive at all.
Preliminaries
Context and notation
Throughout this paper, q q q denotes a prime power, F q \mathbb{F}_q F q denotes a finite field with q q q elements, and F q m \mathbb{F}_{q^m} F q m denotes an extension of degree m m m . Let σ \sigma σ be a generator of the Galois group Gal ( F q m / F q ) \operatorname{Gal}(\mathbb{F}_{q^m}/\mathbb{F}_q) Gal ( F q m / F q ) . Recall that σ m = id F q m \sigma^m = \operatorname{id}_{\mathbb{F}_{q^m}} σ m = id F q m and that there exists an integer s s s with gcd ( s , m ) = 1 \gcd(s,m) = 1 g cd( s , m ) = 1 such that σ ( a ) = a q s \sigma(a) = a^{q^s} σ ( a ) = a q s for every a ∈ F q m a \in\mathbb{F}_{q^m} a ∈ F q m . Throughout, we regard σ \sigma σ as fixed, although it is not assumed to be known a priori , and omit it from the notation whenever this does not cause ambiguity. As we shall see at the end of § 2.2 , σ \sigma σ is the first parameter to be determined.
Vectors will be denoted with lower case bold font letters such as a , b \mathbf{a}, \mathbf{b} a , b while matrices are denoted with upper case letters A , B A, B A , B . Following the usual practice in coding theory, vectors are rows. Given a matrix A ∈ F q m u × v A \in\mathbb{F}_{q^m}^{u \times v} A ∈ F q m u × v , the row space of A A A is denoted rowsp ( A ) ⊂ F q m v \operatorname{rowsp}(A) \subset\mathbb{F}_{q^m}^v rowsp ( A ) ⊂ F q m v .
Throughout this paper, we only consider F q m \mathbb{F}_{q^m} F q m -linear codes, i.e. , a code C C C of dimension k k k over F q m \mathbb{F}_{q^m} F q m is a k k k -dimensional F q m \mathbb{F}_{q^m} F q m -linear subspace of F q m n \mathbb{F}_{q^m}^n F q m n endowed with a metric. In the following, we will in particular denote a k k k -dimensional rank-metric code over F q m \mathbb{F}_{q^m} F q m as an [ n , k ] q m / q [n,k]_{q^m/q} [ n , k ] q m / q code. We further recall that the dual code of C C C is the code C ⊥ : = { v ∈ F q m n : v ⋅ c = 0 , for all c ∈ C } C^\perp:= \{\mathbf{v} \in\mathbb{F}_{q^m}^n : \mathbf{v} \cdot\mathbf{c} = 0,\ \text{for all } \mathbf{c} \in C\} C ⊥ := { v ∈ F q m n : v ⋅ c = 0 , for all c ∈ C } , where ⋅ \cdot ⋅ denotes the standard inner product on F q m n \mathbb{F}_{q^m}^n F q m n .
Gabidulin codes and Overbeck’s distinguisher
Gabidulin codes were introduced independently by Delsarte in [17 ] and by Gabidulin in [20 ] , and later generalized in [32 ] . They form a special class of rank-metric codes that can be viewed as the q q q -analogue of Reed–Solomon codes.
Definition 1 (Evaluation vector). A vector b = ( b 1 , … , b n ) ∈ F q m n \mathbf{b}=(b_1,\ldots,b_n)\in\mathbb{F}_{q^m}^n b = ( b 1 , … , b n ) ∈ F q m n is an evaluation vector if its components are F q \mathbb{F}_q F q -linearly independent. In particular, this forces n ≤ m n\leq m n ≤ m .
Definition 2 (Generalized Gabidulin code). Let b = ( b 1 , … , b n ) ∈ F q m n \mathbf{b}=(b_1,\ldots,b_n)\in\mathbb{F}_{q^m}^n b = ( b 1 , … , b n ) ∈ F q m n be an evaluation vector and let 1 ≤ k ≤ n 1\leq k\leq n 1 ≤ k ≤ n . The generalized Gabidulin code, Gab k , σ ( b ) \operatorname{Gab}_{k,\sigma}(\mathbf{b}) Gab k , σ ( b ) , with evaluation vector b = ( b 1 , … , b n ) \mathbf{b}=(b_1,\ldots,b_n) b = ( b 1 , … , b n ) and of dimension k k k over F q m \mathbb{F}_{q^m} F q m is the code generated by the Moore matrix
Moore k ( b ) : = ( b 1 ⋯ b n σ ( b 1 ) ⋯ σ ( b n ) ⋮ ⋮ σ k − 1 ( b 1 ) ⋯ σ k − 1 ( b n ) ) . \operatorname{Moore}_k(\mathbf{b}):=
\begin{pmatrix}
b_1 & \cdots& b_n\\
\sigma(b_1) & \cdots& \sigma(b_n)\\
\vdots& & \vdots\\
\sigma^{k-1}(b_1) & \cdots& \sigma^{k-1}(b_n)
\end{pmatrix}. Moore k ( b ) := b 1 σ ( b 1 ) ⋮ σ k − 1 ( b 1 ) ⋯ ⋯ ⋯ b n σ ( b n ) ⋮ σ k − 1 ( b n ) .
The first distinguisher for Gabidulin codes is due to Overbeck, who used it to attack the Gabidulin-based version of the McEliece cryptosystem (GPT) [50 ] . This distinguisher exploits the dimension-growth behavior of successive σ \sigma σ -sums, or q s q^s q s -sums, to distinguish Gabidulin codes from random linear codes and was subsequently extended to other code-based cryptosystems and code families, see e.g., [8 , 10 , 11 , 23 , 27 , 48 ] . We are particularly interested in its application to generalized Gabidulin codes.
Let s s s be as above, so that σ ( a ) = a q s \sigma(a)=a^{q^s} σ ( a ) = a q s for every a ∈ F q m a\in\mathbb{F}_{q^m} a ∈ F q m . For a rank-metric code C ⊆ F q m n C\subseteq\mathbb{F}_{q^m}^n C ⊆ F q m n and a positive integer i i i , we define its i i i -th q s q^s q s -sum by
Λ i ( s ) ( C ) : = C + σ ( C ) + ⋯ + σ i ( C ) . \Lambda_i^{(s)}(C):=C+\sigma(C)+\cdots+\sigma^i(C). Λ i ( s ) ( C ) := C + σ ( C ) + ⋯ + σ i ( C ) .
The following result can be obtained by adapting [50 Lemma 5.1] to generalized Gabidulin codes, see [26 Theorem 4.8] .
Proposition 1. Let C = Gab k , σ ( b ) ⊆ F q m n C=\operatorname{Gab}_{k,\sigma}(\mathbf{b})\subseteq\mathbb{F}_{q^m}^n C = Gab k , σ ( b ) ⊆ F q m n be a generalized Gabidulin code of dimension k < n k<n k < n . For every positive integer i ≤ n − k i\leq n-k i ≤ n − k , we have
dim ( Λ i ( s ) ( C ) ) = k + i . \dim\left(\Lambda_i^{(s)}(C)\right)=k+i. dim ( Λ i ( s ) ( C ) ) = k + i .
In contrast, the q s q^s q s -sums of random codes typically exhibit faster dimension growth. This behavior is known for standard Gabidulin codes [10 Proposition 1] and naturally extends to generalized Gabidulin codes. Thus, the dimension growth of the q s q^s q s -sums provides a natural analogue of the classical Overbeck distinguisher for generalized Gabidulin codes. The precise probability estimates depend on the code parameters and must be established for the chosen setting.
Let k < n k<n k < n and let G G G be a generator matrix of the generalized Gabidulin code C ⊆ F q m n C\subseteq\mathbb{F}_{q^m}^n C ⊆ F q m n . Then, an Overbeck-type attack allows one to recover an evaluation vector b ∈ F q m n \mathbf{b}\in\mathbb{F}_{q^m}^n b ∈ F q m n such that C = rowsp ( Moore k ( b ) ) C=\operatorname{rowsp}(\operatorname{Moore}_k(\mathbf{b})) C = rowsp ( Moore k ( b )) . The procedure is analogous to that adopted in [50 ] for standard Gabidulin codes. Note that first one has to determine the correct homomorphism σ \sigma σ used to define C C C . This can be achieved by applying Proposition 1 to C C C for i = 1 i=1 i = 1 , i.e., by computing dim ( Λ 1 ( s ) ( C ) ) \dim\left(\Lambda_1^{(s)}(C)\right) dim ( Λ 1 ( s ) ( C ) ) for each 1 ≤ s < m 1\leq s<m 1 ≤ s < m with gcd ( s , m ) = 1 \gcd(s,m)=1 g cd( s , m ) = 1 , until one finds an s s s for which dim ( Λ 1 ( s ) ( C ) ) = k + 1 \dim\left(\Lambda_1^{(s)}(C)\right)=k+1 dim ( Λ 1 ( s ) ( C ) ) = k + 1 . Note that both s s s and m − s m-s m − s pass this test, because Gab k , σ ( b ) = Gab k , σ − 1 ( σ k − 1 ( b ) ) \operatorname{Gab}_{k,\sigma}(\mathbf{b})=\operatorname{Gab}_{k,\sigma^{-1}}\left(\sigma^{k-1}(\mathbf{b})\right) Gab k , σ ( b ) = Gab k , σ − 1 ( σ k − 1 ( b ) ) . Either choice works, so one can simply select one of the two values obtained. With the selected value of s s s , Proposition 1 implies that Λ n − k − 1 ( s ) ( C ) = Gab n − 1 , σ ( b ′ ) \Lambda_{n-k-1}^{(s)}(C)=\operatorname{Gab}_{n-1,\sigma}(\mathbf{b}') Λ n − k − 1 ( s ) ( C ) = Gab n − 1 , σ ( b ′ ) for some b ′ ∈ F q m n \mathbf{b}'\in\mathbb{F}_{q^m}^n b ′ ∈ F q m n . Since Gab n − 1 , σ ( b ′ ) \operatorname{Gab}_{n-1,\sigma}(\mathbf{b}') Gab n − 1 , σ ( b ′ ) has codimension one, an evaluation vector of C C C can then easily be computed as a generator of the dual of Gab n − 1 , σ ( b ′ ) \operatorname{Gab}_{n-1,\sigma}(\mathbf{b}') Gab n − 1 , σ ( b ′ ) .
Skew polynomials
Skew polynomials were originally introduced by Ore in the more general algebraic setting of [47 ] . In what follows, we recall their definition and main properties in the particular setting of finite fields. The skew polynomial ring F q m [ x ; σ ] \mathbb{F}_{q^m}[x;\sigma] F q m [ x ; σ ] is the set of polynomials over F q m \mathbb{F}_{q^m} F q m equipped with standard polynomial addition and multiplication determined by the rule
x a = σ ( a ) x , a ∈ F q m . xa=\sigma(a)x,\qquad a\in\mathbb{F}_{q^m}. x a = σ ( a ) x , a ∈ F q m .
and extended by associativity and distributivity. The general definition of skew polynomials may also involve a σ \sigma σ -derivation (see for instance [39 ] ). In the present paper we always assume it to be zero. In particular, if σ = id F q m \sigma=\operatorname{id}_{\mathbb{F}_{q^m}} σ = id F q m , then F q m [ x ; σ ] \mathbb{F}_{q^m}[x;\sigma] F q m [ x ; σ ] reduces to the standard polynomial ring F q m [ x ] \mathbb{F}_{q^m}[x] F q m [ x ] . The degree of the non-zero skew polynomial f = ∑ i f i x i f=\sum_i f_i x^i f = ∑ i f i x i is deg ( f ) : = max { i : f i ≠ 0 } \deg(f):=\max\{i:f_i\ne0\} deg ( f ) := max { i : f i = 0 } , and we adopt the convention deg ( 0 ) : = − ∞ \deg(0):=-\infty deg ( 0 ) := − ∞ for the degree of the zero polynomial. We denote by F q m [ x ; σ ] < k \mathbb{F}_{q^m}[x;\sigma]_{<k} F q m [ x ; σ ] < k the set of skew polynomials of degree less than k k k .
Remark 1. Note that F q m [ x ; σ ] \mathbb{F}_{q^m}[x;\sigma] F q m [ x ; σ ] is a non-commutative polynomial ring. However, its center is F q [ x m ] \mathbb{F}_q[x^m] F q [ x m ] (see [35 Theorem 3] ), which is isomorphic to the standard polynomial ring F q [ y ] \mathbb{F}_q[y] F q [ y ] . In particular, x m − c x^m-c x m − c is central for all c ∈ F q ⊆ F q m c\in\mathbb{F}_q\subseteq\mathbb{F}_{q^m} c ∈ F q ⊆ F q m .
Evaluating skew polynomials requires a notion of evaluation that takes their non-commutative structure into account. We introduce such a notion below. For a ∈ F q m a\in\mathbb{F}_{q^m} a ∈ F q m and a positive integer i i i , we say that
N i ( a ) : = ∏ j = 0 i − 1 σ j ( a ) N_i(a):=\prod_{j=0}^{i-1}\sigma^j(a) N i ( a ) := j = 0 ∏ i − 1 σ j ( a )
is the i i i -th partial norm of a a a , and we adopt the convention N 0 ( a ) : = 1 N_0(a):=1 N 0 ( a ) := 1 . Consider the F q \mathbb{F}_q F q -linear endomorphism
a σ : F q m ⟶ F q m , b ⟼ a σ ( b ) . a\sigma:\mathbb{F}_{q^m}\longrightarrow\mathbb{F}_{q^m},\qquad b\longmapsto a\sigma(b). aσ : F q m ⟶ F q m , b ⟼ aσ ( b ) .
The assignment x ↦ a σ x \mapsto a\sigma x ↦ aσ , together with the natural action of F q m \mathbb{F}_{q^m} F q m by scalar multiplication, respects the multiplication rule defined above. Therefore, it induces a ring homomorphism from F q m [ x ; σ ] \mathbb{F}_{q^m}[x;\sigma] F q m [ x ; σ ] to End F q ( F q m ) \operatorname{End}_{\mathbb{F}_q}(\mathbb{F}_{q^m}) End F q ( F q m ) , where multiplication in the latter is given by composition.
In particular, for a skew polynomial f = ∑ i f i x i ∈ F q m [ x ; σ ] f = \sum_i f_i x^i \in\mathbb{F}_{q^m}[x;\sigma] f = ∑ i f i x i ∈ F q m [ x ; σ ] , we define its evaluation at the endomorphism a σ a\sigma aσ as
f ( a σ ) : = ∑ i f i ( a σ ) ∘ i , f(a\sigma) := \sum_i f_i(a\sigma)^{\circ i}, f ( aσ ) := i ∑ f i ( aσ ) ∘ i ,
so that, for b ∈ F q m b \in\mathbb{F}_{q^m} b ∈ F q m , we obtain
f ( a σ ) ( b ) = ∑ i f i ( a σ ) ∘ i ( b ) = ∑ i f i N i ( a ) σ i ( b ) . f(a\sigma)(b) = \sum_i f_i(a\sigma)^{\circ i}(b) = \sum_i f_iN_i(a)\sigma^i(b). f ( aσ ) ( b ) = i ∑ f i ( aσ ) ∘ i ( b ) = i ∑ f i N i ( a ) σ i ( b ) .
Then, for a , b ∈ F q m a,b \in\mathbb{F}_{q^m} a , b ∈ F q m , we define the evaluation map for skew polynomials as
ev a , b : F q m [ x ; σ ] ⟶ F q m , f ⟼ f ( a σ ) ( b ) . \operatorname{ev}_{a,b} : \mathbb{F}_{q^m}[x;\sigma] \longrightarrow\mathbb{F}_{q^m}, \qquad f \longmapsto f(a\sigma)(b). ev a , b : F q m [ x ; σ ] ⟶ F q m , f ⟼ f ( aσ ) ( b ) .
Note, in particular, that ev a , b \operatorname{ev}_{a,b} ev a , b is F q m \mathbb{F}_{q^m} F q m -linear. Moreover, for fixed f ∈ F q m [ x ; σ ] f \in\mathbb{F}_{q^m}[x;\sigma] f ∈ F q m [ x ; σ ] and a ∈ F q m a \in\mathbb{F}_{q^m} a ∈ F q m , the map b ↦ ev a , b ( f ) b \mapsto\operatorname{ev}_{a,b}(f) b ↦ ev a , b ( f ) is F q \mathbb{F}_q F q -linear.
If b = ( b 1 , … , b n ) ∈ F q m n \mathbf{b}=(b_1,\ldots,b_n)\in\mathbb{F}_{q^m}^n b = ( b 1 , … , b n ) ∈ F q m n , we define ev a , b \operatorname{ev}_{a,\mathbf{b}} ev a , b so that
ev a , b ( f ) : = ( ev a , b 1 ( f ) , … , ev a , b n ( f ) ) , for all f ∈ F q m [ x ; σ ] . \operatorname{ev}_{a,\mathbf{b}}(f):=(\operatorname{ev}_{a,b_1}(f),\ldots,\operatorname{ev}_{a,b_n}(f)), \qquad\text{for all } f\in\mathbb{F}_{q^m}[x;\sigma]. ev a , b ( f ) := ( ev a , b 1 ( f ) , … , ev a , b n ( f )) , for all f ∈ F q m [ x ; σ ] .
More generally, given a = ( a 1 , … , a t ) ∈ F q m t \mathbf{a}=(a_1,\ldots,a_t)\in\mathbb{F}_{q^m}^t a = ( a 1 , … , a t ) ∈ F q m t and b = ( b 1 , … , b t ) ∈ F q m t \mathbf{b}=(\mathbf{b}_1,\ldots,\mathbf{b}_t)\in\mathbb{F}_{q^m}^t b = ( b 1 , … , b t ) ∈ F q m t , with b i = ( b i , 1 , … , b i , n i ) ∈ F q m n i \mathbf{b}_i=(b_{i,1},\ldots,b_{i,n_i})\in\mathbb{F}_{q^m}^{n_i} b i = ( b i , 1 , … , b i , n i ) ∈ F q m n i for 1 ≤ i ≤ t 1\leq i\leq t 1 ≤ i ≤ t , we extend the evaluation map above to the multi-point evaluation map
ev a , b ( f ) : = ( ev a i , b i , 1 ( f ) , … , ev a i , b i , n i ( f ) ) 1 ≤ i ≤ t , for all f ∈ F q m [ x ; σ ] . \operatorname{ev}_{\mathbf{a},\mathbf{b}}(f):=(\operatorname{ev}_{a_i,b_{i,1}}(f),\ldots,\operatorname{ev}_{a_i,b_{i,n_i}}(f))_{1\leq i\leq t}, \qquad\text{for all } f\in\mathbb{F}_{q^m}[x;\sigma]. ev a , b ( f ) := ( ev a i , b i , 1 ( f ) , … , ev a i , b i , n i ( f ) ) 1 ≤ i ≤ t , for all f ∈ F q m [ x ; σ ] .
We conclude this section with a classical statement on evaluations that can be seen as a skew polynomials analogue of Lagrange’s interpolation.
Lemma 1. Let n ≤ m n\leq m n ≤ m and v 1 , … , v n v_1,\ldots,v_n v 1 , … , v n be F q \mathbb{F}_q F q -linearly independent elements of F q m \mathbb{F}_{q^m} F q m . Then, for any ( w 1 , … , w n ) ∈ F q m n (w_1,\ldots,w_n)\in\mathbb{F}_{q^m}^n ( w 1 , … , w n ) ∈ F q m n , there is a unique f ∈ F q m [ x ; σ ] < n f\in\mathbb{F}_{q^m}[x;\sigma]_{<n} f ∈ F q m [ x ; σ ] < n such that ( w 1 , … , w n ) = ev 1 , v ( f ) = ( f ( σ ) ( v 1 ) , … , f ( σ ) ( v n ) ) (w_1,\ldots,w_n)=\operatorname{ev}_{1,\mathbf{v}}(f)=(f(\sigma)(v_1),\ldots,f(\sigma)(v_n)) ( w 1 , … , w n ) = ev 1 , v ( f ) = ( f ( σ ) ( v 1 ) , … , f ( σ ) ( v n )) .
Proof. See for instance [41 Lemma 2] or [33 Lemma 6] . □ \square □
Linearized Reed–Solomon codes and problem statement
Linearized Reed–Solomon codes
In this section, we recall the definition of linearized Reed–Solomon codes and give a precise formulation of the problem addressed in this paper.
Let n = ( n 1 , … , n t ) ∈ Z ≥ 0 t \mathbf{n}=(n_1,\ldots,n_t)\in\mathbb{Z}_{\ge0}^t n = ( n 1 , … , n t ) ∈ Z ≥ 0 t . We set F q m n : = F q m n 1 × ⋯ × F q m n t \mathbb{F}_{q^m}^{\mathbf{n}}:=\mathbb{F}_{q^m}^{n_1}\times\cdots\times\mathbb{F}_{q^m}^{n_t} F q m n := F q m n 1 × ⋯ × F q m n t . The sum-rank weight of v = ( v 1 , … , v t ) ∈ F q m n \mathbf{v}=(\mathbf{v}_1,\ldots,\mathbf{v}_t)\in\mathbb{F}_{q^m}^{\mathbf{n}} v = ( v 1 , … , v t ) ∈ F q m n is
wt s r k ( v ) : = ∑ i = 1 t rk F q ( v i ) , \operatorname{wt}_{\mathrm{srk}}(\mathbf{v}):=\sum_{i=1}^{t}\operatorname{rk}_{\mathbb{F}_q}(\mathbf{v}_i), wt srk ( v ) := i = 1 ∑ t rk F q ( v i ) ,
where rk F q ( v i ) \operatorname{rk}_{\mathbb{F}_q}(\mathbf{v}_i) rk F q ( v i ) denotes the dimension of the F q \mathbb{F}_q F q -span of the entries of v i \mathbf{v}_i v i . For k ≤ n 1 + ⋯ + n t k\le n_1+\cdots+n_t k ≤ n 1 + ⋯ + n t , an [ n , k ] q m / q [n,k]_{q^m/q} [ n , k ] q m / q sum-rank-metric code C C C is a k k k -dimensional F q m \mathbb{F}_{q^m} F q m -subspace of F q m n \mathbb{F}_{q^m}^{\mathbf{n}} F q m n , endowed with the sum-rank metric. In particular, we say that n \mathbf{n} n is the profile of C C C .
Linearized Reed–Solomon (LRS) codes are a special class of sum-rank-metric codes, which generalize both Reed–Solomon and Gabidulin codes. They were originally introduced in [39 ] as evaluation codes of skew polynomials. To present them, we first recall the notion of evaluation pair , which will provide the foundation for the definition of LRS codes.
Definition 3 (Evaluation pair). We say that ( a , b ) ∈ F q m t × F q m n (\mathbf{a},\mathbf{b})\in\mathbb{F}_{q^m}^{t}\times\mathbb{F}_{q^m}^{\mathbf{n}} ( a , b ) ∈ F q m t × F q m n is an evaluation pair if the norms over F q \mathbb{F}_q F q of the components of a \mathbf{a} a are non-zero and pairwise distinct, and each component of b \mathbf{b} b is an evaluation vector (see Definition 1).
In particular, the conditions on evaluation pairs impose the constraints t ≤ q − 1 t\le q-1 t ≤ q − 1 and n i ≤ m n_i\le m n i ≤ m for all 1 ≤ i ≤ t 1\le i\le t 1 ≤ i ≤ t .
For a ∈ F q m a\in\mathbb{F}_{q^m} a ∈ F q m and a positive integer k k k , we further define the diagonal matrix
D k ( a ) : = ( 1 N 1 ( a ) ⋱ N k − 1 ( a ) ) ∈ F q m k × k . D_k(a):=\begin{pmatrix}
1 & & & \\
& N_1(a) & & \\
& & \ddots& \\
& & & N_{k-1}(a)
\end{pmatrix}\in\mathbb{F}_{q^m}^{k\times k}. D k ( a ) := 1 N 1 ( a ) ⋱ N k − 1 ( a ) ∈ F q m k × k .
Definition 4 (Linearized Reed–Solomon (LRS) code). Let ( a , b ) ∈ F q m t × F q m n (\mathbf{a},\mathbf{b})\in\mathbb{F}_{q^m}^{t}\times\mathbb{F}_{q^m}^{\mathbf{n}} ( a , b ) ∈ F q m t × F q m n be an evaluation pair and let k ≤ n 1 + ⋯ + n t k\le n_1+\cdots+n_t k ≤ n 1 + ⋯ + n t be a positive integer. The [ n , k ] q m / q [n,k]_{q^m/q} [ n , k ] q m / q linearized Reed–Solomon code with evaluation pair ( a , b ) (\mathbf{a},\mathbf{b}) ( a , b ) (see Definition 3) is defined as
LRS k ( a , b ) : = { ev a , b ( f ) : f ∈ F q m [ x ; σ ] < k } . \operatorname{LRS}_k(\mathbf{a},\mathbf{b}):=\left\{\operatorname{ev}_{\mathbf{a},\mathbf{b}}(f):f\in\mathbb{F}_{q^m}[x;\sigma]_{<k}\right\}. LRS k ( a , b ) := { ev a , b ( f ) : f ∈ F q m [ x ; σ ] < k } .
A standard generator matrix for L R S k ( a , b ) \mathrm{LRS}_{k}(\mathbf{a},\mathbf{b}) LRS k ( a , b ) is the block matrix
G k ( a , b ) : = ( G 1 ∣ ⋯ ∣ G t ) G_k(\mathbf{a},\mathbf{b}) := (G_1 \mid\cdots\mid G_t) G k ( a , b ) := ( G 1 ∣ ⋯ ∣ G t )
with
G i : = ( 1 N 1 ( a i ) ⋮ N k − 1 ( a i ) ) ⏟ = D k ( a i ) ( b i , 1 ⋯ b i , n i σ ( b i , 1 ) ⋯ σ ( b i , n i ) ⋮ ⋮ σ k − 1 ( b i , 1 ) ⋯ σ k − 1 ( b i , n i ) ) ⏟ = Moore k ( b i ) , G_i := \underbrace{\begin{pmatrix} 1 \\ N_1(a_i) \\ \vdots\\ N_{k-1}(a_i) \end{pmatrix}}_{=D_k(a_i)}
\underbrace{\begin{pmatrix}
b_{i,1} & \cdots& b_{i,n_i} \\
\sigma(b_{i,1}) & \cdots& \sigma(b_{i,n_i}) \\
\vdots& & \vdots\\
\sigma^{k-1}(b_{i,1}) & \cdots& \sigma^{k-1}(b_{i,n_i})
\end{pmatrix}}_{=\operatorname{Moore}_k(\mathbf{b}_i)}, G i := = D k ( a i ) 1 N 1 ( a i ) ⋮ N k − 1 ( a i ) = Moore k ( b i ) b i , 1 σ ( b i , 1 ) ⋮ σ k − 1 ( b i , 1 ) ⋯ ⋯ ⋯ b i , n i σ ( b i , n i ) ⋮ σ k − 1 ( b i , n i ) ,
for 1 ≤ i ≤ t 1 \le i \le t 1 ≤ i ≤ t . Note that D k ( a i ) ∈ G L k ( F q m ) D_k(a_i) \in\mathrm{GL}_k(\mathbb{F}_{q^m}) D k ( a i ) ∈ GL k ( F q m ) , hence G i G_i G i is a generator matrix for the generalized Gabidulin code Gab k , σ ( b i ) \operatorname{Gab}_{k,\sigma}(\mathbf{b}_i) Gab k , σ ( b i ) over F q m \mathbb{F}_{q^m} F q m .
We recall that, in the sum-rank-metric setting, the dual code of an [ n , k ] q m / q [n,k]_{q^m/q} [ n , k ] q m / q code C C C is an [ n , ( n 1 + ⋯ + n t ) − k ] q m / q [n,(n_1+\cdots+n_t)-k]_{q^m/q} [ n , ( n 1 + ⋯ + n t ) − k ] q m / q code, defined as
C ⊥ : = { v ∈ F q m n : v ⋅ c = 0 , for all c ∈ C } . C^\perp:= \{\mathbf{v} \in\mathbb{F}_{q^m}^n : \mathbf{v}\cdot\mathbf{c}=0,\text{ for all }\mathbf{c}\in C\}. C ⊥ := { v ∈ F q m n : v ⋅ c = 0 , for all c ∈ C } .
Regarding LRS codes we have the following statement.
Theorem 1 ([38 Theorem 4] ). With the notation of Definition 4, there exists an evaluation pair ( a ⊥ , b ⊥ ) (\mathbf{a}^{\perp},\mathbf{b}^{\perp}) ( a ⊥ , b ⊥ ) such that
LRS k σ ( a , b ) ⊥ = LRS n 1 + ⋯ + n t − k σ − 1 ( a ⊥ , b ⊥ ) . \operatorname{LRS}_{k}^{\sigma}(\mathbf{a},\mathbf{b})^{\perp}
=
\operatorname{LRS}_{n_1+\cdots+n_t-k}^{\sigma^{-1}}(\mathbf{a}^{\perp},\mathbf{b}^{\perp}). LRS k σ ( a , b ) ⊥ = LRS n 1 + ⋯ + n t − k σ − 1 ( a ⊥ , b ⊥ ) . In addition, an explicit description of the evaluation pair ( a ⊥ , b ⊥ ) (\mathbf{a}^{\perp},\mathbf{b}^{\perp}) ( a ⊥ , b ⊥ ) is given in [28 Section 2.5] .
Generalized LRS codes and LRS codes coincide
In [28 Definition 6] , the authors proposed the following generalized notion for LRS codes. Let ( a , b ) ∈ F q m t × F q m n (\mathbf{a},\mathbf{b}) \in\mathbb{F}_{q^m}^{t} \times\mathbb{F}_{q^m}^{n} ( a , b ) ∈ F q m t × F q m n be an evaluation pair, v = ( v 1 , … , v t ) ∈ ( F q m ∗ ) t \mathbf{v}=(v_1,\ldots,v_t)\in(\mathbb{F}_{q^m}^{*})^t v = ( v 1 , … , v t ) ∈ ( F q m ∗ ) t and k ≤ n 1 + ⋯ + n t k\le n_1+\cdots+n_t k ≤ n 1 + ⋯ + n t be a positive integer. The [ n , k ] q m / q [n,k]_{q^m/q} [ n , k ] q m / q generalized linearized Reed–Solomon ( G L R S ) (\mathrm{GLRS}) ( GLRS ) code with evaluation parameters ( a , b ) (\mathbf{a},\mathbf{b}) ( a , b ) and v \mathbf{v} v is defined as
GLRS k ( a , b , v ) : = { ( v i ev a i , b i ( f ) ) 1 ≤ i ≤ t : f ∈ F q m [ x ; σ ] < k } . \operatorname{GLRS}_k(\mathbf{a},\mathbf{b},\mathbf{v})
:=
\left\{
\left(v_i\operatorname{ev}_{a_i,b_i}(f)\right)_{1\le i\le t}
:
f\in\mathbb{F}_{q^m}[x;\sigma]_{<k}
\right\}. GLRS k ( a , b , v ) := { ( v i ev a i , b i ( f ) ) 1 ≤ i ≤ t : f ∈ F q m [ x ; σ ] < k } .
One could have considered this family of codes which looks more general than the LRS one. It turns out that it is not.
Theorem 2. Let ( a , b ) ∈ F q m t × F q m n (\mathbf{a},\mathbf{b})\in\mathbb{F}_{q^m}^{t}\times\mathbb{F}_{q^m}^{n} ( a , b ) ∈ F q m t × F q m n be an evaluation pair and v ∈ ( F q m ∗ ) t \mathbf{v}\in(\mathbb{F}_{q^m}^{*})^t v ∈ ( F q m ∗ ) t . Then, for any k ≤ n 1 + ⋯ + n t k\le n_1+\cdots+n_t k ≤ n 1 + ⋯ + n t ,
GLRS k ( a , b , v ) = LRS k ( a ′ , b ′ ) , \operatorname{GLRS}_k(\mathbf{a},\mathbf{b},\mathbf{v})
=
\operatorname{LRS}_k(\mathbf{a}',\mathbf{b}'), GLRS k ( a , b , v ) = LRS k ( a ′ , b ′ ) , where
a ′ = ( a 1 v 1 σ ( v 1 ) − 1 , … , a t v t σ ( v t ) − 1 ) and b ′ = ( v 1 b 1 , … , v t b t ) . \mathbf{a}'=(a_1v_1\sigma(v_1)^{-1},\ldots,a_tv_t\sigma(v_t)^{-1})
\quad\text{and}\quad
\mathbf{b}'=(v_1b_1,\ldots,v_tb_t). a ′ = ( a 1 v 1 σ ( v 1 ) − 1 , … , a t v t σ ( v t ) − 1 ) and b ′ = ( v 1 b 1 , … , v t b t ) .
Proof. For any a , b , v ∈ F q m ∗ a,b,v \in\mathbb{F}_{q^m}^* a , b , v ∈ F q m ∗ , let a ′ : = a v σ ( v ) − 1 a' := av\sigma(v)^{-1} a ′ := a v σ ( v ) − 1 and b ′ : = v b b' := vb b ′ := v b . Then, by the multiplicativity of σ \sigma σ and that of the partial norms, for all f = ∑ j f j x j ∈ F q m [ x ; σ ] f=\sum_j f_jx^j \in\mathbb{F}_{q^m}[x;\sigma] f = ∑ j f j x j ∈ F q m [ x ; σ ] ,
ev a ′ , b ′ ( f ) = ∑ j f j N j ( a v σ ( v ) − 1 ) σ j ( v b ) = ∑ j f j N j ( a ) ∏ h = 0 j − 1 σ h ( v ) ∏ h = 0 j − 1 σ h ( σ ( v ) − 1 ) σ j ( v ) σ j ( b ) = ∑ j f j N j ( a ) v ∏ h = 1 j − 1 σ h ( v ) ∏ h = 1 j ( σ h ( v ) ) − 1 σ j ( v ) σ j ( b ) = ∑ j f j N j ( a ) v σ j ( b ) = v ev a , b ( f ) . \begin{aligned}
\operatorname{ev}_{a',b'}(f) &= \sum_j f_jN_j(av\sigma(v)^{-1})\sigma^j(vb) \\
&= \sum_j f_jN_j(a)\prod_{h=0}^{j-1}\sigma^h(v)\prod_{h=0}^{j-1}\sigma^h(\sigma(v)^{-1})\sigma^j(v)\sigma^j(b) \\
&= \sum_j f_jN_j(a)v\prod_{h=1}^{j-1}\sigma^h(v)\prod_{h=1}^{j}(\sigma^h(v))^{-1}\sigma^j(v)\sigma^j(b) \\
&= \sum_j f_jN_j(a)v\sigma^j(b)=v\operatorname{ev}_{a,b}(f).
\end{aligned} ev a ′ , b ′ ( f ) = j ∑ f j N j ( a v σ ( v ) − 1 ) σ j ( v b ) = j ∑ f j N j ( a ) h = 0 ∏ j − 1 σ h ( v ) h = 0 ∏ j − 1 σ h ( σ ( v ) − 1 ) σ j ( v ) σ j ( b ) = j ∑ f j N j ( a ) v h = 1 ∏ j − 1 σ h ( v ) h = 1 ∏ j ( σ h ( v ) ) − 1 σ j ( v ) σ j ( b ) = j ∑ f j N j ( a ) v σ j ( b ) = v ev a , b ( f ) .
Hence, setting a ′ : = ( a i v i σ ( v i ) − 1 ) 1 ≤ i ≤ t a' := (a_iv_i\sigma(v_i)^{-1})_{1\le i\le t} a ′ := ( a i v i σ ( v i ) − 1 ) 1 ≤ i ≤ t and b ′ : = ( v i b i ) 1 ≤ i ≤ t b' := (v_ib_i)_{1\le i\le t} b ′ := ( v i b i ) 1 ≤ i ≤ t , we get
LRS k ( a ′ , b ′ ) = GLRS k ( a , b , v ) . \operatorname{LRS}_k(a',b')=\operatorname{GLRS}_k(a,b,\mathbf{v}). LRS k ( a ′ , b ′ ) = GLRS k ( a , b , v ) .
Statement of the problem
We now give a precise formulation of the problem addressed in this paper.
Problem 1. Let 2 ≤ t < q 2\le t<q 2 ≤ t < q , n : = ( n 1 , … , n t ) ∈ Z > 0 t \mathbf{n}:=(n_1,\ldots,n_t)\in\mathbb{Z}_{>0}^t n := ( n 1 , … , n t ) ∈ Z > 0 t and 2 ≤ k ≤ n 1 + ⋯ + n t 2\le k\le n_1+\cdots+n_t 2 ≤ k ≤ n 1 + ⋯ + n t . Given an arbitrary full-rank generator matrix G ∈ F q m k × ( n 1 + ⋯ + n t ) G\in\mathbb{F}_{q^m}^{k\times(n_1+\cdots+n_t)} G ∈ F q m k × ( n 1 + ⋯ + n t ) recover, if it exists, an evaluation pair ( a , b ) (\mathbf{a},\mathbf{b}) ( a , b ) such that
rowsp ( G ) = LRS k ( a , b ) . \operatorname{rowsp}(G)=\operatorname{LRS}_k(\mathbf{a},\mathbf{b}). rowsp ( G ) = LRS k ( a , b ) .
Note that the input matrix to Problem 1 can be expressed as G = S G k ( a ~ , b ~ ) G=SG_k(\tilde{\mathbf{a}},\tilde{\mathbf{b}}) G = S G k ( a ~ , b ~ ) , where ( a ~ , b ~ ) (\tilde{\mathbf{a}},\tilde{\mathbf{b}}) ( a ~ , b ~ ) is an unknown evaluation pair and S ∈ GL k ( F q m ) S\in\operatorname{GL}_k(\mathbb{F}_{q^m}) S ∈ GL k ( F q m ) is an unknown change-of-basis matrix.
Before addressing Problem 1, we establish a preliminary result that will be crucial to the development of our recovery procedure.
For μ ∈ F q m \mu\in\mathbb{F}_{q^m} μ ∈ F q m and a positive integer k k k , we define the diagonal matrix
Δ k ( μ ) : = ( μ σ ( μ ) ⋱ σ k − 1 ( μ ) ) ∈ F q m k × k . \Delta_k(\mu):=
\begin{pmatrix}
\mu& & \\
& \sigma(\mu) & \\
& & \ddots\\
& & & \sigma^{k-1}(\mu)
\end{pmatrix}\in\mathbb{F}_{q^m}^{k\times k}. Δ k ( μ ) := μ σ ( μ ) ⋱ σ k − 1 ( μ ) ∈ F q m k × k .
Remark 4. Clearly, Δ k ( μ ) ∈ G L k ( F q m ) \Delta_k(\mu) \in\mathrm{GL}_k(\mathbb{F}_{q^m}) Δ k ( μ ) ∈ GL k ( F q m ) if and only if μ ≠ 0 \mu\ne0 μ = 0 , and Δ k ( μ ) Δ k ( μ ′ ) = Δ k ( μ μ ′ ) \Delta_k(\mu)\Delta_k(\mu') = \Delta_k(\mu\mu') Δ k ( μ ) Δ k ( μ ′ ) = Δ k ( μ μ ′ ) for all μ , μ ′ ∈ F q m \mu,\mu' \in\mathbb{F}_{q^m} μ , μ ′ ∈ F q m . Moreover, since σ \sigma σ is multiplicative and fixes F q \mathbb{F}_q F q , for every b ∈ F q m n \mathbf{b} \in\mathbb{F}_{q^m}^n b ∈ F q m n , μ ∈ F q m \mu\in\mathbb{F}_{q^m} μ ∈ F q m we have Moore k ( μ b ) = Δ k ( μ ) Moore k ( b ) \operatorname{Moore}_k(\mu\mathbf{b}) = \Delta_k(\mu)\operatorname{Moore}_k(\mathbf{b}) Moore k ( μ b ) = Δ k ( μ ) Moore k ( b ) .
Lemma 2. Let ( a , b ) ∈ F q m t × F q m n (\mathbf{a},\mathbf{b}) \in\mathbb{F}_{q^m}^t \times\mathbb{F}_{q^m}^n ( a , b ) ∈ F q m t × F q m n be an evaluation pair. Let also λ , μ ∈ F q m ∗ \lambda,\mu\in\mathbb{F}_{q^m}^{*} λ , μ ∈ F q m ∗ , and define ( a ′ , b ′ ) ∈ F q m t × F q m n (\mathbf{a}',\mathbf{b}') \in\mathbb{F}_{q^m}^t \times\mathbb{F}_{q^m}^n ( a ′ , b ′ ) ∈ F q m t × F q m n so that a i ′ = λ a i a_i'=\lambda a_i a i ′ = λ a i for all 1 ≤ i ≤ t 1 \le i \le t 1 ≤ i ≤ t , and b i , j ′ = μ b i , j b_{i,j}'=\mu b_{i,j} b i , j ′ = μ b i , j for all 1 ≤ i ≤ t 1 \le i \le t 1 ≤ i ≤ t , 1 ≤ j ≤ n i 1 \le j \le n_i 1 ≤ j ≤ n i . Then, ( a ′ , b ′ ) (\mathbf{a}',\mathbf{b}') ( a ′ , b ′ ) is again an evaluation pair, and LRS k ( a , b ) = LRS k ( a ′ , b ′ ) \operatorname{LRS}_k(\mathbf{a},\mathbf{b}) = \operatorname{LRS}_k(\mathbf{a}',\mathbf{b}') LRS k ( a , b ) = LRS k ( a ′ , b ′ ) for any k ≥ 2 k \ge2 k ≥ 2 .
Proof. By the multiplicativity of the norm and the fact that rescaling the entries of a vector does not change its rank, the pair ( a ′ , b ′ ) (\mathbf{a}',\mathbf{b}') ( a ′ , b ′ ) is still an evaluation pair. Let then G : = G k ( a , b ) G := G_k(\mathbf{a},\mathbf{b}) G := G k ( a , b ) and G ′ : = G k ( a ′ , b ′ ) G' := G_k(\mathbf{a}',\mathbf{b}') G ′ := G k ( a ′ , b ′ ) be the standard generator matrices of C : = LRS k ( a , b ) C := \operatorname{LRS}_k(\mathbf{a},\mathbf{b}) C := LRS k ( a , b ) and C ′ : = LRS k ( a ′ , b ′ ) C' := \operatorname{LRS}_k(\mathbf{a}',\mathbf{b}') C ′ := LRS k ( a ′ , b ′ ) , respectively. By Remark 2 and Remark 4, for each block 1 ≤ i ≤ t 1 \le i \le t 1 ≤ i ≤ t in G G G and G ′ G' G ′ , we have
G i ′ = D k ( λ a i ) Moore k ( μ b i ) = D k ( λ ) D k ( a i ) Δ k ( μ ) Moore k ( b i ) = D k ( λ ) Δ k ( μ ) ⏟ = : T D k ( a i ) Moore k ( b i ) ⏟ = G i . G_i' = D_k(\lambda a_i)\operatorname{Moore}_k(\mu\mathbf{b}_i)
= D_k(\lambda)D_k(a_i)\Delta_k(\mu)\operatorname{Moore}_k(\mathbf{b}_i)
= \underbrace{D_k(\lambda)\Delta_k(\mu)}_{=:T}\underbrace{D_k(a_i)\operatorname{Moore}_k(\mathbf{b}_i)}_{=G_i}. G i ′ = D k ( λ a i ) Moore k ( μ b i ) = D k ( λ ) D k ( a i ) Δ k ( μ ) Moore k ( b i ) = =: T D k ( λ ) Δ k ( μ ) = G i D k ( a i ) Moore k ( b i ) . Since T ∈ G L k ( F q m ) T \in\mathrm{GL}_k(\mathbb{F}_{q^m}) T ∈ GL k ( F q m ) and it does not depend on the considered block, we conclude that G ′ = T G G' = TG G ′ = T G , and hence C = C ′ C = C' C = C ′ . □ \square □
Remark 5. In the context of Problem 1, Lemma 2 implies that recovering an evaluation pair ( a , b ) (\mathbf{a},\mathbf{b}) ( a , b ) with the property that LRS k ( a , b ) = C \operatorname{LRS}_k(\mathbf{a},\mathbf{b}) = C LRS k ( a , b ) = C is not equivalent to recovering the exact evaluation pair ( a ~ , b ~ ) (\tilde{\mathbf{a}},\tilde{\mathbf{b}}) ( a ~ , b ~ ) that was originally used to define C C C . Indeed, recovering an evaluation pair ( a , b ) (\mathbf{a},\mathbf{b}) ( a , b ) that coincides with ( a ~ , b ~ ) (\tilde{\mathbf{a}},\tilde{\mathbf{b}}) ( a ~ , b ~ ) up to some scalar multiples ( λ , μ ) ∈ ( F q m ∗ ) 2 (\lambda,\mu) \in(\mathbb{F}_{q^m}^{*})^2 ( λ , μ ) ∈ ( F q m ∗ ) 2 is sufficient to represent the code and to benefit from a polynomial-time decoding algorithm correcting up to half the minimum distance. As a consequence, we may assume without loss of generality that the first coordinate of a \mathbf{a} a is 1 1 1 since we can rescale it by multiplication by a 1 − 1 a_1^{-1} a 1 − 1 .
Outline of the structure recoveries to follow {#sec:2.4} In the sequel, we describe different approaches to recover an evaluation pair from the sole knowledge of a generator matrix of an LRS code. To help the reader, let us first summarize where to find a recovery process depending on the range of parameters
For 2 ≤ k < m 2 \le k < m 2 ≤ k < m , with profile n = ( n , … , n ) \mathbf{n}=(n,\ldots,n) n = ( n , … , n ) where n ≤ m n \le m n ≤ m , see § 4 ;
For k = m k=m k = m , with profile m = ( m , … , m ) \mathbf{m}=(m,\ldots,m) m = ( m , … , m ) , except for the case k = t = m = 2 k=t=m=2 k = t = m = 2 , which is of no cryptographic interest, see § 5 ;
For k = m + 1 k=m+1 k = m + 1 , with profile m = ( m , … , m ) \mathbf{m}=(m,\ldots,m) m = ( m , … , m ) , except for the cases t ∈ { 2 , 3 } t \in\{2,3\} t ∈ { 2 , 3 } and m = 2 m=2 m = 2 , which remain of no cryptographic relevance, see Corollary 1 in § 7 ;
For m + 2 ≤ k < 2 m m+2 \le k < 2m m + 2 ≤ k < 2 m , with profile m = ( m , … , m ) \mathbf{m}=(m,\ldots,m) m = ( m , … , m ) and
For 2 m ≤ k ≤ t m − 2 2m \le k \le tm-2 2 m ≤ k ≤ t m − 2 , with profile m = ( m , … , m ) \mathbf{m}=(m,\ldots,m) m = ( m , … , m ) , write r = k m o d m r=k\bmod m r = k mod m and
for r ≥ 2 r\ge2 r ≥ 2 , see Theorem 6 in § 7 ;
for r ∈ { 0 , 1 } r\in\{0,1\} r ∈ { 0 , 1 } and t ≥ 3 t\ge3 t ≥ 3 , see Theorem 7 in § 7 ;
Structure recovery for LRS codes with k < n k<n k < n
In this section, we address Problem 1 for a dimension 2 ≤ k < m 2\le k<m 2 ≤ k < m . In this situation, the crux of the approach consists in applying Overbeck’s attack to a given block of the generator matrix.
For ease of notation, we restrict ourselves to the case in which C \mathcal{C} C has a constant profile, i.e. , n = ( n , … , n ) ∈ Z > 0 t \mathbf{n}=(n,\ldots,n)\in\mathbb{Z}_{>0}^{t} n = ( n , … , n ) ∈ Z > 0 t for some n ≤ m n\le m n ≤ m . Note, however, that with due care the techniques developed in this section can be adapted to the more general setting of Problem 1.
First, we show that, in the present setting, Lemma 2 can be strengthened to provide a complete characterization of all evaluation pairs defining the same LRS code.
Lemma 3. Assume k < n ≤ m k<n\le m k < n ≤ m . Let v , v ′ ∈ F q m n \mathbf{v},\mathbf{v}'\in\mathbb{F}_{q^m}^{n} v , v ′ ∈ F q m n be two evaluation vectors and let T ∈ G L k ( F q m ) T\in\mathrm{GL}_{k}(\mathbb{F}_{q^m}) T ∈ GL k ( F q m ) be such that Moore k ( v ) = T Moore k ( v ′ ) \operatorname{Moore}_{k}(\mathbf{v})=T\operatorname{Moore}_{k}(\mathbf{v}') Moore k ( v ) = T Moore k ( v ′ ) . Then, there exists μ ∈ F q m ∗ \mu\in\mathbb{F}_{q^m}^{*} μ ∈ F q m ∗ such that T = Δ k ( μ ) T=\Delta_{k}(\mu) T = Δ k ( μ ) . In particular, v = μ v ′ \mathbf{v}=\mu\mathbf{v}' v = μ v ′ .
Proof. If k = 1 k=1 k = 1 the statement is trivial, so assume k ≥ 2 k\ge2 k ≥ 2 . Let e 0 , … , e k − 1 \mathbf{e}_{0},\ldots,\mathbf{e}_{k-1} e 0 , … , e k − 1 denote the canonical basis of F q m k \mathbb{F}_{q^m}^{k} F q m k . Similarly denote by t 0 , … , t k − 1 ∈ F q m k \mathbf{t}_{0},\ldots,\mathbf{t}_{k-1}\in\mathbb{F}_{q^m}^{k} t 0 , … , t k − 1 ∈ F q m k the rows of T T T . Then for any $0\le i\le k-1,
e i Moore k ( v ) = σ i ( v ) = t i Moore k ( v ′ ) . (1) \mathbf{e}_{i}\operatorname{Moore}_{k}(\mathbf{v})=\sigma^{i}(\mathbf{v})=\mathbf{t}_{i}\operatorname{Moore}_{k}(\mathbf{v}'). \tag*{(1)} e i Moore k ( v ) = σ i ( v ) = t i Moore k ( v ′ ) . (1)
For any 0 ≤ i ≤ k − 1 0\le i\le k-1 0 ≤ i ≤ k − 1 denote by f i ∈ F q m [ x ; σ ] < k f_i\in\mathbb{F}_{q^m}[x;\sigma]_{<k} f i ∈ F q m [ x ; σ ] < k the polynomial whose coefficient sequence is given by t i \mathbf{t}_i t i , i.e. , f i ( x ) = ∑ j = 0 k − 1 T i , j x j f_i(x)=\sum_{j=0}^{k-1}T_{i,j}x^j f i ( x ) = ∑ j = 0 k − 1 T i , j x j where the T i , j T_{i,j} T i , j for 0 ≤ i , j ≤ k − 1 0\le i,j\le k-1 0 ≤ i , j ≤ k − 1 denote the entries of T T T . Thus, (1) can be rephrased as
σ i ( v ) = f i ( σ ) ( v ′ ) , for 0 ≤ i ≤ k − 1. \sigma^i(\mathbf{v})=f_i(\sigma)(\mathbf{v}'),\qquad\text{for }0\le i\le k-1. σ i ( v ) = f i ( σ ) ( v ′ ) , for 0 ≤ i ≤ k − 1.
In particular, combining the cases i = 0 i=0 i = 0 and i = 1 i=1 i = 1 yields
σ ( v ) = f 1 ( σ ) ( v ′ ) = σ ( f 0 ( σ ) ( v ′ ) ) . \sigma(\mathbf{v})=f_1(\sigma)(\mathbf{v}')=\sigma(f_0(\sigma)(\mathbf{v}')). σ ( v ) = f 1 ( σ ) ( v ′ ) = σ ( f 0 ( σ ) ( v ′ )) .
Therefore, the polynomials f 1 ( x ) f_1(x) f 1 ( x ) and x f 0 ( x ) xf_0(x) x f 0 ( x ) are evaluate at the same v ′ \mathbf{v}' v ′ . Since deg ( f i ) ≤ k − 1 \deg(f_i)\le k-1 deg ( f i ) ≤ k − 1 for all i i i , then deg ( x f 0 ( x ) ) ≤ k < n \deg(xf_0(x))\le k<n deg ( x f 0 ( x )) ≤ k < n and, by Lemma 1, we deduce that f 1 ( x ) = x f 0 ( x ) f_1(x)=xf_0(x) f 1 ( x ) = x f 0 ( x ) . In particular deg ( f 0 ) ≤ k − 2 \deg(f_0)\le k-2 deg ( f 0 ) ≤ k − 2 . By induction, we prove that for any 1 ≤ i < k 1\le i<k 1 ≤ i < k , we have f i = x i f 0 f_i=x^if_0 f i = x i f 0 and that deg ( f 0 ) = 0 \deg(f_0)=0 deg ( f 0 ) = 0 . Setting μ ∈ F q m ∗ \mu\in\mathbb{F}_{q^m}^{*} μ ∈ F q m ∗ such that f 0 = μ f_0=\mu f 0 = μ , we deduce that f i = x i μ = σ i ( μ ) x i f_i=x^i\mu=\sigma^i(\mu)x^i f i = x i μ = σ i ( μ ) x i for all 0 ≤ i < k 0\le i<k 0 ≤ i < k . Back to the Moore matrices, this yields
σ i ( v ) = σ i ( μ ) σ i ( v ′ ) for 0 ≤ i ≤ k − 1 , \sigma^i(\mathbf{v})=\sigma^i(\mu)\sigma^i(\mathbf{v}')\qquad\text{for }0\le i\le k-1, σ i ( v ) = σ i ( μ ) σ i ( v ′ ) for 0 ≤ i ≤ k − 1 ,
hence the result. □ \square □
Proposition 2. Let 2 ≤ k < n 2 \le k < n 2 ≤ k < n and let ( a , b ) , ( a ′ , b ′ ) ∈ F q m ∗ × F q m ∗ (\mathbf{a},\mathbf{b}),(\mathbf{a}',\mathbf{b}') \in\mathbb{F}_{q^m}^{*} \times\mathbb{F}_{q^m}^{*} ( a , b ) , ( a ′ , b ′ ) ∈ F q m ∗ × F q m ∗ be evaluation pairs. Then, LRS k ( a , b ) = LRS k ( a ′ , b ′ ) \operatorname{LRS}_k(\mathbf{a},\mathbf{b}) = \operatorname{LRS}_k(\mathbf{a}',\mathbf{b}') LRS k ( a , b ) = LRS k ( a ′ , b ′ ) if and only if there exist λ , μ ∈ F q m ∗ \lambda,\mu\in\mathbb{F}_{q^m}^{*} λ , μ ∈ F q m ∗ such that a ′ = λ a \mathbf{a}' = \lambda\mathbf{a} a ′ = λ a , and b i ′ = μ b i b_i' = \mu b_i b i ′ = μ b i for all 1 ≤ i ≤ t 1 \le i \le t 1 ≤ i ≤ t .
Proof. If such λ , μ ∈ F q m ∗ \lambda,\mu\in\mathbb{F}_{q^m}^{*} λ , μ ∈ F q m ∗ exist, then the statement is Lemma Lemma 2.
Conversely, let G : = G k ( a , b ) G := G_k(\mathbf{a},\mathbf{b}) G := G k ( a , b ) and G ′ : = G k ( a ′ , b ′ ) G' := G_k(\mathbf{a}',\mathbf{b}') G ′ := G k ( a ′ , b ′ ) respectively be standard generator matrices of C : = LRS k ( a , b ) C := \operatorname{LRS}_k(\mathbf{a},\mathbf{b}) C := LRS k ( a , b ) and C ′ : = LRS k ( a ′ , b ′ ) C' := \operatorname{LRS}_k(\mathbf{a}',\mathbf{b}') C ′ := LRS k ( a ′ , b ′ ) , and assume that C = C ′ C = C' C = C ′ . Then, there exists some change-of-basis matrix T ∈ GL k ( F q m ) T \in\operatorname{GL}_k(\mathbb{F}_{q^m}) T ∈ GL k ( F q m ) such that G ′ = T G G' = TG G ′ = T G . In particular, for all 1 ≤ i ≤ t 1 \le i \le t 1 ≤ i ≤ t ,
D k ( a i ′ ) Moore k ( b i ′ ) = G i ′ = T G i = T D k ( a i ) Moore k ( b i ) , D_k(a_i')\operatorname{Moore}_k(\mathbf{b}_i') = G_i' = TG_i = TD_k(a_i)\operatorname{Moore}_k(\mathbf{b}_i), D k ( a i ′ ) Moore k ( b i ′ ) = G i ′ = T G i = T D k ( a i ) Moore k ( b i ) ,
that is, Moore k ( b i ′ ) = D k ( a i ′ ) − 1 T D k ( a i ) Moore k ( b i ) \operatorname{Moore}_k(\mathbf{b}_i') = D_k(a_i')^{-1}TD_k(a_i)\operatorname{Moore}_k(\mathbf{b}_i) Moore k ( b i ′ ) = D k ( a i ′ ) − 1 T D k ( a i ) Moore k ( b i ) . Hence, by Lemma 3, there exists μ i ∈ F q m ∗ \mu_i \in\mathbb{F}_{q^m}^{*} μ i ∈ F q m ∗ such that D k ( a i ′ ) − 1 T D k ( a i ) = Δ k ( μ i ) D_k(a_i')^{-1}TD_k(a_i) = \Delta_k(\mu_i) D k ( a i ′ ) − 1 T D k ( a i ) = Δ k ( μ i ) and b i ′ = μ i b i \mathbf{b}_i' = \mu_i\mathbf{b}_i b i ′ = μ i b i . By Remark 2 and the fact that diagonal matrices commute with each other, we get
T = D k ( a i ′ a i − 1 ) Δ k ( μ i ) for every 1 ≤ i ≤ t . T = D_k(a_i'a_i^{-1})\Delta_k(\mu_i) \qquad\text{for every } 1 \le i \le t. T = D k ( a i ′ a i − 1 ) Δ k ( μ i ) for every 1 ≤ i ≤ t .
In particular, T T T is diagonal. Since k ≥ 2 k \ge2 k ≥ 2 , we can compare its first two diagonal entries, namely T 1 , 1 = μ i T_{1,1} = \mu_i T 1 , 1 = μ i and T 2 , 2 = a i ′ a i − 1 σ ( μ i ) T_{2,2} = a_i'a_i^{-1}\sigma(\mu_i) T 2 , 2 = a i ′ a i − 1 σ ( μ i ) . Since T T T does not depend on i i i , setting μ : = T 1 , 1 \mu:= T_{1,1} μ := T 1 , 1 and λ : = T 2 , 2 σ ( μ ) − 1 \lambda:= T_{2,2}\sigma(\mu)^{-1} λ := T 2 , 2 σ ( μ ) − 1 we conclude that
a i ′ = λ a i , b i ′ = μ b i for all 1 ≤ i ≤ t . a_i' = \lambda a_i,\qquad b_i' = \mu b_i \qquad\text{for all } 1 \le i \le t. a i ′ = λ a i , b i ′ = μ b i for all 1 ≤ i ≤ t .
As recalled in § 2.2 , applying an Overbeck-type attack on the code defined by G 1 G_1 G 1 allows one to recover an evaluation vector b 1 ∈ F q m n \mathbf{b}_1 \in\mathbb{F}_{q^m}^{n} b 1 ∈ F q m n such that rowsp ( G 1 ) = rowsp ( Moore k ( b 1 ) ) \operatorname{rowsp}(G_1) = \operatorname{rowsp}(\operatorname{Moore}_k(\mathbf{b}_1)) rowsp ( G 1 ) = rowsp ( Moore k ( b 1 )) . Since G 1 G_1 G 1 has full rank k k k , we can then determine the unique change-of-basis matrix S ∈ GL k ( F q m ) S \in\operatorname{GL}_k(\mathbb{F}_{q^m}) S ∈ GL k ( F q m ) such that S G 1 = Moore k ( b 1 ) SG_1 = \operatorname{Moore}_k(\mathbf{b}_1) S G 1 = Moore k ( b 1 ) , by solving a linear system.
Lemma 4. Let k < n ≤ m k < n \le m k < n ≤ m and let G = ( G 1 ∣ ⋯ ∣ G t ) G = (G_1 \mid\cdots\mid G_t) G = ( G 1 ∣ ⋯ ∣ G t ) be a generator matrix of an [ n , k ] q m / q [n,k]_{q^m/q} [ n , k ] q m / q LRS code. Let also b 1 ∈ F q m n \mathbf{b}_1 \in\mathbb{F}_{q^m}^{n} b 1 ∈ F q m n be an evaluation vector and S ∈ GL k ( F q m ) S \in\operatorname{GL}_k(\mathbb{F}_{q^m}) S ∈ GL k ( F q m ) be such that S G 1 = Moore k ( b 1 ) SG_1 = \operatorname{Moore}_k(\mathbf{b}_1) S G 1 = Moore k ( b 1 ) . Then, there exist a 2 , … , a t ∈ F q m ∗ a_2,\ldots,a_t \in\mathbb{F}_{q^m}^{*} a 2 , … , a t ∈ F q m ∗ and b 2 , … , b t ∈ F q m n \mathbf{b}_2,\ldots,\mathbf{b}_t \in\mathbb{F}_{q^m}^{n} b 2 , … , b t ∈ F q m n such that ( ( 1 , a 2 , … , a t ) , ( b 1 , b 2 , … , b t ) ) ((1,a_2,\ldots,a_t),(\mathbf{b}_1,\mathbf{b}_2,\ldots,\mathbf{b}_t)) (( 1 , a 2 , … , a t ) , ( b 1 , b 2 , … , b t )) is an evaluation pair and
S G = ( Moore k ( b 1 ) ∣ D k ( a 2 ) Moore k ( b 2 ) ∣ ⋯ ∣ D k ( a t ) Moore k ( b t ) ) . SG = \left(\operatorname{Moore}_k(\mathbf{b}_1) \mid D_k(a_2)\operatorname{Moore}_k(\mathbf{b}_2) \mid\cdots\mid D_k(a_t)\operatorname{Moore}_k(\mathbf{b}_t)\right). S G = ( Moore k ( b 1 ) ∣ D k ( a 2 ) Moore k ( b 2 ) ∣ ⋯ ∣ D k ( a t ) Moore k ( b t ) ) . Proof. Since G G G is a generator matrix of an [ n , k ] q m / q [n,k]_{q^m/q} [ n , k ] q m / q LRS code, there exist an evaluation pair ( a ~ , b ~ ) ∈ F q m ∗ × F q m n (\tilde{\mathbf{a}},\tilde{\mathbf{b}}) \in\mathbb{F}_{q^m}^{*} \times\mathbb{F}_{q^m}^{n} ( a ~ , b ~ ) ∈ F q m ∗ × F q m n and a change-of-basis matrix T ∈ GL k ( F q m ) T \in\operatorname{GL}_k(\mathbb{F}_{q^m}) T ∈ GL k ( F q m ) such that
T G = ( D k ( a ~ 1 ) Moore k ( b ~ 1 ) ∣ D k ( a ~ 2 ) Moore k ( b ~ 2 ) ∣ ⋯ ∣ D k ( a ~ t ) Moore k ( b ~ t ) ) . TG = \left(D_k(\tilde a_1)\operatorname{Moore}_k(\tilde{\mathbf{b}}_1) \mid D_k(\tilde a_2)\operatorname{Moore}_k(\tilde{\mathbf{b}}_2) \mid\cdots\mid D_k(\tilde a_t)\operatorname{Moore}_k(\tilde{\mathbf{b}}_t)\right). T G = ( D k ( a ~ 1 ) Moore k ( b ~ 1 ) ∣ D k ( a ~ 2 ) Moore k ( b ~ 2 ) ∣ ⋯ ∣ D k ( a ~ t ) Moore k ( b ~ t ) ) . In particular,
Moore k ( b 1 ) = S G 1 = S T − 1 D k ( a ~ 1 ) Moore k ( b ~ 1 ) . \operatorname{Moore}_k(\mathbf{b}_1) = SG_1 = ST^{-1}D_k(\tilde a_1)\operatorname{Moore}_k(\tilde{\mathbf{b}}_1). Moore k ( b 1 ) = S G 1 = S T − 1 D k ( a ~ 1 ) Moore k ( b ~ 1 ) .
Hence, by Lemma 3, there exists μ ∈ F q m ∗ \mu\in\mathbb{F}_{q^m}^{*} μ ∈ F q m ∗ such that S T − 1 D k ( a ~ 1 ) = Δ k ( μ ) ST^{-1}D_k(\widetilde{a}_1)=\Delta_k(\mu) S T − 1 D k ( a 1 ) = Δ k ( μ ) and b 1 = μ b ~ 1 \mathbf{b}_1=\mu\widetilde{\mathbf{b}}_1 b 1 = μ b 1 . In other words,
S = Δ k ( μ ) D k ( a ~ 1 − 1 ) T . S=\Delta_k(\mu)D_k(\widetilde{a}_1^{-1})T. S = Δ k ( μ ) D k ( a 1 − 1 ) T .
As a consequence, by Remark 2, for each block 2 ≤ i ≤ t 2\leq i\leq t 2 ≤ i ≤ t we have
S G i = Δ k ( μ ) D k ( a ~ 1 − 1 ) D k ( a ~ i ) Moore k ( b ~ i ) = D k ( a ~ 1 − 1 a ~ i ) Δ k ( μ ) Moore k ( b ~ i ) = D k ( a ~ 1 − 1 a ~ i ) Moore k ( μ b ~ i ) . \begin{aligned}
SG_i&=\Delta_k(\mu)D_k(\widetilde{a}_1^{-1})D_k(\widetilde{a}_i)\operatorname{Moore}_k(\widetilde{\mathbf{b}}_i)\\
&=D_k(\widetilde{a}_1^{-1}\widetilde{a}_i)\Delta_k(\mu)\operatorname{Moore}_k(\widetilde{\mathbf{b}}_i)\\
&=D_k(\widetilde{a}_1^{-1}\widetilde{a}_i)\operatorname{Moore}_k(\mu\widetilde{\mathbf{b}}_i).
\end{aligned} S G i = Δ k ( μ ) D k ( a 1 − 1 ) D k ( a i ) Moore k ( b i ) = D k ( a 1 − 1 a i ) Δ k ( μ ) Moore k ( b i ) = D k ( a 1 − 1 a i ) Moore k ( μ b i ) .
Therefore, setting a i : = a ~ 1 − 1 a ~ i a_i:=\widetilde{a}_1^{-1}\widetilde{a}_i a i := a 1 − 1 a i and b i : = μ b ~ i \mathbf{b}_i:=\mu\widetilde{\mathbf{b}}_i b i := μ b i for 2 ≤ i ≤ t 2\leq i\leq t 2 ≤ i ≤ t , we obtain the claimed form of S G SG S G . In conclusion, ( ( 1 , a 2 , … , a t ) , ( b 1 , … , b t ) ) = ( a ~ 1 − 1 a ~ , μ b ~ ) ((1,a_2,\ldots,a_t),(\mathbf{b}_1,\ldots,\mathbf{b}_t))=(\widetilde{a}_1^{-1}\widetilde{\mathbf{a}},\mu\widetilde{\mathbf{b}}) (( 1 , a 2 , … , a t ) , ( b 1 , … , b t )) = ( a 1 − 1 a , μ b ) is an evaluation pair by Lemma 2. □ \square □
Theorem 3. Let 2 ≤ t < q 2\leq t<q 2 ≤ t < q , n ≤ m n\leq m n ≤ m and 2 ≤ k < n 2\leq k<n 2 ≤ k < n . There exists a deterministic polynomial-time algorithm that, on input any public generator matrix G ∈ F q m k × t n G\in\mathbb{F}_{q^m}^{k\times tn} G ∈ F q m k × t n masking an [ n , k ] q m / q [n,k]_{q^m/q} [ n , k ] q m / q LRS code C \mathcal{C} C , outputs an evaluation pair ( a , b ) ∈ F q m t × F q m t n (\mathbf{a},\mathbf{b})\in\mathbb{F}_{q^m}^{t}\times\mathbb{F}_{q^m}^{tn} ( a , b ) ∈ F q m t × F q m t n such that LRS k ( a , b ) = C \operatorname{LRS}_k(\mathbf{a},\mathbf{b})=\mathcal{C} LRS k ( a , b ) = C .
Proof. Write G = ( G 1 ∣ ⋯ ∣ G t ) G=(G_1\mid\cdots\mid G_t) G = ( G 1 ∣ ⋯ ∣ G t ) . Since G 1 = T − 1 D k ( a ~ 1 ) Moore k ( b ~ 1 ) G_1=T^{-1}D_k(\widetilde{a}_1)\operatorname{Moore}_k(\widetilde{\mathbf{b}}_1) G 1 = T − 1 D k ( a 1 ) Moore k ( b 1 ) for some T ∈ GL k ( F q m ) T\in\operatorname{GL}_k(\mathbb{F}_{q^m}) T ∈ GL k ( F q m ) and some evaluation pair ( a ~ , b ~ ) (\widetilde{\mathbf{a}},\widetilde{\mathbf{b}}) ( a , b ) , the block G 1 G_1 G 1 generates a generalized Gabidulin code of dimension k < n k<n k < n and has full rank k k k . Hence, an Overbeck-type attack (see § 2.2 ) recovers an evaluation vector b 1 ∈ F q m n \mathbf{b}_1\in\mathbb{F}_{q^m}^{n} b 1 ∈ F q m n such that rowsp ( G 1 ) = rowsp ( Moore k ( b 1 ) ) \operatorname{rowsp}(G_1)=\operatorname{rowsp}(\operatorname{Moore}_k(\mathbf{b}_1)) rowsp ( G 1 ) = rowsp ( Moore k ( b 1 )) . Moreover, the unique matrix S ∈ GL k ( F q m ) S\in\operatorname{GL}_k(\mathbb{F}_{q^m}) S ∈ GL k ( F q m ) such that S G 1 = Moore k ( b 1 ) SG_1=\operatorname{Moore}_k(\mathbf{b}_1) S G 1 = Moore k ( b 1 ) is obtained by solving a linear system. By Lemma 4,
S G = ( Moore k ( b 1 ) ∣ D k ( a 2 ) Moore k ( b 2 ) ∣ ⋯ ∣ D k ( a t ) Moore k ( b t ) ) . SG=\left(\operatorname{Moore}_k(\mathbf{b}_1)\mid D_k(a_2)\operatorname{Moore}_k(\mathbf{b}_2)\mid\cdots\mid D_k(a_t)\operatorname{Moore}_k(\mathbf{b}_t)\right). S G = ( Moore k ( b 1 ) ∣ D k ( a 2 ) Moore k ( b 2 ) ∣ ⋯ ∣ D k ( a t ) Moore k ( b t ) ) .
for an evaluation pair ( a , b ) (\mathbf{a},\mathbf{b}) ( a , b ) with a 1 = 1 a_1=1 a 1 = 1 . For 2 ≤ i ≤ t 2\leq i\leq t 2 ≤ i ≤ t , since N 0 ( a i ) = 1 N_0(a_i)=1 N 0 ( a i ) = 1 the first row of the i i i -th block of S G SG S G is precisely b i \mathbf{b}_i b i . Since b i \mathbf{b}_i b i is an evaluation vector, there exists an index 1 ≤ j ≤ n 1\leq j\leq n 1 ≤ j ≤ n such that b i , j ≠ 0 b_{i,j}\ne0 b i , j = 0 . Hence, the ( 2 , j ) (2,j) ( 2 , j ) -entry of the i i i -th block of S G SG S G is a i σ ( b i , j ) a_i\sigma(b_{i,j}) a i σ ( b i , j ) and a i a_i a i is recovered as the product of this value times σ ( b i , j ) − 1 \sigma(b_{i,j})^{-1} σ ( b i , j ) − 1 . This yields ( a , b ) (\mathbf{a},\mathbf{b}) ( a , b ) , and LRS k ( a , b ) = rowsp ( S G ) = C \operatorname{LRS}_k(\mathbf{a},\mathbf{b})=\operatorname{rowsp}(SG)=\mathcal{C} LRS k ( a , b ) = rowsp ( S G ) = C because S S S is invertible. Each step is a bounded number of linear-algebra operations over F q m \mathbb{F}_{q^m} F q m , so the procedure runs in polynomial time. A precise complexity evaluation is given in § 4.1 . □ \square □
A pseudocode description of the procedure described by Theorem 3 is given in Algorithm 1.
Complexity
We count operations in F q m \mathbb{F}_{q^m} F q m and applications of σ \sigma σ . We denote by ω \omega ω the complexity exponent of linear algebra.
Algorithm 1 Key recovery for 2 ≤ k < n 2 \le k < n 2 ≤ k < n , n = m n = m n = m
Require: G = ( G 1 ∣ ⋯ ∣ G t ) ∈ F q m k × t n G = (G_1 \mid\cdots\mid G_t) \in\mathbb{F}_{q^m}^{k \times tn} G = ( G 1 ∣ ⋯ ∣ G t ) ∈ F q m k × t n generating an LRS code Ensure: An evaluation pair ( a , b ) (\mathbf{a}, \mathbf{b}) ( a , b ) with LRS k ( a , b ) = C \operatorname{LRS}_k(\mathbf{a}, \mathbf{b}) = \mathcal{C} LRS k ( a , b ) = C
Find 1 ≤ s < m 1 \le s < m 1 ≤ s < m with gcd ( s , m ) = 1 \gcd(s,m) = 1 g cd( s , m ) = 1 and dim Λ 1 ( s ) ( rowsp ( G 1 ) ) = k + 1 \dim\Lambda_1^{(s)}(\operatorname{rowsp}(G_1)) = k + 1 dim Λ 1 ( s ) ( rowsp ( G 1 )) = k + 1
Compute Λ n − k − 1 ( s ) ( rowsp ( G 1 ) ) \Lambda_{n-k-1}^{(s)}(\operatorname{rowsp}(G_1)) Λ n − k − 1 ( s ) ( rowsp ( G 1 )) and recover an evaluation vector b 1 \mathbf{b}_1 b 1 ▷ Overbeck
Compute T T T such that T G 1 = Id TG_1 = \operatorname{Id} T G 1 = Id ; S ← Moore k ( b 1 ) T S \leftarrow\operatorname{Moore}_k(\mathbf{b}_1)T S ← Moore k ( b 1 ) T ▷ Gaussian elimination
for i = 2 , … , t i = 2, \ldots, t i = 2 , … , t do
H i ← S G i H_i \leftarrow SG_i H i ← S G i
b i ← \mathbf{b}_i \leftarrow b i ← first row of H i H_i H i ; pick j j j with b i , j ≠ 0 b_{i,j} \ne0 b i , j = 0
a i ← ( H i ) 2 , j σ ( b i , j ) − 1 a_i \leftarrow(H_i)_{2,j}\sigma(b_{i,j})^{-1} a i ← ( H i ) 2 , j σ ( b i , j ) − 1 ▷ ( H i ) 2 , j (H_i)_{2,j} ( H i ) 2 , j : ( 2 , j ) (2,j) ( 2 , j ) -th entry of H i H_i H i
end for
return ( ( 1 , a 2 , … , a t ) , ( b 1 , … , b t ) ) ((1,a_2,\ldots,a_t),(\mathbf{b}_1,\ldots,\mathbf{b}_t)) (( 1 , a 2 , … , a t ) , ( b 1 , … , b t ))
The Overbeck step on C 1 = rowsp ( G 1 ) \mathcal{C}_1 = \operatorname{rowsp}(G_1) C 1 = rowsp ( G 1 ) computes the q s q^s q s -sums iteratively via Λ i ( s ) ( C 1 ) = C 1 + σ ( Λ i − 1 ( s ) ( C 1 ) ) \Lambda_i^{(s)}(\mathcal{C}_1) = \mathcal{C}_1 + \sigma(\Lambda_{i-1}^{(s)}(\mathcal{C}_1)) Λ i ( s ) ( C 1 ) = C 1 + σ ( Λ i − 1 ( s ) ( C 1 )) . Each of the n − k − 1 n-k-1 n − k − 1 iterations applies σ \sigma σ to O ( n 2 ) O(n^2) O ( n 2 ) entries and performs a Gaussian elimination on a matrix with O ( n 2 ) O(n^2) O ( n 2 ) rows and n n n columns, i.e., O ( n ω + 1 ) O(n^{\omega+1}) O ( n ω + 1 ) operations and O ( n 3 ) O(n^3) O ( n 3 ) applications of σ \sigma σ overall. Computing the dual of Λ n − k − 1 ( s ) ( C 1 ) \Lambda_{n-k-1}^{(s)}(\mathcal{C}_1) Λ n − k − 1 ( s ) ( C 1 ) and deriving b 1 \mathbf{b}_1 b 1 adds O ( n ω ) O(n^\omega) O ( n ω ) operations. Determining S S S from S G 1 = Moore k ( b 1 ) SG_1 = \operatorname{Moore}_k(\mathbf{b}_1) S G 1 = Moore k ( b 1 ) costs O ( k ω − 1 n ) O(k^{\omega-1}n) O ( k ω − 1 n ) operations, and computing S G SG S G costs O ( k ω − 1 t n ) O(k^{\omega-1}tn) O ( k ω − 1 t n ) . Reading off ( a , b ) (\mathbf{a},\mathbf{b}) ( a , b ) costs O ( t ) O(t) O ( t ) operations and t − 1 t-1 t − 1 applications of σ \sigma σ . In total the procedure requires
O ( n ω + 1 + n ω t ) operations in F q m and O ( n 3 + t ) applications of σ . O(n^{\omega+1} + n^\omega t) \text{ operations in } \mathbb{F}_{q^m} \text{ and } O(n^3+t) \text{ applications of } \sigma. O ( n ω + 1 + n ω t ) operations in F q m and O ( n 3 + t ) applications of σ .
Structure recovery for LRS codes with k = m k = m k = m
For k ≥ m k \ge m k ≥ m , considering a single block of the code yields the trivial code F q m m \mathbb{F}_{q^m}^m F q m m . Hence, our previous Overbeck-based approach does not extend to higher dimensional codes. In this section, we consider Problem 1 in the special setting where k = m k = m k = m and the profile of the targeted code is m : = ( m , … , m ) ∈ Z > 0 t \mathbf{m} := (m,\ldots,m) \in\mathbb{Z}_{>0}^t m := ( m , … , m ) ∈ Z > 0 t . We further assume that either m ≥ 3 m \ge3 m ≥ 3 or t ≥ 3 t \ge3 t ≥ 3 . Hence, we exclude the case k = m = t = 2 k = m = t = 2 k = m = t = 2 , which remains of very low cryptographic interest.
In the case k = m k = m k = m , we argue directly on the systematic form of the public matrix G G G . Let T T T be the unique matrix in GL k ( F q m ) \operatorname{GL}_k(\mathbb{F}_{q^m}) GL k ( F q m ) such that
T G = ( Id ∣ M 2 ∣ ⋯ ∣ M t ) (2) TG = (\operatorname{Id} \mid M_2 \mid\cdots\mid M_t) \tag*{(2)} T G = ( Id ∣ M 2 ∣ ⋯ ∣ M t ) (2)
with M i ∈ GL m ( F q m ) M_i \in\operatorname{GL}_m(\mathbb{F}_{q^m}) M i ∈ GL m ( F q m ) . Let ( a ~ , b ~ ) (\widetilde{\mathbf{a}},\widetilde{\mathbf{b}}) ( a , b ) be an (unknown) evaluation pair such that C = LRS m ( a ~ , b ~ ) \mathcal{C} = \operatorname{LRS}_m(\widetilde{\mathbf{a}},\widetilde{\mathbf{b}}) C = LRS m ( a , b ) . By Remark [5 ] , up to rescaling a ~ \widetilde{\mathbf{a}} a , we may assume a ~ 1 = 1 \widetilde{a}_1 = 1 a 1 = 1 . If G = S G m ( a ~ , b ~ ) G = S G_m(\widetilde{\mathbf{a}},\widetilde{\mathbf{b}}) G = S G m ( a , b ) for some S ∈ GL m ( F q m ) S \in\operatorname{GL}_m(\mathbb{F}_{q^m}) S ∈ GL m ( F q m ) , then T = Moore m ( b ~ 1 ) − 1 S − 1 T = \operatorname{Moore}_m(\widetilde{\mathbf{b}}_1)^{-1}S^{-1} T = Moore m ( b 1 ) − 1 S − 1 . By [3 Lemma 8] ,
Moore m ( b ~ 1 ) − 1 = Moore m ( b ~ 1 ∗ ) T , \operatorname{Moore}_m(\widetilde{\mathbf{b}}_1)^{-1} = \operatorname{Moore}_m(\widetilde{\mathbf{b}}_1^*)^{\mathsf{T}}, Moore m ( b 1 ) − 1 = Moore m ( b 1 ∗ ) T ,
where b ~ 1 ∗ = ( b ~ 1 , 1 ∗ , … , b ~ 1 , m ∗ ) \widetilde{\mathbf{b}}_1^* = (\widetilde{b}_{1,1}^*,\ldots,\widetilde{b}_{1,m}^*) b 1 ∗ = ( b 1 , 1 ∗ , … , b 1 , m ∗ ) is the dual basis of b ~ 1 = ( b ~ 1 , 1 , … , b ~ 1 , m ) \widetilde{\mathbf{b}}_1 = (\widetilde{b}_{1,1},\ldots,\widetilde{b}_{1,m}) b 1 = ( b 1 , 1 , … , b 1 , m ) with respect to the trace map Tr F q m / F q \operatorname{Tr}_{\mathbb{F}_{q^m}/\mathbb{F}_q} Tr F q m / F q (see [36 Section 2.3] for more details). Hence, for 2 ≤ i ≤ t 2 \le i \le t 2 ≤ i ≤ t , the matrices M i M_i M i of (2) satisfy
M i = Moore m ( b ~ 1 ∗ ) T D m ( a ~ i ) Moore m ( b ~ i ) , M_i=\operatorname{Moore}_m(\tilde{\mathbf{b}}_1^*)^{\mathsf{T}}D_m(\tilde{a}_i)\operatorname{Moore}_m(\tilde{\mathbf{b}}_i), M i = Moore m ( b ~ 1 ∗ ) T D m ( a ~ i ) Moore m ( b ~ i ) ,
and
( M i ) j , ℓ = ∑ h = 0 m − 1 N h ( a ~ i ) σ h ( b ~ 1 , j ∗ b ~ i , ℓ ) . (3) (M_i)_{j,\ell}=\sum_{h=0}^{m-1}N_h(\tilde{a}_i)\sigma^h\left(\tilde{b}_{1,j}^*\tilde{b}_{i,\ell}\right). \tag*{(3)} ( M i ) j , ℓ = h = 0 ∑ m − 1 N h ( a ~ i ) σ h ( b ~ 1 , j ∗ b ~ i , ℓ ) . (3)
Lemma 5. With the notation above, for any 2 ≤ i ≤ t 2 \le i \le t 2 ≤ i ≤ t ,
a ~ i σ ( M i ) − M i = ( N m ( a ~ i ) − 1 ) ( b ~ 1 ∗ ) T b ~ i . \tilde{a}_i\sigma(M_i)-M_i=(N_m(\tilde{a}_i)-1)(\tilde{\mathbf{b}}_1^*)^{\mathsf{T}}\tilde{\mathbf{b}}_i. a ~ i σ ( M i ) − M i = ( N m ( a ~ i ) − 1 ) ( b ~ 1 ∗ ) T b ~ i .
Proof. Fix j j j , 1 ≤ ℓ ≤ m 1 \le\ell\le m 1 ≤ ℓ ≤ m and set b : = b ~ 1 , j ∗ b ~ i , ℓ b:=\tilde{b}_{1,j}^*\tilde{b}_{i,\ell} b := b ~ 1 , j ∗ b ~ i , ℓ . By Remark 2 and the fact that a ~ i σ ( N h ( a ~ i ) ) = N h + 1 ( a ~ i ) \tilde{a}_i\sigma(N_h(\tilde{a}_i))=N_{h+1}(\tilde{a}_i) a ~ i σ ( N h ( a ~ i )) = N h + 1 ( a ~ i ) for all h ≥ 0 h\ge0 h ≥ 0 , Equation (3) yields
a ~ i σ ( ( M i ) j , ℓ ) = ∑ h = 0 m − 1 N h + 1 ( a ~ i ) σ h + 1 ( b ) = ∑ h = 1 m N h ( a ~ i ) σ h ( b ) = ∑ h = 1 m − 1 N h ( a ~ i ) σ h ( b ) + N m ( a ~ i ) b . (4) \begin{aligned}
\tilde{a}_i\sigma((M_i)_{j,\ell})
&=\sum_{h=0}^{m-1}N_{h+1}(\tilde{a}_i)\sigma^{h+1}(b)\\
&=\sum_{h=1}^{m}N_h(\tilde{a}_i)\sigma^h(b)\\
&=\sum_{h=1}^{m-1}N_h(\tilde{a}_i)\sigma^h(b)+N_m(\tilde{a}_i)b. \tag*{(4)}
\end{aligned} a ~ i σ (( M i ) j , ℓ ) = h = 0 ∑ m − 1 N h + 1 ( a ~ i ) σ h + 1 ( b ) = h = 1 ∑ m N h ( a ~ i ) σ h ( b ) = h = 1 ∑ m − 1 N h ( a ~ i ) σ h ( b ) + N m ( a ~ i ) b . (4)
Hence, subtracting ( M i ) j , ℓ = b + ∑ h = 1 m − 1 N h ( a ~ i ) σ h ( b ) (M_i)_{j,\ell}=b+\sum_{h=1}^{m-1}N_h(\tilde{a}_i)\sigma^h(b) ( M i ) j , ℓ = b + ∑ h = 1 m − 1 N h ( a ~ i ) σ h ( b ) from (4) gives ( N m ( a ~ i ) − 1 ) b (N_m(\tilde{a}_i)-1)b ( N m ( a ~ i ) − 1 ) b , which yields the claimed identity. □ \square □
Theorem 4. Let either t = 2 t=2 t = 2 and m ≥ 3 m\ge3 m ≥ 3 , or 3 ≤ t < q 3\le t<q 3 ≤ t < q and m ≥ 2 m\ge2 m ≥ 2 . There exists a deterministic polynomial-time algorithm that, on input any public generator matrix G ∈ F q m m × t m G\in\mathbb{F}_{q^m}^{m\times tm} G ∈ F q m m × t m of an [ m , m ] q m / q [m,m]_{q^m/q} [ m , m ] q m / q LRS code C C C , outputs an evaluation pair ( a , b ) ∈ F q m t m × F q m m (\mathbf{a},\mathbf{b})\in\mathbb{F}_{q^m}^{tm}\times\mathbb{F}_{q^m}^{m} ( a , b ) ∈ F q m t m × F q m m such that LRS m ( a , b ) = C \operatorname{LRS}_m(\mathbf{a},\mathbf{b})=C LRS m ( a , b ) = C .
Proof. Let ( a ~ , b ~ ) (\tilde{\mathbf{a}},\tilde{\mathbf{b}}) ( a ~ , b ~ ) be an unknown evaluation pair such that C = LRS m ( a ~ , b ~ ) C=\operatorname{LRS}_m(\tilde{\mathbf{a}},\tilde{\mathbf{b}}) C = LRS m ( a ~ , b ~ ) . For 2 ≤ i ≤ t 2\le i\le t 2 ≤ i ≤ t , compute the matrix M i ∈ GL m ( F q m ) M_i\in\operatorname{GL}_m(\mathbb{F}_{q^m}) M i ∈ GL m ( F q m ) as in (2) , and set X i : = σ ( M i ) M i − 1 X_i:=\sigma(M_i)M_i^{-1} X i := σ ( M i ) M i − 1 . By Lemma 5, a ~ i σ ( M i ) = M i + ( N m ( a ~ i ) − 1 ) ( b ~ 1 ∗ ) T b ~ i \tilde{a}_i\sigma(M_i)=M_i+(N_m(\tilde{a}_i)-1)(\tilde{\mathbf{b}}_1^*)^{\mathsf{T}}\tilde{\mathbf{b}}_i a ~ i σ ( M i ) = M i + ( N m ( a ~ i ) − 1 ) ( b ~ 1 ∗ ) T b ~ i , hence
X i = ( a ~ i ) − 1 ( Id + ( N m ( a ~ i ) − 1 ) ( b ~ 1 ∗ ) T ( b ~ i M i − 1 ) ) . X_i=(\tilde{a}_i)^{-1}\left(\operatorname{Id}+(N_m(\tilde{a}_i)-1)(\tilde{\mathbf{b}}_1^*)^{\mathsf{T}}(\tilde{\mathbf{b}}_iM_i^{-1})\right). X i = ( a ~ i ) − 1 ( Id + ( N m ( a ~ i ) − 1 ) ( b ~ 1 ∗ ) T ( b ~ i M i − 1 ) ) .
i.e., X i X_i X i is the sum of a scalar matrix with the rank-one term ( a ~ i ) − 1 Y i (\tilde{a}_i)^{-1}Y_i ( a ~ i ) − 1 Y i , whose column-span is ⟨ ( b ~ 1 ∗ ) T ⟩ F q m \langle(\tilde{\mathbf{b}}_1^*)^{\mathsf{T}}\rangle_{\mathbb{F}_{q^m}} ⟨( b ~ 1 ∗ ) T ⟩ F q m . Write Y i = ( b ~ 1 ∗ ) T ( ( N m ( a ~ i ) − 1 ) ( b ~ i M i − 1 ) ) : = v i u i Y_i=(\tilde{\mathbf{b}}_1^*)^{\mathsf{T}}\left((N_m(\tilde{a}_i)-1)(\tilde{\mathbf{b}}_iM_i^{-1})\right):=\mathbf{v}_i\mathbf{u}_i Y i = ( b ~ 1 ∗ ) T ( ( N m ( a ~ i ) − 1 ) ( b ~ i M i − 1 ) ) := v i u i . Then,
Y i v i T = ( v i u i ) v i T = v i T ( u i v i T ) = ( u i v i T ) v i T . Y_i\mathbf{v}_i^{\mathsf{T}}=(\mathbf{v}_i\mathbf{u}_i)\mathbf{v}_i^{\mathsf{T}}=\mathbf{v}_i^{\mathsf{T}}(\mathbf{u}_i\mathbf{v}_i^{\mathsf{T}})=(\mathbf{u}_i\mathbf{v}_i^{\mathsf{T}})\mathbf{v}_i^{\mathsf{T}}. Y i v i T = ( v i u i ) v i T = v i T ( u i v i T ) = ( u i v i T ) v i T .
In particular, since rk ( Y i ) = 1 \operatorname{rk}(Y_i)=1 rk ( Y i ) = 1 , the eigenvalues of Y i Y_i Y i are 0 0 0 , with multiplicity m − 1 m-1 m − 1 , and u i v i T \mathbf{u}_i\mathbf{v}_i^{\mathsf{T}} u i v i T , with multiplicity 1 1 1 . If these eigenvalues are distinct, then their corresponding eigenspaces (on the right) are ⟨ u i ⟩ F q m : = { w ∈ F q m m : u i w T = 0 } \langle\mathbf{u}_i\rangle_{\mathbb{F}_{q^m}}:=\{\mathbf{w}\in\mathbb{F}_{q^m}^m:\mathbf{u}_i\mathbf{w}^{\mathsf{T}}=0\} ⟨ u i ⟩ F q m := { w ∈ F q m m : u i w T = 0 } and ⟨ v i ⟩ F q m \langle v_i\rangle_{\mathbb{F}_{q^m}} ⟨ v i ⟩ F q m . Otherwise, if u i v i T = 0 \mathbf{u}_i\mathbf{v}_i^{\mathsf{T}}=0 u i v i T = 0 , then 0 is the unique eigenvalue with corresponding eigenspace ⟨ u i ⟩ \langle\mathbf{u}_i\rangle ⟨ u i ⟩ . As a consequence, the eigenvalues of X i = ( a ~ i ) − 1 ( Id + Y i ) X_i=(\widetilde{a}_i)^{-1}(\operatorname{Id}+Y_i) X i = ( a i ) − 1 ( Id + Y i ) are δ 1 : = ( a ~ i ) − 1 \delta_1:=(\widetilde{a}_i)^{-1} δ 1 := ( a i ) − 1 and δ 2 : = ( a ~ i ) − 1 ( 1 + u i v i T ) \delta_2:=(\widetilde{a}_i)^{-1}(1+\mathbf{u}_i\mathbf{v}_i^{\mathsf{T}}) δ 2 := ( a i ) − 1 ( 1 + u i v i T ) . If δ 1 = δ 2 \delta_1=\delta_2 δ 1 = δ 2 , then a ~ i \widetilde{a}_i a i can be immediately recovered as the inverse of the unique eigenvalue of X i X_i X i for all 2 ≤ i ≤ t 2\le i\le t 2 ≤ i ≤ t . Otherwise, δ 1 \delta_1 δ 1 has multiplicity m − 1 m-1 m − 1 , while δ 2 \delta_2 δ 2 has multiplicity 1. Moreover, the eigenspace corresponding to δ 1 \delta_1 δ 1 is u i ⊥ \mathbf{u}_i^\perp u i ⊥ , while the eigenspace corresponding to δ 2 \delta_2 δ 2 is ⟨ v i ⟩ F q m \langle\mathbf{v}_i\rangle_{\mathbb{F}_{q^m}} ⟨ v i ⟩ F q m . If m ≥ 3 m\ge3 m ≥ 3 , then ( a ~ i ) − 1 (\widetilde{a}_i)^{-1} ( a i ) − 1 is the unique eigenvalue of X i X_i X i of multiplicity larger than 1, so we recover the exact value a ~ i \widetilde{a}_i a i for all 2 ≤ i ≤ t 2\le i\le t 2 ≤ i ≤ t . Otherwise, m = 2 m=2 m = 2 and t ≥ 3 t\ge3 t ≥ 3 , hence X i X_i X i admits two distinct eigenvalues of multiplicity 1. To discriminate among them, we compute the eigenvectors of all matrices X 2 , … , X t X_2,\ldots,X_t X 2 , … , X t , identify δ 2 \delta_2 δ 2 as the eigenvalue whose eigenspace is common to every block, and set a ~ i : = δ 1 − 1 \widetilde{a}_i:=\delta_1^{-1} a i := δ 1 − 1 .
At this point, recovering some valid evaluation vectors for C \mathcal{C} C can be done as follows. For i = 2 i=2 i = 2 , we can compute the matrix a 2 X 2 − Id = ( b ~ 1 ∗ ) T u 2 a_2X_2-\operatorname{Id}=(\widetilde{\mathbf{b}}_1^*)^{\mathsf{T}}\mathbf{u}_2 a 2 X 2 − Id = ( b 1 ∗ ) T u 2 . Hence, picking any of its non-zero columns, we get a vector of the form b 1 ∗ = μ 2 b ~ 1 ∗ \mathbf{b}_1^*=\mu_2\widetilde{\mathbf{b}}_1^* b 1 ∗ = μ 2 b 1 ∗ for some μ 2 ∈ F q m \mu_2\in\mathbb{F}_{q^m} μ 2 ∈ F q m . Let b 1 \mathbf{b}_1 b 1 be its dual basis, so that b 1 = μ b ~ 1 \mathbf{b}_1=\mu\widetilde{\mathbf{b}}_1 b 1 = μ b 1 with μ : = ( μ 2 ) − 1 \mu:=(\mu_2)^{-1} μ := ( μ 2 ) − 1 . Next, take the systematic matrix T G TG T G of (2) and compute b 1 T G \mathbf{b}_1TG b 1 T G . This vector is the unique vector of the code whose m m m leftmost entries give b 1 \mathbf{b}_1 b 1 . Hence
b 1 T G = μ b ~ 1 T G = μ ( b ~ 1 ∣ b ~ 2 ∣ ⋯ ∣ b ~ t ) \mathbf{b}_1TG=\mu\widetilde{\mathbf{b}}_1TG=\mu\left(\widetilde{\mathbf{b}}_1\mid\widetilde{\mathbf{b}}_2\mid\cdots\mid\widetilde{\mathbf{b}}_t\right) b 1 T G = μ b 1 T G = μ ( b 1 ∣ b 2 ∣ ⋯ ∣ b t )
Hence we get b ~ \widetilde{\mathbf{b}} b up to scalar multiplication. Since we already had a ~ \widetilde{\mathbf{a}} a up to scalar multiplication, from Lemma 2 we have an evaluation pair to describe the code. All steps in this procedure are polynomial-time. An exhaustive complexity evaluation is given in § 5.1 . □ \square □
A pseudocode description of the procedure described in Theorem 4 for t ≥ 3 t\ge3 t ≥ 3 is given in Algorithm 2.
Complexity
As in § 4.1 , we estimate the complexity in terms of operations in F q m \mathbb{F}_{q^m} F q m and applications of σ \sigma σ .
Computing the systematic form of G G G costs O ( t m ω ) O(tm^\omega) O ( t m ω ) operations in F q m \mathbb{F}_{q^m} F q m , while computing the matrices X i = σ ( M i ) M i − 1 X_i=\sigma(M_i)M_i^{-1} X i = σ ( M i ) M i − 1 for 2 ≤ i ≤ t 2\le i\le t 2 ≤ i ≤ t requires O ( t m ω ) O(tm^\omega) O ( t m ω ) operations in F q m \mathbb{F}_{q^m} F q m and O ( t m 2 ) O(tm^2) O ( t m 2 ) applications of σ \sigma σ . By [44 ] , the characteristic polynomials of X 2 , … , X t X_2,\ldots,X_t X 2 , … , X t can be computed in O ( t m ω ) O(tm^\omega) O ( t m ω ) operations in F q m \mathbb{F}_{q^m} F q m .
Due to the special form of these polynomials (only two eigenvalues, both in F q m \mathbb{F}_{q^m} F q m and with respective multiplicities m − 1 m-1 m − 1 and 1), the calculation of the eigenvalue is negligible. Then, the calculation of bases of eigenvectors for the X i X_i X i ’s costs another O ( t m ω ) O(tm^\omega) O ( t m ω ) operations in F q m \mathbb{F}_{q^m} F q m .
Once b 1 ∗ \mathbf{b}_1^* b 1 ∗ is recovered, its dual basis b 1 \mathbf{b}_1 b 1 and the matrices Moore m ( b 1 ) M i \operatorname{Moore}_m(\mathbf{b}_1)M_i Moore m ( b 1 ) M i can be determined in O ( t m ω ) O(tm^\omega) O ( t m ω ) operations in F q m \mathbb{F}_{q^m} F q m and O ( t m 2 ) O(tm^2) O ( t m 2 ) applications of σ \sigma σ . Reading off the vectors b i \mathbf{b}_i b i from the first rows of these matrices costs O ( t m ) O(tm) O ( t m ) operations. Overall, the procedure requires
O ( t m ω ) operations in F q m and O ( t m 2 ) applications of σ . O(tm^\omega)\text{ operations in }\mathbb{F}_{q^m}\quad\text{and}\quad O(tm^2)\text{ applications of }\sigma. O ( t m ω ) operations in F q m and O ( t m 2 ) applications of σ .
Algorithm 2 Key recovery for k = m k=m k = m , t ≥ 3 t\ge3 t ≥ 3
Require: Generator matrix G ∈ F q m m × t m G\in\mathbb{F}_{q^m}^{m\times tm} G ∈ F q m m × t m of an LRS code C C C
Ensure: An evaluation pair ( a , b ) (\boldsymbol{a},\boldsymbol{b}) ( a , b ) with LRS m ( a , b ) = C \operatorname{LRS}_m(\boldsymbol{a},\boldsymbol{b})=C LRS m ( a , b ) = C
Compute T T T such that T G = ( Id ∣ M 2 ∣ ⋯ ∣ M t ) TG=(\operatorname{Id}\mid M_2\mid\cdots\mid M_t) T G = ( Id ∣ M 2 ∣ ⋯ ∣ M t ) ▹ \triangleright ▹ Gaussian elimination
for 2 ≤ i ≤ t 2\le i\le t 2 ≤ i ≤ t do
X i ← σ ( M i ) M i − 1 X_i\gets\sigma(M_i)M_i^{-1} X i ← σ ( M i ) M i − 1
Compute the eigenvalues and eigenvectors of X i X_i X i
end for
for 2 ≤ i ≤ t 2\le i\le t 2 ≤ i ≤ t do
if X i X_i X i has a unique eigenvalue then
a i ← \ a_i\gets a i ← inverse of eigenvalue of X i X_i X i
else
a i ← \ a_i\gets a i ← inverse of the eigenvalue of X i X_i X i with eigenvector ≠ b 1 ∗ \ne\boldsymbol{b}_1^* = b 1 ∗
end if
end for
b 1 ∗ ← \boldsymbol{b}_1^*\gets b 1 ∗ ← non-zero column of a 2 X 2 − Id a_2X_2-\operatorname{Id} a 2 X 2 − Id ; b 1 ← \boldsymbol{b}_1\gets b 1 ← dual basis of b 1 ∗ \boldsymbol{b}_1^* b 1 ∗
b ← b 1 T G \boldsymbol{b}\gets\boldsymbol{b}_1TG b ← b 1 T G ▹ \triangleright ▹ We get b = ( b 1 ∣ b 2 ∣ ⋯ ∣ b t ) \boldsymbol{b}=(\boldsymbol{b}_1\mid\boldsymbol{b}_2\mid\cdots\mid\boldsymbol{b}_t) b = ( b 1 ∣ b 2 ∣ ⋯ ∣ b t )
return ( ( 1 , a 2 , … , a t ) , ( b 1 , … , b t ) ) ((1,a_2,\ldots,a_t),(\boldsymbol{b}_1,\ldots,\boldsymbol{b}_t)) (( 1 , a 2 , … , a t ) , ( b 1 , … , b t ))
Structure recovery for LRS codes with m + 1 ≤ k < 2 m m+1\le k<2m m + 1 ≤ k < 2 m
In this section, we consider a special instance of Problem 1 for m + 1 ≤ k < 2 m m+1\le k<2m m + 1 ≤ k < 2 m . Namely, we fix the profile of the targeted code to be m : = ( m , … , m ) ∈ Z > 0 t \mathbf{m}:=(m,\ldots,m)\in\mathbb{Z}_{>0}^t m := ( m , … , m ) ∈ Z > 0 t . We also assume that t ≥ 3 t\ge3 t ≥ 3 , the case t = 2 t=2 t = 2 will be treated separately in Section 5.3. Note that we could have directly considered the k > m k>m k > m case in its whole generality. However, we decided to separate this case for the sake of readability.
The strategy proposed here is to reduce to the case treated in § 4 . We first show that shortening C C C on a full block yields an LRS code of dimension k − m k-m k − m . We then apply the procedure of Theorem 3 to recover its parameters, and finally we explain how to lift the recovered parameters to a valid evaluation pair for C C C . The boundary case k = m + 1 k=m+1 k = m + 1 , where shortening would not leave enough information, is treated later in § 7 .
Shortening
In this subsection, we introduce the main tool underlying the procedure developed for this range of parameters, namely, the shortening operation. Shortening for sum-rank-metric codes was introduced in its full generality in [40 ] and has recently been studied from a geometric perspective in [2 ] . Here, we adopt a more restrictive definition, which is sufficient for our purposes and corresponds to the special case of shortening entire blocks of the code.
Definition 5 (Shortened code). Let G = ( G 1 ∣ ⋯ ∣ G t ) G=(G_1\mid\cdots\mid G_t) G = ( G 1 ∣ ⋯ ∣ G t ) be a generator matrix of C ⊆ F q m m C\subseteq\mathbb{F}_{q^m}^{m} C ⊆ F q m m . For I ⊆ { 1 , … , t } I\subseteq\{1,\ldots,t\} I ⊆ { 1 , … , t } , let I c = { 1 , … , t } ∖ I I^c=\{1,\ldots,t\}\setminus I I c = { 1 , … , t } ∖ I , and let G J G_J G J be the k × ∣ J ∣ m k\times|J|m k × ∣ J ∣ m submatrix of G G G formed by the blocks indexed by J ⊆ { 1 , … , t } J\subseteq\{1,\ldots,t\} J ⊆ { 1 , … , t } . Let K I K_I K I be a matrix
whose rows form a basis of the left kernel of G I G_I G I , i.e., { v ∈ F q m k : v G I = 0 } \{\mathbf{v} \in\mathbb{F}_{q^m}^k : \mathbf{v}G_I = 0\} { v ∈ F q m k : v G I = 0 } . We say that
Short I ( C ) : = rowsp ( K I G I c ) (5) \operatorname{Short}_I(C) := \operatorname{rowsp}(K_IG_{I^c}) \tag*{(5)} Short I ( C ) := rowsp ( K I G I c ) (5)
is the shortened code derived from C C C with respect to the blocks indexed by I I I .
Remark 6. In the setting of Problem 1, since the map F q m k → F q m m \mathbb{F}_{q^m}^k \to\mathbb{F}_{q^m}^m F q m k → F q m m , v ↦ v G \mathbf{v} \mapsto\mathbf{v}G v ↦ v G is injective, dim ( Short I ( C ) ) = k − rk ( G I ) \dim(\operatorname{Short}_I(C)) = k - \operatorname{rk}(G_I) dim ( Short I ( C )) = k − rk ( G I ) . Moreover, Short I ( C ) \operatorname{Short}_I(C) Short I ( C ) is the image of the subcode
C ( I ) : = { c ∈ C : c i = 0 for all i ∈ I } C_{(I)} := \{\mathbf{c} \in C : c_i = 0 \text{ for all } i \in I\} C ( I ) := { c ∈ C : c i = 0 for all i ∈ I }
under the projection π I c \pi_{I^c} π I c onto the blocks indexed by I c I^c I c . In particular, Short I ( C ) \operatorname{Short}_I(C) Short I ( C ) depends only on C C C and I I I , but not on the choice of G G G . Moreover, the generator matrix K I G I c K_IG_{I^c} K I G I c of Short I ( C ) \operatorname{Short}_I(C) Short I ( C ) can be computed by a single Gaussian elimination and a matrix product.
In this section, we will simply consider the case where I I I is a singleton. The general case will be treated in § 7 .
We now show that Short i ( C ) \operatorname{Short}_i(C) Short i ( C ) is again an LRS code, with explicit evaluation parameters.
Lemma 6. For every γ ∈ F q \gamma\in\mathbb{F}_q γ ∈ F q , the skew polynomial x m − γ x^m-\gamma x m − γ is central in F q m [ x ; σ ] \mathbb{F}_{q^m}[x;\sigma] F q m [ x ; σ ] . Moreover, for all a , b ∈ F q m a,b \in\mathbb{F}_{q^m} a , b ∈ F q m with N m ( a ) ≠ γ N_m(a) \ne\gamma N m ( a ) = γ and f ∈ F q m [ x ; σ ] f \in\mathbb{F}_{q^m}[x;\sigma] f ∈ F q m [ x ; σ ] ,
ev a , b ( ( x m − γ ) f ) = ( N m ( a ) − γ ) ev a , b ( f ) . \operatorname{ev}_{a,b}\left((x^m-\gamma)f\right) = \left(N_m(a)-\gamma\right)\operatorname{ev}_{a,b}(f). ev a , b ( ( x m − γ ) f ) = ( N m ( a ) − γ ) ev a , b ( f ) .
Proof. By Remark 1, for every polynomial f = ∑ j f j x j f = \sum_j f_jx^j f = ∑ j f j x j , centrality gives ( x m − γ ) f = ∑ j f j x j + m − γ ∑ j f j x j (x^m-\gamma)f = \sum_j f_jx^{j+m} - \gamma\sum_j f_jx^j ( x m − γ ) f = ∑ j f j x j + m − γ ∑ j f j x j . Hence, by Remark 2,
ev a , b ( ( x m − γ ) f ) = ∑ j f j σ j + m ( b ) N j + m ( a ) − γ ∑ j f j σ j ( b ) N j ( a ) = ( N m ( a ) − γ ) ∑ j f j σ j ( b ) N j ( a ) = ( N m ( a ) − γ ) ev a , b ( f ) . \begin{aligned}
\operatorname{ev}_{a,b}\left((x^m-\gamma)f\right)
&= \sum_j f_j\sigma^{j+m}(b)N_{j+m}(a)-\gamma\sum_j f_j\sigma^j(b)N_j(a) \\
&= \left(N_m(a)-\gamma\right)\sum_j f_j\sigma^j(b)N_j(a) \\
&= \left(N_m(a)-\gamma\right)\operatorname{ev}_{a,b}(f).
\end{aligned} ev a , b ( ( x m − γ ) f ) = j ∑ f j σ j + m ( b ) N j + m ( a ) − γ j ∑ f j σ j ( b ) N j ( a ) = ( N m ( a ) − γ ) j ∑ f j σ j ( b ) N j ( a ) = ( N m ( a ) − γ ) ev a , b ( f ) .
□ \square □
Lemma 7. Let 2 ≤ t < q 2 \le t < q 2 ≤ t < q , m + 1 ≤ k < 2 m m+1 \le k < 2m m + 1 ≤ k < 2 m , and let ( a , b ) ∈ F q m t × F q m t m (\mathbf{a},\mathbf{b}) \in\mathbb{F}_{q^m}^t \times\mathbb{F}_{q^m}^{tm} ( a , b ) ∈ F q m t × F q m t m be an evaluation pair. Fix 1 ≤ i ≤ t 1 \le i \le t 1 ≤ i ≤ t and let c = ( c 1 , … , c t ) ∈ LRS k ( a , b ) \mathbf{c} = (c_1,\ldots,c_t) \in\operatorname{LRS}_k(\mathbf{a},\mathbf{b}) c = ( c 1 , … , c t ) ∈ LRS k ( a , b ) be a non-zero codeword such that c = ev a , b ( g ) \mathbf{c} = \operatorname{ev}_{\mathbf{a},\mathbf{b}}(g) c = ev a , b ( g ) for g ∈ F q m [ x ; σ ] < k g \in\mathbb{F}_{q^m}[x;\sigma]_{<k} g ∈ F q m [ x ; σ ] < k and c i = 0 c_i = 0 c i = 0 . Then, there exists a non-zero f ∈ F q m [ x ; σ ] < k − m f \in\mathbb{F}_{q^m}[x;\sigma]_{<k-m} f ∈ F q m [ x ; σ ] < k − m such that g = ( x m − N m ( a i ) ) f g = (x^m-N_m(a_i))f g = ( x m − N m ( a i )) f and, for all 1 ≤ j ≤ t 1 \le j \le t 1 ≤ j ≤ t with j ≠ i j \ne i j = i ,
c j = ( N m ( a j ) − N m ( a i ) ) ( ev a j , b j , 1 ( f ) , … , ev a j , b j , m ( f ) ) . c_j = \left(N_m(a_j)-N_m(a_i)\right)\left(\operatorname{ev}_{a_j,b_{j,1}}(f),\ldots,\operatorname{ev}_{a_j,b_{j,m}}(f)\right). c j = ( N m ( a j ) − N m ( a i ) ) ( ev a j , b j , 1 ( f ) , … , ev a j , b j , m ( f ) ) . Proof. Set γ i : = N m ( a i ) ∈ F q \gamma_i := N_m(a_i) \in\mathbb{F}_q γ i := N m ( a i ) ∈ F q for the fixed index 1 ≤ i ≤ t 1 \le i \le t 1 ≤ i ≤ t . By Remark 1, x m − γ i x^m-\gamma_i x m − γ i belongs to the center of F q m [ x ; σ ] \mathbb{F}_{q^m}[x;\sigma] F q m [ x ; σ ] . Hence, Euclidean division on the left and on the right are the same and give
g = f ( x m − γ i ) + r = ( x m − γ i ) f + r , (6) g = f(x^m-\gamma_i)+r = (x^m-\gamma_i)f+r, \tag*{(6)} g = f ( x m − γ i ) + r = ( x m − γ i ) f + r , (6)
for some f ∈ F q m [ x ; σ ] < k − m f \in\mathbb{F}_{q^m}[x;\sigma]_{<k-m} f ∈ F q m [ x ; σ ] < k − m and r ∈ F q m [ x ; σ ] < m r \in\mathbb{F}_{q^m}[x;\sigma]_{<m} r ∈ F q m [ x ; σ ] < m . In particular, ev a i , b i ( g ) = c i = 0 \operatorname{ev}_{a_i,b_i}(g)=\mathbf{c}_i=0 ev a i , b i ( g ) = c i = 0 and Lemma 6 gives ev a i , b i , ℓ ( r ) = 0 \operatorname{ev}_{a_i,b_{i,\ell}}(r)=0 ev a i , b i , ℓ ( r ) = 0 for all 1 ≤ ℓ ≤ m 1 \le\ell\le m 1 ≤ ℓ ≤ m . Thus, since deg ( r ) < m \deg(r)<m deg ( r ) < m , we deduce from Lemma 1 that
r = 0 and g = ( x m − γ i ) f . r=0 \quad\text{and}\quad g=(x^m-\gamma_i)f. r = 0 and g = ( x m − γ i ) f .
In particular, since c = ev a , b ( g ) ≠ 0 \mathbf{c}=\operatorname{ev}_{\mathbf{a},\mathbf{b}}(g)\ne0 c = ev a , b ( g ) = 0 , then f ≠ 0 f\ne0 f = 0 . Finally, by Lemma 6, for every 1 ≤ j ≤ t 1\le j\le t 1 ≤ j ≤ t with j ≠ i j\ne i j = i , c j = ( c j , 1 , … , c j , m ) \mathbf{c}_j=(c_{j,1},\ldots,c_{j,m}) c j = ( c j , 1 , … , c j , m ) with
c j , ℓ = ev a j , b j , ℓ ( ( x m − γ i ) f ) = ( N m ( a j ) − γ i ) ev a j , b j , ℓ ( f ) , 1 ≤ ℓ ≤ m . c_{j,\ell}=\operatorname{ev}_{a_j,b_{j,\ell}}\left((x^m-\gamma_i)f\right)=(N_m(a_j)-\gamma_i)\operatorname{ev}_{a_j,b_{j,\ell}}(f),\quad1\le\ell\le m. c j , ℓ = ev a j , b j , ℓ ( ( x m − γ i ) f ) = ( N m ( a j ) − γ i ) ev a j , b j , ℓ ( f ) , 1 ≤ ℓ ≤ m .
Proposition 3. Let 2 ≤ t < q 2\le t<q 2 ≤ t < q , m + 1 ≤ k < 2 m m+1\le k<2m m + 1 ≤ k < 2 m , and C = LRS k ( a , b ) C=\operatorname{LRS}_k(\mathbf{a},\mathbf{b}) C = LRS k ( a , b ) for some evaluation pair ( a , b ) ∈ F q m t × F q m t m (\mathbf{a},\mathbf{b})\in\mathbb{F}_{q^m}^{t}\times\mathbb{F}_{q^m}^{tm} ( a , b ) ∈ F q m t × F q m t m . Fix 1 ≤ i ≤ t 1\le i\le t 1 ≤ i ≤ t and set
a ′ : = ( a 1 , … , a i − 1 , a i + 1 , … , a t ) \mathbf{a}' := (a_1,\ldots,a_{i-1},a_{i+1},\ldots,a_t) a ′ := ( a 1 , … , a i − 1 , a i + 1 , … , a t ) b ′ : = ( μ 1 b 1 , … , μ i − 1 b i − 1 , μ i + 1 b i + 1 , … , μ t b t ) , \mathbf{b}' := (\mu_1\mathbf{b}_1,\ldots,\mu_{i-1}\mathbf{b}_{i-1},\mu_{i+1}\mathbf{b}_{i+1},\ldots,\mu_t\mathbf{b}_t), b ′ := ( μ 1 b 1 , … , μ i − 1 b i − 1 , μ i + 1 b i + 1 , … , μ t b t ) , with μ j : = N m ( a i ) − 1 N m ( a j ) − 1 \mu_j:=N_m(a_i)^{-1}N_m(a_j)-1 μ j := N m ( a i ) − 1 N m ( a j ) − 1 for 1 ≤ j ≤ t 1\le j\le t 1 ≤ j ≤ t with j ≠ i j\ne i j = i . Then, ( a ′ , b ′ ) ∈ F q m t − 1 × F q m ( t − 1 ) m (\mathbf{a}',\mathbf{b}')\in\mathbb{F}_{q^m}^{t-1}\times\mathbb{F}_{q^m}^{(t-1)m} ( a ′ , b ′ ) ∈ F q m t − 1 × F q m ( t − 1 ) m , with m ′ : = ( m , … , m ) ∈ Z > 0 t − 1 \mathbf{m}':=(m,\ldots,m)\in\mathbb{Z}_{>0}^{t-1} m ′ := ( m , … , m ) ∈ Z > 0 t − 1 , is an evaluation pair and
Short i ( C ) = LRS k − m ( a ′ , b ′ ) . \operatorname{Short}_i(C)=\operatorname{LRS}_{k-m}(\mathbf{a}',\mathbf{b}'). Short i ( C ) = LRS k − m ( a ′ , b ′ ) .
Proof. Since a \mathbf{a} a forms an evaluation pair with b \mathbf{b} b , μ j : = N m ( a i ) − 1 N m ( a j ) − 1 ∈ F q ∗ \mu_j:=N_m(a_i)^{-1}N_m(a_j)-1\in\mathbb{F}_q^* μ j := N m ( a i ) − 1 N m ( a j ) − 1 ∈ F q ∗ for all 1 ≤ j ≤ t 1\le j\le t 1 ≤ j ≤ t with j ≠ i j\ne i j = i . Therefore, the rank of the rescaled vectors b j ′ : = μ j b j \mathbf{b}'_j:=\mu_j\mathbf{b}_j b j ′ := μ j b j is preserved, and ( a ′ , b ′ ) (\mathbf{a}',\mathbf{b}') ( a ′ , b ′ ) is still an evaluation pair.
Let c ( i ) : = ( c 1 , … , c i − 1 , c i + 1 , … , c t ) ∈ Short i ( C ) \mathbf{c}^{(i)}:=(\mathbf{c}_1,\ldots,\mathbf{c}_{i-1},\mathbf{c}_{i+1},\ldots,\mathbf{c}_t)\in\operatorname{Short}_i(C) c ( i ) := ( c 1 , … , c i − 1 , c i + 1 , … , c t ) ∈ Short i ( C ) be a non-zero codeword. By Remark 6, we have that ( c 1 , … , c i − 1 , 0 , c i + 1 , … , c t ) ∈ C (\mathbf{c}_1,\ldots,\mathbf{c}_{i-1},0,\mathbf{c}_{i+1},\ldots,\mathbf{c}_t)\in C ( c 1 , … , c i − 1 , 0 , c i + 1 , … , c t ) ∈ C . Moreover, for all 1 ≤ j ≤ t 1\le j\le t 1 ≤ j ≤ t with j ≠ i j\ne i j = i , by Lemma 7 there exists a polynomial f ∈ F q m [ x ; σ ] < k − m f\in\mathbb{F}_{q^m}[x;\sigma]_{<k-m} f ∈ F q m [ x ; σ ] < k − m such that, for all 1 ≤ j ≤ t 1\le j\le t 1 ≤ j ≤ t with j ≠ i j\ne i j = i ,
c j = ( N m ( a j ) − N m ( a i ) ) ev a j , b j ( f ) = N m ( a i ) ev a j , b j ′ ( f ) = ev a j , b j ′ ( N m ( a i ) f ) , \mathbf{c}_j=(N_m(a_j)-N_m(a_i))\operatorname{ev}_{a_j,\mathbf{b}_j}(f)=N_m(a_i)\operatorname{ev}_{a_j,\mathbf{b}'_j}(f)=\operatorname{ev}_{a_j,\mathbf{b}'_j}(N_m(a_i)f), c j = ( N m ( a j ) − N m ( a i )) ev a j , b j ( f ) = N m ( a i ) ev a j , b j ′ ( f ) = ev a j , b j ′ ( N m ( a i ) f ) ,
using the F q \mathbb{F}_q F q -linearity of the map b ↦ ev a j , b ( f ) \mathbf{b}\mapsto\operatorname{ev}_{a_j,\mathbf{b}}(f) b ↦ ev a j , b ( f ) and the F q m \mathbb{F}_{q^m} F q m -linearity of ev a j , b \operatorname{ev}_{a_j,\mathbf{b}} ev a j , b . Therefore, c ( i ) ∈ LRS k − m ( a ′ , b ′ ) \mathbf{c}^{(i)}\in\operatorname{LRS}_{k-m}(\mathbf{a}',\mathbf{b}') c ( i ) ∈ LRS k − m ( a ′ , b ′ ) . Hence, Short i ( C ) ⊆ LRS k − m ( a ′ , b ′ ) \operatorname{Short}_i(C)\subseteq\operatorname{LRS}_{k-m}(\mathbf{a}',\mathbf{b}') Short i ( C ) ⊆ LRS k − m ( a ′ , b ′ ) . Note that the i i i -th block of G G G corresponds to the i i i -th block of G k ( a ~ , b ~ ) G_k(\widetilde{\mathbf{a}},\widetilde{\mathbf{b}}) G k ( a , b ) , up to left multiplication by an invertible matrix. By Remark 2, rk ( G i ) = rk ( D k ( a ~ i ) Moore k ( b ~ i ) ) = rk ( D m ( a ~ i ) Moore m ( b ~ i ) ) = m \operatorname{rk}(G_i)=\operatorname{rk}\left(D_k(\widetilde{a}_i)\operatorname{Moore}_k(\widetilde{\mathbf{b}}_i)\right)=\operatorname{rk}\left(D_m(\widetilde{a}_i)\operatorname{Moore}_m(\widetilde{\mathbf{b}}_i)\right)=m rk ( G i ) = rk ( D k ( a i ) Moore k ( b i ) ) = rk ( D m ( a i ) Moore m ( b i ) ) = m , which gives
dim ( Short i ( C ) ) = rk ( K i ) = k − m = dim ( LRS k − m ( a ′ , b ′ ) ) , \dim(\operatorname{Short}_i(C))=\operatorname{rk}(K_i)=k-m=\dim\left(\operatorname{LRS}_{k-m}(\mathbf{a}',\mathbf{b}')\right), dim ( Short i ( C )) = rk ( K i ) = k − m = dim ( LRS k − m ( a ′ , b ′ ) ) ,
hence we conclude that equality holds.
Retrieving the evaluation parameters of the original code
We now show how to recover an evaluation pair ( a , b ) (\mathbf{a},\mathbf{b}) ( a , b ) such that LRS k ( a , b ) \operatorname{LRS}_k(\mathbf{a},\mathbf{b}) LRS k ( a , b ) coincides with C = LRS k ( a ~ , b ~ ) C=\operatorname{LRS}_k(\widetilde{\mathbf{a}},\widetilde{\mathbf{b}}) C = LRS k ( a , b ) . We first consider the generic case t ≥ 3 t\ge3 t ≥ 3 , postponing the case of 2-block codes to Section 5.3.
The idea is to consider two distinct shortenings of the code at a single block. In particular, we first deal with the code shortened at the first block, and then with the code shortened at the second one. For both shortened codes, we apply the procedure of Theorem 3. This is legitimate provided that the shortened code has dimension at least 2 and length larger than its dimension, which requires m + 2 ≤ k < 2 m m+2 \le k < 2m m + 2 ≤ k < 2 m . Each run returns the parameters of all non-shortened blocks, up to a common pair of scalar multipliers and block-dependent factors. Moreover, block 3 is left unshortened in both runs, allowing us to reconcile the two outputs and recover an evaluation pair for the original code.
Theorem 5. Let 3 ≤ t < q 3 \le t < q 3 ≤ t < q and m + 2 ≤ k < 2 m m+2 \le k < 2m m + 2 ≤ k < 2 m . There exists a deterministic polynomial-time algorithm that, on input any generator matrix G ∈ F q m k × t m G \in\mathbb{F}_{q^m}^{k \times tm} G ∈ F q m k × t m of an [ m , k ] q m / q [m,k]_{q^m/q} [ m , k ] q m / q LRS code C C C , outputs an evaluation pair ( a , b ) ∈ F q m t × F q m m (\mathbf{a},\mathbf{b}) \in\mathbb{F}_{q^m}^{t} \times\mathbb{F}_{q^m}^{m} ( a , b ) ∈ F q m t × F q m m such that LRS k ( a , b ) = C \operatorname{LRS}_k(\mathbf{a},\mathbf{b})=C LRS k ( a , b ) = C .
Proof. Let ( a ~ , b ~ ) (\tilde{\mathbf{a}},\tilde{\mathbf{b}}) ( a ~ , b ~ ) be an unknown evaluation pair such that C = LRS k ( a ~ , b ~ ) C=\operatorname{LRS}_k(\tilde{\mathbf{a}},\tilde{\mathbf{b}}) C = LRS k ( a ~ , b ~ ) . For 1 ≤ i , j ≤ t 1 \le i,j \le t 1 ≤ i , j ≤ t with i ≠ j i \ne j i = j , set
ρ ~ i , j : = N m ( a ~ i ) − 1 N m ( a ~ j ) − 1 ∈ F q ∗ . \tilde{\rho}_{i,j}:=N_m(\tilde{a}_i)^{-1}N_m(\tilde{a}_j)-1 \in\mathbb{F}_{q}^{*}. ρ ~ i , j := N m ( a ~ i ) − 1 N m ( a ~ j ) − 1 ∈ F q ∗ . For i ∈ { 1 , 2 } i \in\{1,2\} i ∈ { 1 , 2 } , compute a generator matrix of Short i ( C ) \operatorname{Short}_i(C) Short i ( C ) as in (5) and apply the procedure of Theorem 3 to it, which is legitimate since 2 ≤ k − m ≤ m − 1 2 \le k-m \le m-1 2 ≤ k − m ≤ m − 1 . By Proposition 3, Theorem 3 and Proposition 2, this returns an evaluation pair ( a ( i ) , b ( i ) ) (\mathbf{a}^{(i)},\mathbf{b}^{(i)}) ( a ( i ) , b ( i ) ) such that, for some λ i , μ i ∈ F q m ∗ \lambda_i,\mu_i \in\mathbb{F}_{q^m}^{*} λ i , μ i ∈ F q m ∗ ,
a j ( i ) = λ i a ~ j , b j ( i ) = μ i ρ ~ i , j b ~ j , for 1 ≤ j ≤ t , j ≠ i . a_j^{(i)}=\lambda_i\tilde{a}_j,\qquad b_j^{(i)}=\mu_i\tilde{\rho}_{i,j}\tilde{b}_j,\qquad\text{for }1\le j\le t,\ j\ne i. a j ( i ) = λ i a ~ j , b j ( i ) = μ i ρ ~ i , j b ~ j , for 1 ≤ j ≤ t , j = i . Since t ≥ 3 t \ge3 t ≥ 3 , block 3 appears in both runs, and
a 3 ( 1 ) ( a 3 ( 2 ) ) − 1 = λ 1 λ 2 − 1 . a_3^{(1)}\left(a_3^{(2)}\right)^{-1}=\lambda_1\lambda_2^{-1}. a 3 ( 1 ) ( a 3 ( 2 ) ) − 1 = λ 1 λ 2 − 1 . Set a 1 : = a 3 ( 1 ) ( a 3 ( 2 ) ) − 1 a 1 ( 2 ) = λ 1 a ~ 1 a_1:=a_3^{(1)}\left(a_3^{(2)}\right)^{-1}a_1^{(2)}=\lambda_1\tilde{a}_1 a 1 := a 3 ( 1 ) ( a 3 ( 2 ) ) − 1 a 1 ( 2 ) = λ 1 a ~ 1 and a j : = a j ( 1 ) = λ 1 a ~ j a_j:=a_j^{(1)}=\lambda_1\tilde{a}_j a j := a j ( 1 ) = λ 1 a ~ j for 2 ≤ j ≤ t 2\le j\le t 2 ≤ j ≤ t . Then, a = ( a 1 , … , a t ) = λ 1 a ~ \mathbf{a}=(a_1,\ldots,a_t)=\lambda_1\tilde{\mathbf{a}} a = ( a 1 , … , a t ) = λ 1 a ~ .
By multiplicativity of the norm, N m ( a i ) − 1 N m ( a j ) = N m ( a ~ i ) − 1 N m ( a ~ j ) N_m(a_i)^{-1}N_m(a_j)=N_m(\tilde{a}_i)^{-1}N_m(\tilde{a}_j) N m ( a i ) − 1 N m ( a j ) = N m ( a ~ i ) − 1 N m ( a ~ j ) , hence every ρ ~ i , j \tilde{\rho}_{i,j} ρ ~ i , j is computable from a \mathbf{a} a . For 2 ≤ j ≤ t 2\le j\le t 2 ≤ j ≤ t , set b j : = ( ρ ~ 1 , j ) − 1 b j ( 1 ) = μ 1 b ~ j b_j:=(\tilde{\rho}_{1,j})^{-1}b_j^{(1)}=\mu_1\tilde{b}_j b j := ( ρ ~ 1 , j ) − 1 b j ( 1 ) = μ 1 b ~ j . Moreover, ( ρ ~ 2 , 3 ) − 1 b 3 ( 2 ) = μ 2 b ~ 3 (\tilde{\rho}_{2,3})^{-1}b_3^{(2)}=\mu_2\tilde{b}_3 ( ρ ~ 2 , 3 ) − 1 b 3 ( 2 ) = μ 2 b ~ 3 . Since b ~ 3 \tilde{\mathbf{b}}_3 b ~ 3 is an evaluation vector, there exists 1 ≤ ℓ ≤ m 1\le\ell\le m 1 ≤ ℓ ≤ m such that b ~ 3 , ℓ ≠ 0 \tilde{b}_{3,\ell}\ne0 b ~ 3 , ℓ = 0 . Hence, comparing the ℓ \ell ℓ -th entry of b 3 b_3 b 3 with that of b 3 ( 2 ) b_3^{(2)} b 3 ( 2 ) gives
μ : = b 3 , ℓ ρ ~ 2 , 3 ( b 3 , ℓ ( 2 ) ) − 1 = μ 1 μ 2 − 1 . \mu:=b_{3,\ell}\tilde{\rho}_{2,3}\left(b_{3,\ell}^{(2)}\right)^{-1}=\mu_1\mu_2^{-1}. μ := b 3 , ℓ ρ ~ 2 , 3 ( b 3 , ℓ ( 2 ) ) − 1 = μ 1 μ 2 − 1 . Hence, we finally set b 1 : = μ ( ρ ~ 2 , 1 ) − 1 b 1 ( 2 ) = μ 1 b ~ 1 b_1:=\mu(\tilde{\rho}_{2,1})^{-1}b_1^{(2)}=\mu_1\tilde{b}_1 b 1 := μ ( ρ ~ 2 , 1 ) − 1 b 1 ( 2 ) = μ 1 b ~ 1 .
In conclusion, by Lemma 2, ( a , b ) = ( λ 1 a ~ , μ 1 b ~ ) (\mathbf{a},\mathbf{b})=(\lambda_1\tilde{\mathbf{a}},\mu_1\tilde{\mathbf{b}}) ( a , b ) = ( λ 1 a ~ , μ 1 b ~ ) is an evaluation pair, and LRS k ( a , b ) = LRS k ( a ~ , b ~ ) = C \operatorname{LRS}_k(\mathbf{a},\mathbf{b})=\operatorname{LRS}_k(\tilde{\mathbf{a}},\tilde{\mathbf{b}})=C LRS k ( a , b ) = LRS k ( a ~ , b ~ ) = C . All steps are polynomial-time. An exhaustive complexity evaluation will be given in the general case in § 7.1 . □ \quad\Box □
A pseudocode description of the procedure described in Theorem 5 is given in Algorithm 3.
Algorithm 3 Key recovery for m + 2 ≤ k < 2 m m+2 \le k < 2m m + 2 ≤ k < 2 m , t ≥ 3 t \ge3 t ≥ 3
Require: G = ( G 1 ∣ ⋯ ∣ G t ) ∈ F q m k × t m G=(G_1\mid\cdots\mid G_t)\in\mathbb{F}_{q^m}^{k\times tm} G = ( G 1 ∣ ⋯ ∣ G t ) ∈ F q m k × t m generating an LRS code C C C
Ensure: An evaluation pair ( a , b ) (\mathbf{a},\mathbf{b}) ( a , b ) with LRS k ( a , b ) = C \operatorname{LRS}_k(\mathbf{a},\mathbf{b})=C LRS k ( a , b ) = C
for i ∈ { 1 , 2 } i\in\{1,2\} i ∈ { 1 , 2 } do
K i ← K_i\gets K i ← basis of the left kernel of G i G_i G i ▷ Gaussian elimination
( a j ( i ) , b j ( i ) ) j ≠ i ← (\mathbf{a}^{(i)}_j,\mathbf{b}^{(i)}_j)_{j\ne i}\gets ( a j ( i ) , b j ( i ) ) j = i ← Algorithm 1 ( K i G ( i ^ ) ) (K_iG^{(\hat{i})}) ( K i G ( i ^ ) ) ▷ G ( i ^ ) ← G G^{(\hat{i})}\gets G G ( i ^ ) ← G without block i i i
end for
λ ← a 3 ( 1 ) / a 3 ( 2 ) \lambda\gets a^{(1)}_3/a^{(2)}_3 λ ← a 3 ( 1 ) / a 3 ( 2 ) ; ( a 1 , … , a t ) ← ( λ a 1 ( 2 ) , a 2 ( 1 ) , … , a t ( 1 ) ) (a_1,\ldots,a_t)\gets(\lambda a^{(2)}_1,a^{(1)}_2,\ldots,a^{(1)}_t) ( a 1 , … , a t ) ← ( λ a 1 ( 2 ) , a 2 ( 1 ) , … , a t ( 1 ) )
for 2 ≤ j ≤ t 2\le j\le t 2 ≤ j ≤ t do
ρ 1 , j ← N m ( a 1 ) − 1 N m ( a j ) − 1 \rho_{1,j}\gets N_m(a_1)^{-1}N_m(a_j)-1 ρ 1 , j ← N m ( a 1 ) − 1 N m ( a j ) − 1 ; b j ← ρ 1 , j − 1 b j ( 1 ) b_j\gets\rho_{1,j}^{-1}b^{(1)}_j b j ← ρ 1 , j − 1 b j ( 1 )
end for
Pick ℓ \ell ℓ with b 3 , ℓ ≠ 0 b_{3,\ell}\ne0 b 3 , ℓ = 0 ; μ ← b 3 , ℓ ρ 2 , 3 / b 3 , ℓ ( 2 ) \mu\gets b_{3,\ell}\rho_{2,3}/b^{(2)}_{3,\ell} μ ← b 3 , ℓ ρ 2 , 3 / b 3 , ℓ ( 2 ) ; b 1 ← μ ρ 2 , 1 − 1 b 1 ( 2 ) b_1\gets\mu\rho_{2,1}^{-1}b^{(2)}_1 b 1 ← μ ρ 2 , 1 − 1 b 1 ( 2 )
return ( ( a 1 , … , a t ) , ( b 1 , … , b t ) ) ((a_1,\ldots,a_t),(b_1,\ldots,b_t)) (( a 1 , … , a t ) , ( b 1 , … , b t ))
Case t = 2 t=2 t = 2 and m + 2 ≤ k < 2 m m+2\le k<2m m + 2 ≤ k < 2 m
With this setting, the dual code of C C C is an [ m , 2 m − k ] q m / q [m,2m-k]_{q^m/q} [ m , 2 m − k ] q m / q LRS code of dimension 2 ≤ 2 m − k ≤ m − 2 2\le2m-k\le m-2 2 ≤ 2 m − k ≤ m − 2 . Hence, Theorem 3 applies directly to C ⊥ C^\perp C ⊥ . An evaluation pair for C C C is then recovered via Theorem 1 and [28 Section 2.5] .
Note that the only remaining case, namely t = 2 t=2 t = 2 and k = 2 m − 1 k=2m-1 k = 2 m − 1 , corresponds to the degenerate setting in which the code C C C has minimum distance d = 2 m − ( 2 m − 1 ) + 1 = 2 d=2m-(2m-1)+1=2 d = 2 m − ( 2 m − 1 ) + 1 = 2 . As a consequence, its error-correcting capability is null, and we may therefore discard this case, as it is of no practical interest from a cryptographic perspective.
Generalized structure recovery for LRS codes with k ≥ 2 m k\ge2m k ≥ 2 m
In this section, we show how to iteratively apply the procedures described in the sections above to address Problem 1 for codes with 2 m ≤ k ≤ t m 2m\le k\le tm 2 m ≤ k ≤ t m and profile m : = ( m , … , m ) ∈ Z > 0 t \mathbf{m}:=(m,\ldots,m)\in\mathbb{Z}_{>0}^t m := ( m , … , m ) ∈ Z > 0 t . Write k = p m + r k=pm+r k = p m + r with
p : = ⌊ k m ⌋ ∈ { 2 , … , t } and r : = k − p m ∈ { 0 , … , m − 1 } . p:=\left\lfloor\frac{k}{m}\right\rfloor\in\{2,\ldots,t\}\qquad\text{and}\qquad r:=k-pm\in\{0,\ldots,m-1\}. p := ⌊ m k ⌋ ∈ { 2 , … , t } and r := k − p m ∈ { 0 , … , m − 1 } .
Following the approach of Section 5, the main idea is to shorten several blocks at once, thereby reducing the problem to one of the configurations already treated above. We then recover the parameters of the shortened code and lift them back to the original code. However, the constructions presented in Section 5 do not directly extend to the present setting. In particular, some of the previous definitions and results, including Lemma 7, need first to be generalized.
Hence, Lemma 7 is extended to every dimension and every set of blocks by Lemma 8 below.
Lemma 8. Assume 2 ≤ t < q 2\le t<q 2 ≤ t < q and m + 1 ≤ k ≤ t m m+1\le k\le tm m + 1 ≤ k ≤ t m . Let ( a , b ) ∈ F q m t × F q m t m (\mathbf{a},\mathbf{b})\in\mathbb{F}_{q^m}^t\times\mathbb{F}_{q^m}^{tm} ( a , b ) ∈ F q m t × F q m t m be an evaluation pair, I ⊆ { 1 , … , t } I\subseteq\{1,\ldots,t\} I ⊆ { 1 , … , t } with ∣ I ∣ m < k |I|m<k ∣ I ∣ m < k , and let g ∈ F q m [ x ; σ ] < k g\in\mathbb{F}_{q^m}[x;\sigma]_{<k} g ∈ F q m [ x ; σ ] < k be such
that ev a i , b i ( g ) = 0 \operatorname{ev}_{a_i,b_i}(g)=0 ev a i , b i ( g ) = 0 for all i ∈ I i \in I i ∈ I . Then, there exists a unique f ∈ F q m [ x ; σ ] < k − ∣ I ∣ m f \in\mathbb{F}_{q^m}[x;\sigma]_{<k-|I|m} f ∈ F q m [ x ; σ ] < k − ∣ I ∣ m such that
g = ( ∏ i ∈ I ( x m − N m ( a i ) ) ) f . g=\left(\prod_{i\in I}(x^m-N_m(a_i))\right)f. g = ( i ∈ I ∏ ( x m − N m ( a i )) ) f .
Moreover, for every j ∈ I c j \in I^c j ∈ I c and every b ∈ F q m b \in\mathbb{F}_{q^m} b ∈ F q m ,
ev a j , b ( g ) = ( ∏ i ∈ I ( N m ( a j ) − N m ( a i ) ) ) ev a j , b ( f ) . (7) \operatorname{ev}_{a_j,b}(g)=\left(\prod_{i\in I}(N_m(a_j)-N_m(a_i))\right)\operatorname{ev}_{a_j,b}(f). \tag*{(7)} ev a j , b ( g ) = ( i ∈ I ∏ ( N m ( a j ) − N m ( a i )) ) ev a j , b ( f ) . (7)
Proof. Consider the polynomial
h I ( x ) : = ∏ i ∈ I ( x m − N m ( a i ) ) . h_I(x):=\prod_{i\in I}(x^m-N_m(a_i)). h I ( x ) := i ∈ I ∏ ( x m − N m ( a i )) .
This polynomial is central in F q m [ x ; σ ] \mathbb{F}_{q^m}[x;\sigma] F q m [ x ; σ ] . Then, similarly to Lemma 7, consider the Euclidean division of g g g by h I h_I h I giving g = f h I + r g=fh_I+r g = f h I + r for some r ∈ F q m [ x ; σ ] < m ∣ I ∣ r\in\mathbb{F}_{q^m}[x;\sigma]_{<m|I|} r ∈ F q m [ x ; σ ] < m ∣ I ∣ . The vanishing constraints on g g g together with an inductive application of Lemma 1 lead to prove that r = 0 r=0 r = 0 . Hence, (6) is obtained by evaluating skew polynomials of the form g = f h I = h I f g=fh_I=h_If g = f h I = h I f since h I h_I h I is central. This yields the proof. ◻
We now show that shortening on several blocks produces again an LRS code, whose evaluation parameters depend on the product of the single-block multipliers determined in Proposition 3.
Proposition 4. Let 2 ≤ t < q 2 \le t < q 2 ≤ t < q , m + 1 ≤ k ≤ t m m+1 \le k \le tm m + 1 ≤ k ≤ t m , and C = LRS k ( a , b ) \mathcal{C}=\operatorname{LRS}_k(\mathbf{a},\mathbf{b}) C = LRS k ( a , b ) for some evaluation pair ( a , b ) ∈ F q m t × F q m t m (\mathbf{a},\mathbf{b})\in\mathbb{F}_{q^m}^t\times\mathbb{F}_{q^m}^{tm} ( a , b ) ∈ F q m t × F q m t m . Fix I ⊆ { 1 , … , t } I\subseteq\{1,\ldots,t\} I ⊆ { 1 , … , t } such that ∣ I ∣ m < k |I|m<k ∣ I ∣ m < k . Let a ′ \mathbf{a}' a ′ be the vector obtained by removing from a \mathbf{a} a the entries indexed by I I I , and set
b j ′ : = ρ j b j , ρ j : = ∏ i ∈ I ( N m ( a i ) − 1 N m ( a j ) − 1 ) ∈ F q ∗ , j ∈ I c . b'_j:=\rho_jb_j,\qquad\rho_j:=\prod_{i\in I}\left(N_m(a_i)^{-1}N_m(a_j)-1\right)\in\mathbb{F}_q^*,\qquad j\in I^c. b j ′ := ρ j b j , ρ j := i ∈ I ∏ ( N m ( a i ) − 1 N m ( a j ) − 1 ) ∈ F q ∗ , j ∈ I c . Then, ( a ′ , b ′ ) ∈ F q m t − ∣ I ∣ × F q m m ′ (\mathbf{a}',\mathbf{b}')\in\mathbb{F}_{q^m}^{t-|I|}\times\mathbb{F}_{q^m}^{m'} ( a ′ , b ′ ) ∈ F q m t − ∣ I ∣ × F q m m ′ , with m ′ : = ( m , … , m ) ∈ Z > 0 t − ∣ I ∣ \mathbf{m}':=(m,\ldots,m)\in\mathbb{Z}_{>0}^{t-|I|} m ′ := ( m , … , m ) ∈ Z > 0 t − ∣ I ∣ , is an evaluation pair and
Short I ( C ) = LRS k − ∣ I ∣ m ( a ′ , b ′ ) . \operatorname{Short}_I(\mathcal{C})=\operatorname{LRS}_{k-|I|m}(\mathbf{a}',\mathbf{b}'). Short I ( C ) = LRS k − ∣ I ∣ m ( a ′ , b ′ ) . In particular, rk ( G I ) = ∣ I ∣ m \operatorname{rk}(G_I)=|I|m rk ( G I ) = ∣ I ∣ m .
Proof. First of all, note that ( a ′ , b ′ ) (\mathbf{a}',\mathbf{b}') ( a ′ , b ′ ) is still an evaluation pair by Lemma 2. Set
k ′ : = k − ∣ I ∣ m , h I : = ∏ i ∈ I ( x m − N m ( a i ) ) , ν : = ∏ i ∈ I N m ( a i ) ∈ F q ∗ , k':=k-|I|m,\qquad h_I:=\prod_{i\in I}(x^m-N_m(a_i)),\qquad\nu:=\prod_{i\in I}N_m(a_i)\in\mathbb{F}_q^*, k ′ := k − ∣ I ∣ m , h I := i ∈ I ∏ ( x m − N m ( a i )) , ν := i ∈ I ∏ N m ( a i ) ∈ F q ∗ ,
so that ∏ i ∈ I ( N m ( a j ) − N m ( a i ) ) = ν ρ j \prod_{i\in I}(N_m(a_j)-N_m(a_i))=\nu\rho_j ∏ i ∈ I ( N m ( a j ) − N m ( a i )) = ν ρ j for all j ∈ I c j\in I^c j ∈ I c . Let c = ev a , b ( g ) ∈ C ( I ) \mathbf{c}=\operatorname{ev}_{\mathbf{a},\mathbf{b}}(g)\in\mathcal{C}(I) c = ev a , b ( g ) ∈ C ( I ) for some g ∈ F q m [ x ; σ ] < k g\in\mathbb{F}_{q^m}[x;\sigma]_{<k} g ∈ F q m [ x ; σ ] < k . By Lemma 8 , g = h I g ′ g=h_Ig' g = h I g ′ for some g ′ ∈ F q m [ x ; σ ] < k ′ g'\in\mathbb{F}_{q^m}[x;\sigma]_{<k'} g ′ ∈ F q m [ x ; σ ] < k ′ . For every j ∈ I c j\in I^c j ∈ I c , the same lemma yields
c j = ( ∏ i ∈ I ( N m ( a j ) − N m ( a i ) ) ) ev a j , b j ( g ′ ) = ν ρ j ev a j , b j ( g ′ ) = ev a j , b j ′ ( ν g ′ ) . c_j=\left(\prod_{i\in I}(N_m(a_j)-N_m(a_i))\right)\operatorname{ev}_{a_j,b_j}(g')=\nu\rho_j\operatorname{ev}_{a_j,b_j}(g')=\operatorname{ev}_{a_j,b'_j}(\nu g'). c j = ( i ∈ I ∏ ( N m ( a j ) − N m ( a i )) ) ev a j , b j ( g ′ ) = ν ρ j ev a j , b j ( g ′ ) = ev a j , b j ′ ( ν g ′ ) .
Hence, π I c ( c ) ∈ LRS k ′ ( a ′ , b ′ ) \pi_{I^c}(c) \in\operatorname{LRS}_{k'}(a',b') π I c ( c ) ∈ LRS k ′ ( a ′ , b ′ ) .
Conversely, let f ∈ F q m [ x ; σ ] < k ′ f \in\mathbb{F}_{q^m}[x;\sigma]_{<k'} f ∈ F q m [ x ; σ ] < k ′ and set g : = ν − 1 h I f ∈ F q m [ x ; σ ] < k g := \nu^{-1}h_I f \in\mathbb{F}_{q^m}[x;\sigma]_{<k} g := ν − 1 h I f ∈ F q m [ x ; σ ] < k . Note that ν − 1 ∈ F q \nu^{-1} \in\mathbb{F}_q ν − 1 ∈ F q is central in F q m [ x ; σ ] \mathbb{F}_{q^m}[x;\sigma] F q m [ x ; σ ] . Hence, by Lemma 6, g g g vanishes on the blocks indexed by I I I . Moreover, by the computation above, ev a ′ , b ′ ( f ) = π I c ( ev a , b ( g ) ) ∈ π I c ( C ( I ) ) \operatorname{ev}_{a',b'}(f) = \pi_{I^c}(\operatorname{ev}_{a,b}(g)) \in\pi_{I^c}(C_{(I)}) ev a ′ , b ′ ( f ) = π I c ( ev a , b ( g )) ∈ π I c ( C ( I ) ) .
By Remark 6, Short I ( C ) = π I c ( C ( I ) ) \operatorname{Short}_I(C) = \pi_{I^c}(C_{(I)}) Short I ( C ) = π I c ( C ( I ) ) . Hence, Short I ( C ) = LRS k ′ ( a ′ , b ′ ) \operatorname{Short}_I(C) = \operatorname{LRS}_{k'}(a',b') Short I ( C ) = LRS k ′ ( a ′ , b ′ ) . In particular,
dim ( Short I ( C ) ) = k − ∣ I ∣ m , \dim(\operatorname{Short}_I(C)) = k-|I|m, dim ( Short I ( C )) = k − ∣ I ∣ m ,
and therefore, by Remark 6, rk ( G I ) = ∣ I ∣ m \operatorname{rk}(G_I)=|I|m rk ( G I ) = ∣ I ∣ m . □ \square □
Remark 7. Reconciling the outputs of several shortenings requires that the evaluation pair of each shortened code is determined up to a common pair ( λ , μ ) ∈ ( F q m ∗ ) 2 (\lambda,\mu) \in(\mathbb{F}_{q^m}^{*})^2 ( λ , μ ) ∈ ( F q m ∗ ) 2 , as in Lemma 2. For shortened codes of dimension 2 ≤ k ′ < m 2 \leq k' < m 2 ≤ k ′ < m , this condition follows by Proposition 2. For k ′ = m k'=m k ′ = m , it follows from Theorem 4, since the procedure described in its proof recovers a ~ \widetilde{\mathbf a} a exactly and b ~ \widetilde{\mathbf b} b up to a scalar.
Definition 6 (z-covering chain). Let t , z , L t,z,L t , z , L be positive integers. A sequence of sets ( I 1 , … , I L ) (I_1,\ldots,I_L) ( I 1 , … , I L ) , with I ℓ ⊆ { 1 , … , t } I_\ell\subseteq\{1,\ldots,t\} I ℓ ⊆ { 1 , … , t } for 1 ≤ ℓ ≤ L 1 \leq\ell\leq L 1 ≤ ℓ ≤ L , satisfying
∣ I ℓ ∣ ≤ z for 1 ≤ ℓ ≤ L , ⋂ 1 ≤ ℓ ≤ L I ℓ = ∅ , I ℓ − 1 ∪ I ℓ ≠ { 1 , … , t } for 2 ≤ ℓ ≤ L , \begin{aligned}
|I_\ell| &\leq z \quad\text{for } 1\leq\ell\leq L,\qquad\bigcap_{1\leq\ell\leq L} I_\ell=\varnothing,\\
I_{\ell-1}\cup I_\ell&\neq\{1,\ldots,t\}\quad\text{for }2\leq\ell\leq L,
\end{aligned} ∣ I ℓ ∣ I ℓ − 1 ∪ I ℓ ≤ z for 1 ≤ ℓ ≤ L , 1 ≤ ℓ ≤ L ⋂ I ℓ = ∅ , = { 1 , … , t } for 2 ≤ ℓ ≤ L , is called a z z z -covering chain.
Example 1. In what follows, for t t t -block codes of dimension k = p m + r < t m k=pm+r<tm k = p m + r < t m as above, we consider p p p -covering chains in which all sets have the same cardinality and L = t − 1 L=t-1 L = t − 1 . More precisely, let p ˉ : = p \bar p:=p p ˉ := p if r ≥ 2 r\geq2 r ≥ 2 , and p ˉ : = p − 1 \bar p:=p-1 p ˉ := p − 1 otherwise. Then, ∣ I j ∣ = p ˉ |I_j|=\bar p ∣ I j ∣ = p ˉ for all 1 ≤ j ≤ L 1\leq j\leq L 1 ≤ j ≤ L , and consider the sets
I 1 : = { 1 , … , p ˉ } , I j : = { j , … , j + p ˉ − 1 m o d t } , 2 ≤ j ≤ L . I_1:=\{1,\ldots,\bar p\},\qquad I_j:=\{j,\ldots,j+\bar p-1\mathbin{\bmod} t\},\qquad2\leq j\leq L. I 1 := { 1 , … , p ˉ } , I j := { j , … , j + p ˉ − 1 mod t } , 2 ≤ j ≤ L .
Lemma 9. Assume 2 ≤ t < q 2\leq t<q 2 ≤ t < q , 2 m ≤ k ≤ t m 2m\leq k\leq tm 2 m ≤ k ≤ t m and let C = LRS k ( a ~ , b ~ ) ⊆ F q m m C=\operatorname{LRS}_k(\widetilde{\mathbf a},\widetilde{\mathbf b})\subseteq\mathbb{F}_{q^m}^m C = LRS k ( a , b ) ⊆ F q m m . Let L L L be a positive integer and fix a p p p -covering chain ( I 1 , … , I L ) (I_1,\ldots,I_L) ( I 1 , … , I L ) , where p p p is such that k = p m + r k=pm+r k = p m + r as above. Suppose further that for each 1 ≤ ℓ ≤ L 1\leq\ell\leq L 1 ≤ ℓ ≤ L an evaluation pair of Short I ℓ ( C ) \operatorname{Short}_{I_\ell}(C) Short I ℓ ( C ) is known, of the form
a j ( ℓ ) = λ ℓ a ~ j , b j ( ℓ ) = μ ℓ ρ j ( ℓ ) b ~ j , j ∈ I ℓ c , a_j^{(\ell)}=\lambda_\ell\widetilde a_j,\qquad b_j^{(\ell)}=\mu_\ell\rho_j^{(\ell)}\widetilde b_j,\qquad j\in I_\ell^c, a j ( ℓ ) = λ ℓ a j , b j ( ℓ ) = μ ℓ ρ j ( ℓ ) b j , j ∈ I ℓ c , with λ ℓ , μ ℓ ∈ F q m ∗ \lambda_\ell,\mu_\ell\in\mathbb{F}_{q^m}^* λ ℓ , μ ℓ ∈ F q m ∗ and ρ j ( ℓ ) = ∏ i ∈ I ℓ ( N m ( a ~ i ) − 1 N m ( a ~ j ) − 1 ) \rho_j^{(\ell)}=\prod_{i\in I_\ell}(N_m(\widetilde a_i)^{-1}N_m(\widetilde a_j)-1) ρ j ( ℓ ) = ∏ i ∈ I ℓ ( N m ( a i ) − 1 N m ( a j ) − 1 ) . Then one recovers in polynomial time an evaluation pair ( a , b ) ∈ F q m t × F q m t (\mathbf a,\mathbf b)\in\mathbb{F}_{q^m}^t\times\mathbb{F}_{q^m}^t ( a , b ) ∈ F q m t × F q m t with LRS k ( a , b ) = C \operatorname{LRS}_k(\mathbf a,\mathbf b)=C LRS k ( a , b ) = C .
Proof. Set a i : = a i ( 1 ) a_i:=a_i^{(1)} a i := a i ( 1 ) for all i ∈ I 1 c i\in I_1^c i ∈ I 1 c . Let now i ∈ I 1 i\in I_1 i ∈ I 1 , which implies i ∈ ⋃ 2 ≤ ℓ ≤ L I ℓ c i\in\bigcup_{2\leq\ell\leq L}I_\ell^c i ∈ ⋃ 2 ≤ ℓ ≤ L I ℓ c . Let h : = min { 2 ≤ ℓ ≤ L : i ∈ I ℓ c } h:=\min\{2\leq\ell\leq L:i\in I_\ell^c\} h := min { 2 ≤ ℓ ≤ L : i ∈ I ℓ c } . Then, i ∉ I h − 1 c i\notin I_{h-1}^c i ∈ / I h − 1 c , that is, i ∈ I h − 1 i\in I_{h-1} i ∈ I h − 1 . Hence, i ∈ I h − 1 ∩ I h c i\in I_{h-1}\cap I_h^c i ∈ I h − 1 ∩ I h c . Pick j ∈ I h − 1 c ∩ I h c j\in I_{h-1}^c\cap I_h^c j ∈ I h − 1 c ∩ I h c and set a i : = a j ( h ) ( a j ( h ) ) − 1 a i ( h ) = λ 1 a ~ i a_i:=a_j^{(h)}(a_j^{(h)})^{-1}a_i^{(h)}=\lambda_1\widetilde a_i a i := a j ( h ) ( a j ( h ) ) − 1 a i ( h ) = λ 1 a i . Overall, this procedure retrieves a : = ( a 1 , … , a t ) = λ 1 a ~ \mathbf a:=(a_1,\ldots,a_t)=\lambda_1\widetilde{\mathbf a} a := ( a 1 , … , a t ) = λ 1 a .
For each 1 ≤ ℓ ≤ L 1 \le\ell\le L 1 ≤ ℓ ≤ L , ρ i ( ℓ ) \rho_i^{(\ell)} ρ i ( ℓ ) depends only on the norms of elements in a \mathbf{a} a , hence it is now computable. Set b i : = ( ρ i ( 1 ) ) − 1 b i ( 1 ) = μ 1 b ~ i \mathbf{b}_i := \left(\rho_i^{(1)}\right)^{-1}\mathbf{b}_i^{(1)} = \mu_1\widetilde{\mathbf{b}}_i b i := ( ρ i ( 1 ) ) − 1 b i ( 1 ) = μ 1 b i for all i ∈ I 1 i \in I_1 i ∈ I 1 . Let now i ∈ I 1 i \in I_1 i ∈ I 1 and h h h be as above. Pick j ∈ I h − 1 ∩ I h j \in I_{h-1} \cap I_h j ∈ I h − 1 ∩ I h and an index 1 ≤ ℓ ≤ m 1 \le\ell\le m 1 ≤ ℓ ≤ m with b j , ℓ ≠ 0 b_{j,\ell} \ne0 b j , ℓ = 0 , and set
b i : = b j , ℓ ρ j ( h ) ( b j , ℓ ( h ) ρ i ( h ) ) − 1 b i ( h ) = μ 1 μ h − 1 ( ρ i ( h ) ) − 1 b i ( h ) = μ 1 b ~ i . \mathbf{b}_i := b_{j,\ell}\rho_j^{(h)}\left(b_{j,\ell}^{(h)}\rho_i^{(h)}\right)^{-1}\mathbf{b}_i^{(h)} = \mu_1\mu_h^{-1}\left(\rho_i^{(h)}\right)^{-1}\mathbf{b}_i^{(h)} = \mu_1\widetilde{\mathbf{b}}_i. b i := b j , ℓ ρ j ( h ) ( b j , ℓ ( h ) ρ i ( h ) ) − 1 b i ( h ) = μ 1 μ h − 1 ( ρ i ( h ) ) − 1 b i ( h ) = μ 1 b i .
Then, we define b : = ( b 1 , … , b t ) = μ 1 b ~ \mathbf{b} := (\mathbf{b}_1,\ldots,\mathbf{b}_t) = \mu_1\widetilde{\mathbf{b}} b := ( b 1 , … , b t ) = μ 1 b .
In conclusion, by Lemma 2, ( a , b ) (\mathbf{a},\mathbf{b}) ( a , b ) is an evaluation pair, and LRS k ( a , b ) = C \operatorname{LRS}_k(\mathbf{a},\mathbf{b}) = C LRS k ( a , b ) = C .
Theorem 6. Let 3 ≤ t < q 3 \le t < q 3 ≤ t < q and 2 m ≤ k ≤ t m − 2 2m \le k \le tm - 2 2 m ≤ k ≤ t m − 2 . Write k = p m + r k = pm + r k = p m + r as above, and assume r ≥ 2 r \ge2 r ≥ 2 . There exists a deterministic polynomial-time algorithm that, on input any generator matrix G ∈ F q k × t m G \in\mathbb{F}_q^{k \times tm} G ∈ F q k × t m of an [ m , k ] q m / q [m,k]_{q^m/q} [ m , k ] q m / q LRS code C C C , outputs an evaluation pair ( a , b ) ∈ F q m t × F q m t m (\mathbf{a},\mathbf{b}) \in\mathbb{F}_{q^m}^t \times\mathbb{F}_{q^m}^{tm} ( a , b ) ∈ F q m t × F q m t m such that LRS k ( a , b ) = C \operatorname{LRS}_k(\mathbf{a},\mathbf{b}) = C LRS k ( a , b ) = C .
Proof. Assume first that k < ( t − 1 ) m k < (t-1)m k < ( t − 1 ) m , and write k = p m + r k = pm + r k = p m + r as above. Shortening C C C on any p p p blocks produces a code of dimension 2 ≤ r ≤ m − 1 2 \le r \le m-1 2 ≤ r ≤ m − 1 , consisting of t − p ≥ 2 t-p \ge2 t − p ≥ 2 unmodified blocks of C C C . Choose the p p p -covering chain ( I 1 , … , I L ) (I_1,\ldots,I_L) ( I 1 , … , I L ) of Example 1. Then, for each 1 ≤ ℓ ≤ L 1 \le\ell\le L 1 ≤ ℓ ≤ L , compute a generator matrix of Short I ℓ ( C ) \operatorname{Short}_{I_\ell}(C) Short I ℓ ( C ) as in (5) . By Proposition 4, Short I ℓ ( C ) \operatorname{Short}_{I_\ell}(C) Short I ℓ ( C ) is an r r r -dimensional LRS code over F q m m ′ \mathbb{F}_{q^m}^{m'} F q m m ′ , with m ′ = ( m , … , m ) ∈ Z > 0 t − ∣ I ℓ ∣ \mathbf{m}' = (m,\ldots,m) \in\mathbb{Z}_{>0}^{t-|I_\ell|} m ′ = ( m , … , m ) ∈ Z > 0 t − ∣ I ℓ ∣ . Recover an evaluation pair for it by Theorem 3. By Remark 7, the recovered pair has the canonical form required by Lemma 9 , and hence it returns an evaluation pair ( a , b ) ∈ F q m t × F q m t m (\mathbf{a},\mathbf{b}) \in\mathbb{F}_{q^m}^t \times\mathbb{F}_{q^m}^{tm} ( a , b ) ∈ F q m t × F q m t m such that LRS k ( a , b ) = C \operatorname{LRS}_k(\mathbf{a},\mathbf{b}) = C LRS k ( a , b ) = C .
Finally, if ( t − 1 ) m ≤ k ≤ t m − 2 (t-1)m \le k \le tm-2 ( t − 1 ) m ≤ k ≤ t m − 2 , then C ⊥ C^\perp C ⊥ is an [ m , t m − k ] q m / q [m,tm-k]_{q^m/q} [ m , t m − k ] q m / q LRS code of dimension 2 ≤ t m − k ≤ m − 2 2 \le tm-k \le m-2 2 ≤ t m − k ≤ m − 2 . Its evaluation pair is then recovered by Theorem 3, and an evaluation pair of C C C is obtained from it via Theorem 1.
Each step described above involves a bounded number of linear-algebra operations over F q m \mathbb{F}_{q^m} F q m together with O ( t ) O(t) O ( t ) base-case runs, so the procedure is polynomial. A precise complexity evaluation is given in § 7.1 . □ \square □
Before dealing with the remaining open cases not yet covered in this section, we address the final unresolved case left in § 6 , namely, k = m + 1 k = m + 1 k = m + 1 .
Corollary 1. Let either t ∈ { 2 , 3 } t \in\{2,3\} t ∈ { 2 , 3 } and m ≥ 3 m \ge3 m ≥ 3 , or 4 ≤ t < q 4 \le t < q 4 ≤ t < q and m ≥ 2 m \ge2 m ≥ 2 . There exists a deterministic polynomial-time algorithm that, on input any generator matrix G ∈ F q ( m + 1 ) × t m G \in\mathbb{F}_q^{(m+1) \times tm} G ∈ F q ( m + 1 ) × t m of an [ m , m + 1 ] q m / q [m,m+1]_{q^m/q} [ m , m + 1 ] q m / q LRS code C C C , outputs an evaluation pair ( a , b ) ∈ F q m t × F q m t m (\mathbf{a},\mathbf{b}) \in\mathbb{F}_{q^m}^t \times\mathbb{F}_{q^m}^{tm} ( a , b ) ∈ F q m t × F q m t m such that LRS m + 1 ( a , b ) = C \operatorname{LRS}_{m+1}(\mathbf{a},\mathbf{b}) = C LRS m + 1 ( a , b ) = C .
Proof. The dual code of C C C has dimension k ′ : = ( t − 1 ) m − 1 k' := (t-1)m - 1 k ′ := ( t − 1 ) m − 1 . If t = 2 t = 2 t = 2 and m ≥ 3 m \ge3 m ≥ 3 , then k ′ = m − 1 k' = m - 1 k ′ = m − 1 and Theorem 3 applies to C ⊥ C^\perp C ⊥ . Otherwise, t − 1 ≥ 2 t - 1 \ge2 t − 1 ≥ 2 and Theorem 6 applies to C ⊥ C^\perp C ⊥ . In either case, the corresponding theorem yields an evaluation pair for C ⊥ C^\perp C ⊥ , from which we recover an evaluation pair for C C C via Theorem 1. Since the additional steps require only polynomial time, the overall complexity is polynomial, being dominated by the complexity of the selected key-recovery algorithm.
Theorem 7. Let 3 ≤ t < q 3 \le t < q 3 ≤ t < q and m ≥ 2 m \ge2 m ≥ 2 . Let also 2 m ≤ k < t m 2m \le k < tm 2 m ≤ k < t m . Write k = p m + r k = pm+r k = p m + r as above, and assume r ∈ { 0 , 1 } r \in\{0,1\} r ∈ { 0 , 1 } . There exists a deterministic polynomial-time algorithm that, on input any generator matrix G ∈ F q m k × t m G \in\mathbb{F}_{q^m}^{k \times tm} G ∈ F q m k × t m of an [ m , k ] q m / q [m,k]_{q^m/q} [ m , k ] q m / q LRS code C C C , outputs an evaluation pair ( a , b ) ∈ F q m t × F q m t m (\mathbf{a},\mathbf{b}) \in\mathbb{F}_{q^m}^{t} \times\mathbb{F}_{q^m}^{tm} ( a , b ) ∈ F q m t × F q m t m such that LRS k ( a , b ) = C \operatorname{LRS}_k(\mathbf{a},\mathbf{b}) = C LRS k ( a , b ) = C .
Proof. Write k = p m + r k = pm+r k = p m + r as above. Shortening C C C on any p − 1 p-1 p − 1 blocks produces a code of dimension k ′ = m + r ∈ { m , m + 1 } k' = m+r \in\{m,m+1\} k ′ = m + r ∈ { m , m + 1 } , containing t − p + 1 ≥ 2 t-p+1 \ge2 t − p + 1 ≥ 2 untouched blocks of C C C . Choose the ( p − 1 ) (p-1) ( p − 1 ) -covering chain ( I 1 , … , I L ) (I_1,\ldots,I_L) ( I 1 , … , I L ) of Example 1. For each 1 ≤ ℓ ≤ L 1 \le\ell\le L 1 ≤ ℓ ≤ L , compute a generator matrix of Short I ℓ ( C ) \operatorname{Short}_{I_\ell}(C) Short I ℓ ( C ) as in (5). By Proposition 4, Short I ℓ ( C ) \operatorname{Short}_{I_\ell}(C) Short I ℓ ( C ) is a k ′ k' k ′ -dimensional LRS code over F q m m ′ \mathbb{F}_{q^m}^{m'} F q m m ′ , with m ′ = ( m , … , m ) ∈ Z > 0 t − ∣ I ℓ ∣ \mathbf{m}'=(m,\ldots,m) \in\mathbb{Z}_{>0}^{t-|I_\ell|} m ′ = ( m , … , m ) ∈ Z > 0 t − ∣ I ℓ ∣ . If k ′ = m k'=m k ′ = m , recover an evaluation pair for it by Theorem 4, otherwise if k ′ = m + 1 k'=m+1 k ′ = m + 1 , apply Corollary 1. In both cases, the recovered pair has the canonical form required by Lemma 9 , and hence it returns an evaluation pair ( a , b ) ∈ F q m t × F q m t m (\mathbf{a},\mathbf{b}) \in\mathbb{F}_{q^m}^{t} \times\mathbb{F}_{q^m}^{tm} ( a , b ) ∈ F q m t × F q m t m such that LRS k ( a , b ) = C \operatorname{LRS}_k(\mathbf{a},\mathbf{b}) = C LRS k ( a , b ) = C .
Each step described above involves a bounded number of linear-algebra operations over F q m \mathbb{F}_{q^m} F q m together with O ( t ) O(t) O ( t ) base-case runs, so the procedure is polynomial. A precise complexity evaluation is given in § 7.1 . □ \square □
A pseudocode description of the procedures described in Theorem 6, Corollary 1, and Theorem 7 is given in Algorithms 5 and 6.
Algorithm 4 Reconciliation of shortened evaluation pairs
Require: Shortening sets $I_1,\ldots,I_L$ and evaluation pairs $(\mathbf{a}^{(1)},\mathbf{b}^{(1)}),\ldots,(\mathbf{a}^{(L)},\mathbf{b}^{(L)})$ as in {xref}`Lemma 9`
Ensure: An evaluation pair $(\mathbf{a},\mathbf{b})$ for the original code
1: $a_i \leftarrow a_i^{(1)}$ for all $i \in I_1^c$
2: for $i \in I_1$ do
3: $h \leftarrow \min\{2 \le \ell \le L : i \in I_\ell^c\}$
4: Pick $j \in I_{h-1}^c \cap I_h^c$
5: $a_i \leftarrow a_j(a_i^{(h)})^{-1}a_i^{(h)}$
6: end for
7: for $1 \le \ell \le L$ do
8: for $j \in I_\ell^c$ do
9: $\rho_j^{(\ell)} \leftarrow \prod_{i \in I_\ell}(N_m(a_i)^{-1}N_m(a_j)-1)$
10: end for
11: end for
12: $b_i \leftarrow (\rho_i^{(1)})^{-1}b_i^{(1)}$ for all $i \in I_1^c$
13: for $i \in I_1$ do
14: $h \leftarrow \min\{2 \le \ell \le L : i \in I_\ell^c\}$
15: Pick $j \in I_{h-1}^c \cap I_h^c$ and $1 \le z \le m$ with $b_{j,z} \ne 0$
16: $b_i \leftarrow b_{j,z}\rho_j^{(h)}(b_{j,z}^{(h)}\rho_i^{(h)})^{-1}b_i^{(h)}$
17: end for
18: return $(\mathbf{a},\mathbf{b})$
Algorithm 5 Key recovery for 2 m ≤ k < t m − 1 2m \le k < tm - 1 2 m ≤ k < t m − 1 , t ≥ 3 t \ge3 t ≥ 3
Require: Generator matrix G ∈ F q m k × t m G \in\mathbb{F}_{q^m}^{k \times tm} G ∈ F q m k × t m of an LRS code C C C
Ensure: An evaluation pair ( a , b ) (\mathbf{a}, \mathbf{b}) ( a , b ) with LRS k ( a , b ) = C \operatorname{LRS}_k(\mathbf{a}, \mathbf{b}) = C LRS k ( a , b ) = C
p ← ⌊ k / m ⌋ p \leftarrow\lfloor k/m \rfloor p ← ⌊ k / m ⌋ ; r ← k − p m r \leftarrow k - pm r ← k − p m
if r ≥ 2 r \ge2 r ≥ 2 then z ← p z \leftarrow p z ← p else z ← p − 1 z \leftarrow p - 1 z ← p − 1 end if
Choose shortening sets I 1 , … , I L I_1, \ldots, I_L I 1 , … , I L of size z z z satisfying the hypotheses of Lemma 9
for 1 ≤ ℓ ≤ L 1 \le\ell\le L 1 ≤ ℓ ≤ L do
I ℓ c ← { 1 , … , t } ∖ I ℓ I_\ell^c \leftarrow\{1, \ldots, t\} \setminus I_\ell I ℓ c ← { 1 , … , t } ∖ I ℓ
K I ℓ ← K_{I_\ell} \leftarrow K I ℓ ← basis of the left kernel of G I ℓ G_{I_\ell} G I ℓ ▷ Gaussian elimination
G ( ℓ ) ← K I ℓ G I ℓ c G^{(\ell)} \leftarrow K_{I_\ell}G_{I_\ell^c} G ( ℓ ) ← K I ℓ G I ℓ c ▷ G I ℓ c ← G G_{I_\ell^c} \leftarrow G G I ℓ c ← G without blocks indexed by I ℓ I_\ell I ℓ
if r = 0 r = 0 r = 0 then
( a ( ℓ ) , b ( ℓ ) ) ← (\mathbf{a}^{(\ell)}, \mathbf{b}^{(\ell)}) \leftarrow ( a ( ℓ ) , b ( ℓ ) ) ← Algorithm 2( G ( ℓ ) ) (G^{(\ell)}) ( G ( ℓ ) )
else if r = 1 r = 1 r = 1 then
( a ( ℓ ) , b ( ℓ ) ) ← (\mathbf{a}^{(\ell)}, \mathbf{b}^{(\ell)}) \leftarrow ( a ( ℓ ) , b ( ℓ ) ) ← Algorithm 6( G ( ℓ ) ) (G^{(\ell)}) ( G ( ℓ ) )
else
( a ( ℓ ) , b ( ℓ ) ) ← (\mathbf{a}^{(\ell)}, \mathbf{b}^{(\ell)}) \leftarrow ( a ( ℓ ) , b ( ℓ ) ) ← Algorithm 1( G ( ℓ ) ) (G^{(\ell)}) ( G ( ℓ ) )
end if
end for
return Algorithm 4( I 1 , … , I L , ( a ( 1 ) , b ( 1 ) ) , … , ( a ( L ) , b ( L ) ) ) (I_1, \ldots, I_L,(\mathbf{a}^{(1)}, \mathbf{b}^{(1)}), \ldots,(\mathbf{a}^{(L)}, \mathbf{b}^{(L)})) ( I 1 , … , I L , ( a ( 1 ) , b ( 1 ) ) , … , ( a ( L ) , b ( L ) ))
Algorithm 6 Key recovery for k = m + 1 k = m + 1 k = m + 1
Require: Generator matrix G ∈ F q m ( m + 1 ) × t m G \in\mathbb{F}_{q^m}^{(m+1) \times tm} G ∈ F q m ( m + 1 ) × t m of an LRS code C C C
Ensure: An evaluation pair ( a , b ) (\mathbf{a}, \mathbf{b}) ( a , b ) with LRS m + 1 ( a , b ) = C \operatorname{LRS}_{m+1}(\mathbf{a}, \mathbf{b}) = C LRS m + 1 ( a , b ) = C
G ⊥ ← G^\perp\leftarrow G ⊥ ← basis of the right kernel of G G G ▷ Gaussian elimination
if ( t = 2 (t = 2 ( t = 2 and m ≠ 2 ) m \ne2) m = 2 ) then
( a ⊥ , b ⊥ ) ← (\mathbf{a}^\perp, \mathbf{b}^\perp) \leftarrow ( a ⊥ , b ⊥ ) ← Algorithm 1( G ⊥ ) (G^\perp) ( G ⊥ )
else if t ≥ 3 t \ge3 t ≥ 3 then
( a ⊥ , b ⊥ ) ← (\mathbf{a}^\perp, \mathbf{b}^\perp) \leftarrow ( a ⊥ , b ⊥ ) ← Algorithm 5( G ⊥ ) (G^\perp) ( G ⊥ ) ▷ Branch r ≥ 2 r \ge2 r ≥ 2
end if
return ( a , b ) ← Dual_Ev_Pair ( a ⊥ , b ⊥ ) (\mathbf{a}, \mathbf{b}) \leftarrow\operatorname{Dual\_Ev\_Pair}(\mathbf{a}^\perp, \mathbf{b}^\perp) ( a , b ) ← Dual_Ev_Pair ( a ⊥ , b ⊥ ) ▷ Dual_Ev_Pair: [28 Section 2.5]
Complexity
The reconciliation uses L = O ( t ) L = O(t) L = O ( t ) shortening sets. Each set costs one Gaussian elimination O ( k ω − 1 t m ) O(k^{\omega-1}t^m) O ( k ω − 1 t m ) to define a generator matrix of the shortened code, and one base-case recovery. This leads for m < k < ( t − 1 ) m m < k < (t-1)m m < k < ( t − 1 ) m to an overall complexity of
O ( t m ω + 1 + t 2 m ω ) O(tm^{\omega+1} + t^2m^\omega) O ( t m ω + 1 + t 2 m ω )
operations in F q m \mathbb{F}_{q^m} F q m and
O ( t m 3 + t 2 ) O(tm^3 + t^2) O ( t m 3 + t 2 )
applications of σ \sigma σ .
The chaining step adds O ( t 2 ) O(t^2) O ( t 2 ) norm evaluations and scalar operations which are negligible compared to the other calculations. The case of k ≥ ( t − 1 ) m k \ge(t-1)m k ≥ ( t − 1 ) m requires the calculation of the dual, which is O ( ( m t ) ω ) O((mt)^\omega) O (( m t ) ω ) operations in F q m \mathbb{F}_{q^m} F q m and an application of Theorem 1 which is O ( t m 2 ) O(tm^2) O ( t m 2 ) operations in F q m \mathbb{F}_{q^m} F q m and O ( t m 2 ) O(tm^2) O ( t m 2 ) applications of σ \sigma σ and finally an application of Theorem 3 yields an additional O ( m ω + 1 + m ω t ) O(m^{\omega+1} + m^\omega t) O ( m ω + 1 + m ω t ) operations in F q m \mathbb{F}_{q^m} F q m and O ( m 3 + t ) O(m^3 + t) O ( m 3 + t ) applications of σ \sigma σ . Overall, for k ≥ ( t − 1 ) m k \ge(t-1)m k ≥ ( t − 1 ) m , the procedure costs
O ( m ω + 1 + ( t m ) ω ) operations in F q m and O ( m 3 + t m 2 ) applications of σ . \mathcal{O}(m^{\omega+1}+(tm)^\omega)\text{ operations in }\mathbb{F}_{q^m}\quad\text{and}\quad\mathcal{O}(m^3+tm^2)\text{ applications of }\sigma. O ( m ω + 1 + ( t m ) ω ) operations in F q m and O ( m 3 + t m 2 ) applications of σ .
Cases k = t m − 1 k=tm-1 k = t m − 1 and k = t m k=tm k = t m .
Similarly to what we observed in § 6 for t = 2 t=2 t = 2 , these cases correspond to degenerate settings in which the code C C C has minimum distance d = t m − k + 1 ≤ 2 d=tm-k+1\le2 d = t m − k + 1 ≤ 2 . As a consequence, the error-correcting capability, given by ⌊ ( d − 1 ) / 2 ⌋ \lfloor(d-1)/2\rfloor ⌊( d − 1 ) /2 ⌋ , is zero in both cases. Hence, such codes are of limited interest from a cryptographic perspective and are therefore discarded. In particular, these scenarios include the cases t = m = 2 t=m=2 t = m = 2 and k = 2 m − 1 = m + 1 k=2m-1=m+1 k = 2 m − 1 = m + 1 or k = 2 m k=2m k = 2 m , which are left out by Corollary 1 and Theorem 7, respectively.
An alternative approach for recovery and possible generalization to arbitrary profiles
Using the Overbeck-like reconstruction from Hörmann, Bartz and Horlemann
The previous sections described processes that permit to recover simultaneously a \mathbf{a} a and b \mathbf{b} b . However, it was proved in [28 Theorem 6] that, given the knowledge of a \mathbf{a} a one can deduce that of b \mathbf{b} b using an Overbeck-like approach. Their recovery process is claimed to have a complexity O ( N 5 ) \mathcal{O}(N^5) O ( N 5 ) where N N N denotes the code length. Therefore, it should be emphasized that our shortening approach could have been used only to recover the a i \mathbf{a}_i a i ’s and then run the technique of [28 Theorem 6] only at the cost of a slightly higher complexity.
About general profiles
In most sections above, our work restricted to the case of codes with profile m = ( m , … , m ) \mathbf{m}=(m,\ldots,m) m = ( m , … , m ) . However, the general setting presented in Problem 1 can probably be treated analogously. Let us sketch the general ideas. To limit the amount of tedious notation, we limit to the case of a constant profile n = ( n , … , n ) \mathbf{n}=(n,\ldots,n) n = ( n , … , n ) with n < m n<m n < m .
For this more general profile, the shortening operation presented in § 6 still provides an LRS code with mostly the same a \mathbf{a} a , while b \mathbf{b} b gets modified as explained the following statement. To ease the discourse, we first discuss the shortening operation for a single block.
Proposition 5. Let C = LRS k ( a , b ) C=\operatorname{LRS}_k(\mathbf{a},\mathbf{b}) C = LRS k ( a , b ) and k ≥ n k\ge n k ≥ n . Let 1 ≤ i ≤ t 1\le i\le t 1 ≤ i ≤ t , then
Short i ( C ) = LRS k − n ( a ′ , b ′ ) . \operatorname{Short}_i(C)=\operatorname{LRS}_{k-n}(\mathbf{a}',\mathbf{b}'). Short i ( C ) = LRS k − n ( a ′ , b ′ ) . where ( a ′ , b ′ ) (\mathbf{a}',\mathbf{b}') ( a ′ , b ′ ) is an evaluation pair and a ′ = ( a 1 , … , a i − 1 , a i + 1 , … , a t ) \mathbf{a}'=(a_1,\ldots,a_{i-1},a_{i+1},\ldots,a_t) a ′ = ( a 1 , … , a i − 1 , a i + 1 , … , a t ) .
Proof. By Lemma 1, there exists φ i ∈ F q m [ x ; σ ] ≤ n \varphi_i \in\mathbb{F}_{q^m}[x;\sigma]_{\le n} φ i ∈ F q m [ x ; σ ] ≤ n such that ev a , b i ( φ i ) = 0 \operatorname{ev}_{\mathbf{a},\mathbf{b}_i}(\varphi_i)=0 ev a , b i ( φ i ) = 0 . For f ∈ F q m [ x ; σ ] < k f \in\mathbb{F}_{q^m}[x;\sigma]_{<k} f ∈ F q m [ x ; σ ] < k we have a right Euclidean division f = g φ i + r f=g\varphi_i+r f = g φ i + r with deg r < n \deg r<n deg r < n . If ev a i , b i ( f ) = 0 \operatorname{ev}_{\mathbf{a}_i,\mathbf{b}_i}(f)=0 ev a i , b i ( f ) = 0 , then we deduce that ev a i , b i ( r ) = 0 \operatorname{ev}_{\mathbf{a}_i,\mathbf{b}_i}(r)=0 ev a i , b i ( r ) = 0 . Then the degree bound deg r < n \deg r<n deg r < n together with Lemma 1 entail that r = 0 r=0 r = 0 .
Consequently, any f ∈ F q m [ x ; σ ] < k f \in\mathbb{F}_{q^m}[x;\sigma]_{<k} f ∈ F q m [ x ; σ ] < k satisfying ev a i , b i ( f ) = 0 \operatorname{ev}_{\mathbf{a}_i,\mathbf{b}_i}(f)=0 ev a i , b i ( f ) = 0 , i.e., any f f f giving rise to a codeword of the shortened code at block i i i , is of the form f = g φ i f=g\varphi_i f = g φ i for some g ∈ F q m [ x ; σ ] < k − n g \in\mathbb{F}_{q^m}[x;\sigma]_{<k-n} g ∈ F q m [ x ; σ ] < k − n . Next for any j ≠ i j\ne i j = i ,
ev a j , b j ( f ) = ev a j , b j ( g φ i ) = ( g ( a j σ ) ∘ φ i ( a j σ ) ) ( b j ) = ( g ( a σ ) ) ( φ i ( a σ ( b j ) ) ) = ev a j , ev a j , b j ( φ i ) ( g ) . \begin{aligned}
\operatorname{ev}_{\mathbf{a}_j,\mathbf{b}_j}(f) &= \operatorname{ev}_{\mathbf{a}_j,\mathbf{b}_j}(g\varphi_i)=(g(a_j\sigma)\circ\varphi_i(a_j\sigma))(b_j)\\
&=(g(a\sigma))(\varphi_i(a\sigma(b_j)))\\
&=\operatorname{ev}_{\mathbf{a}_j,\operatorname{ev}_{\mathbf{a}_j,\mathbf{b}_j}(\varphi_i)}(g).
\end{aligned} ev a j , b j ( f ) = ev a j , b j ( g φ i ) = ( g ( a j σ ) ∘ φ i ( a j σ )) ( b j ) = ( g ( aσ )) ( φ i ( aσ ( b j ))) = ev a j , ev a j , b j ( φ i ) ( g ) .
□ \square □
The conclusion of the previous statement is that if n < m n<m n < m the shortening of a block may affect the shape of the b j ′ \mathbf{b}'_j b j ′ of the non shortened blocks, while the a j ′ a'_j a j ′ ’s of the non-shortened blocks remain unchanged . By induction, when shortening more than one block, the non-shortened a j ′ a'_j a j ′ ’s still remain unchanged.
This leads to a recovery process that we sketch below. Let C = LRS k ( a , b ′ ) \mathcal{C}=\operatorname{LRS}_k(\mathbf{a},\mathbf{b}') C = LRS k ( a , b ′ ) . Since the case k < n k<n k < n was already treated in § 4 , we assume k ≥ n k\ge n k ≥ n .
If k > t n / 2 k>tn/2 k > t n /2 , then switch to the dual code.
From Lemma 2, one can assume a 1 = 1 a_1=1 a 1 = 1 . By Proposition 5, shortening gives rise to another LRS code with the same a i a_i a i ’s. Moreover, we may shorten enough blocks at once, without touching the first block, to obtain a code of dimension < n <n < n . Then, from Lemma 2 the obtained code has a unique a \mathbf{a} a such that a 1 = 1 a_1=1 a 1 = 1 . Hence, we uniquely determine a i a_i a i for the other non shortened blocks. Note that since we assume k < n t / 2 k<nt/2 k < n t /2 , there remains at least 2 non-shortened blocks. Therefore, iterating this process permits to show that, fixing a 1 = 1 a_1=1 a 1 = 1 , the other a i a_i a i ’s are uniquely determined and can be computed by first shortening, and then applying the techniques of § 4 or § 5 .
Once, a \mathbf{a} a is computed, run the Overbeck-like attack of [28 Section 5.2] to recover b \mathbf{b} b .
Conclusion
In this paper, we gave a polynomial-time full structure recovery strategy for LRS codes with profile ( m , … , m ) (m,\ldots,m) ( m , … , m ) , and sketched a recovery process for arbitrary constant profiles. It is, however, likely that the technique developed in this work extend to arbitrary profiles, at the cost of more technical attack descriptions. In summary, our results show that LRS codes cannot be used as they are for McEliece-like encryption.
Declaration of Generative AI and AI-assisted Technologies in the Writing Process
The authors used AI-assisted tools exclusively for language editing and to improve the clarity and readability of the manuscript. All mathematical results, proofs, and scientific conclusions are the authors’ own. The authors have reviewed the entire manuscript and take full responsibility for its content.