Linear Complementary Pairs of MDS Codes from Elliptic Curves
Adler Marques
LINEAR COMPLEMENTARY PAIRS OF MDS CODES FROM ELIPTIC CURVES
ADLER MARQUES
ABSTRACT. In this paper, we investigate the Linear Complementary Pairs (LCPs) of Maximum Distance Separable (MDS) codes that arise from elliptic curves. We establish geometric conditions for LCPs of elliptic codes and prove that they cannot consist entirely of MDS codes when evaluated over all rational points of the curve. To address this, we construct LCPs of MDS elliptic codes by restricting evaluation divisors to subgroup cosets. We apply this method to obtain explicit infinite families of LCPs of MDS codes over Mordell and supersingular elliptic curves, including large-length constructions over quadratic extensions.
1. INTRODUCTION
A linear complementary pair (LCP) of codes over a finite field Fq is a pair (C,D) of linear codes of length n such that C⊕D=Fqn. In the special case D=C⊥, the code C is called a linear complementary dual (LCD) code, a notion introduced by Massey [9]. Such pairs form the algebraic foundation of masking schemes against side-channel attacks (SCA) and fault injection attacks (FIA) [2, 3, 12], with the security of the resulting implementation determined by the security parameter min{d(C),d(D⊥)}.
For the security parameter to be maximally effective, both C and D⊥ must have large minimum distances. The ideal scenario occurs when both are maximum distance separable (MDS) codes, attaining the Singleton bound with equality. Since MDS codes are optimal for their length and dimension, an LCP of MDS codes provides the strongest possible security parameter. However, constructing such pairs remains mathematically challenging.
Algebraic geometry (AG) codes offer a natural framework for constructing LCPs of codes [1, 4, 10]. Elliptic curves (genus g=1) are particularly appealing because their group structure and Riemann-Roch spaces provide precise control over code parameters. The study of MDS elliptic codes has a rich history: Munuera [11] gave the first bound on their length, Li, Wan, and Zhang [8] conjectured that the maximal length of q-ary MDS elliptic codes is close to q/2, and Han and Ren [7] confirmed this for a wide range of dimensions. Recently, Chen, Hu, Huang, and Zhao [5] resolved the remaining open cases, determining the exact maximal length MEC(k,q) for all admissible k. Constructively, Wang, Liu, Luo, and Zhai [16] built new families of non-Reed–Solomon MDS codes from elliptic curves, while iso-dual MDS elliptic codes and their connections to quantum error-correcting codes were explored by Zhu and Zhao [18]. Nevertheless, evaluating a code over an entire subgroup H of an elliptic curve introduces the zero-sum relation ∑P∈HP=O, which forces linear dependencies among the coordinates and destroys the MDS property. This rigidity explains why existing LCP constructions over prime fields are typically limited to shorter lengths or to almost-MDS codes.
Date: October 22, 2026.
ADLER MARQUES
We address this obstruction by constructing an evaluation divisor over a union of subgroup cosets from which a single low-order rational point P0 is excluded. This strategic approach breaks the zero-sum relation, enabling the explicit construction of LCPs of elliptic codes where both constituent codes are strictly MDS.
We begin in Section 2 by reviewing the necessary background on function fields, Riemann–Roch spaces, and elliptic curves. In Section 3, we use the Abel–Jacobi theorem to establish sufficient geometric conditions for LCPs of elliptic codes and prove a fundamental MDS limitation regarding evaluations over all rational points. This motivates our multi-coset construction and the explicit congruence conditions required to guarantee the MDS property. Section 4 illustrates these theoretical results by generating explicit infinite families of LCPs of MDS codes. We apply the construction to prime fields, specifically using Mordell curves for p≡5 or 11 (mod 18) and the supersingular curve y2=x3+x for p≡3 (mod 8), and extend the method to supersingular curves over Fp2 with group structure Zp+1⊕Zp+1 to achieve large-length LCPs of MDS codes of length n=s(p+1)−1. Finally, Section 5 concludes the paper and outlines directions for future research.
2. PRELIMINARIES
In this section, we present the fundamental concepts that will serve as the basis for the remainder of this paper. We briefly review the theory of linear codes and linear complementary pairs of codes, followed by the basics of elliptic curves and finally introduce algebraic geometry elliptic codes. For more general results and further details on these topics, we refer the reader to [6, 13, 14].
2.1. Linear Codes and Linear Complementary Pairs. A linear code C of length n over a finite field Fq is a vector subspace of Fqn. The dimension of C as an Fq-vector space is denoted by k. The Hamming weight of a vector v∈Fqn is the number of its non-zero coordinates, and the minimum distance d of C is the minimum Hamming weight of its non-zero vectors. A linear code with length n, dimension k, and minimum distance d is referred to as an [n,k,d]q-code.
The parameters of a linear code satisfy the Singleton bound, which states that d≤n−k+1. Codes achieving this bound, meaning d=n−k+1, are called Maximum Distance Separable (MDS) codes.
For two vectors u=(u1,…,un) and v=(v1,…,vn) in Fqn, their standard Euclidean inner product is ⟨u,v⟩=∑i=1nuivi. The dual code of C, denoted by C⊥, is the orthogonal complement of C with respect to this inner product:
C⊥={u∈Fqn∣⟨u,v⟩=0forallv∈C}.
If C is an [n,k,d]q-code, its dual C⊥ is an [n,n−k,d⊥]q-code. It is a well-known property that the dual of an MDS code is also an MDS code.
Two linear codes C and D of length n over Fq form a Linear Complementary Pair (LCP) if they satisfy the direct sum decomposition
C⊕D=Fqn.
Equivalently, the pair (C,D) is an LCP of codes if and only if dim(C)+dim(D)=n and their intersection is trivial, that is, C∩D={0}.
2.2. Elliptic Curves. Let E/Fq be an elliptic curve with identity element O. We identify rational points of E with rational places of the function field Fq(E). The set of rational points E(Fq) is a finite abelian group. We write ⊕ for the group law on E(Fq), ⊖ for the corresponding inverse operation and + for the addition of divisors. For P∈E(Fq) and m∈Z, the symbol [m]P denotes scalar multiplication in E(Fq), while mP denotes the divisor obtained by adding the place P with multiplicity m.
By the Hasse Theorem, the number ∣E(Fq)∣ of Fq-rational points of E satisfies ∣E(Fq)∣=q+1−t, for some integer t with ∣t∣≤2q. It is also well-known that there are integers n1,n2≥1 with n1∣n2 and n1∣(q−1) such that
E(Fq)≅Z/n1Z⊕Z/n2Z.
For a description of all groups that can occur as E(Fq), see [15].
For a rational divisor D=∑PmPP on E, its group sum is defined by
σ(D)=P⨁[mP]P∈E(Fq).
The Abel-Jacobi Theorem states that the degree zero divisor class group is isomorphic to the group E(Fq) via the map [D]↦σ(D) [13, Proposition 3.4]. Under this isomorphism, a degree zero divisor is principal if and only if it maps to the identity element O. Since the difference D1−D2 of two divisors of the same degree has degree zero, we obtain the equivalence
D1∼D2⟺σ(D1)=σ(D2).
For a divisor A∈Div(E), the Riemann-Roch space L(A) associated with A is the set
L(A)={z∈Fq(E)∣div(z)≥−A}∪{0}.
From the Riemann-Roch Theorem, since E has genus g=1, the dimension ℓ(A):=dimFqL(A) is given by
ℓ(A)=deg(A)+ℓ(K−A),
where K∈Div(E) is a canonical divisor of E. In particular,
Recall that a divisor A on E is called non-special if ℓ(A)=deg(A); equivalently, ℓ(K−A)=0 for any canonical divisor K∈Div(E). Thus, degree-zero divisors are non-special if and only if they are non-principal.
2.3. Elliptic Codes. We now construct a specific class of linear codes using elliptic curves. Let P1,…,Pn∈E(Fq) be n distinct Fq-rational points of E and consider the divisor D:=P1+⋯+Pn. For a rational divisor G on E whose support is disjoint from that of D and 0<deg(G)<n, the elliptic algebraic geometric code (or simply, elliptic code) CL(D,G) associated with G and D is
CL(D,G)={(f(P1),…,f(Pn))∣f∈L(G)}⊆Fqn.
We have that CL(D,G) is an [n,k,d]q-code, where
(2)
k=deg(G)andd=n−kord=n−k+1.
ADLER MARQUES
Consequently, by the definitions above, elliptic codes are either MDS [n,k,n−k+1]q-codes or almost-MDS (or near-MDS) [n,k,n−k]q-codes.
The following characterizes the MDS property for elliptic codes [11].
Lemma 2.1. Let D=∑i=1nPi be the sum of n distinct rational points of E, and let G be a divisor with support disjoint from that of D. Suppose that 0<degG<n, and put k:=degG. Then, CL(D,G) is an MDS code if and only if there are no k distinct points Pi1,…,Pik∈Supp(D) such that
σ(G)=Pi1⊕⋯⊕Pik.
Equivalently, CL(D,G) is almost-MDS if and only if there exist k distinct points Pi1,…,Pik∈Supp(D) such that
G∼Pi1+⋯+Pik.
2.4. LCP of AG Codes. Constructing an LCP of codes requires two codes with trivial intersection and complementary dimensions. For AG codes, we translate these linear algebraic properties into geometric conditions on Riemann-Roch spaces by manipulating their underlying divisors.
Let G and H be two divisors on E, given by G=∑mPP and H=∑nPP. The greatest common divisor (gcd) and the least multiple divisor (lmd) of G and H are defined naturally as
From the definition of Riemann-Roch spaces, it holds L(G)∩L(H)=L(gcd(G,H)). By evaluating these spaces at D, we obtain the inclusion
(3)
CL(D,gcd(G,H))⊆CL(D,G)∩CL(D,H).
The reverse inclusion does not hold in general. A codeword in CL(D,G)∩CL(D,H) comes from functions f∈L(G) and h∈L(H) that evaluate to the same vector on D. This implies that their difference vanishes on D, meaning f−h∈L(lmd(G,H)−D). Thus, to determine the intersection of the codes, it is necessary to analyze the Riemann-Roch space of lmd(G,H)−D. This algebraic behavior motivates the sufficient conditions for an LCP of AG codes, as established by Bhowmick, Dalai and Mesnager [1].
Theorem 2.2. [1, Theorem 3.5] Let CL(D,G) and CL(D,H) be two AG codes over Fq of length n with genus g>0, such that 2g−2<deg(G), deg(H)<n. Then (CL(D,G),CL(D,H)) is an LCP of codes if:
(1) ℓ(G)+ℓ(H)=n, and
(2) gcd(G,H) and lmd(G,H)−D are both non-special divisors of degree g−1.
3. LCP of MDS ELIPTIC CODES
We now focus on the construction and analysis of linear complementary code pairs obtained specifically from elliptic curves.
3.1. General Conditions and MDS Limitations. By applying Theorem 2.2 to the case where the genus is g=1, the geometric conditions simplify substantially. For an elliptic curve, the degree bounds become 0<deg(G), deg(H)<n, which ensures that ℓ(G)=deg(G) and ℓ(H)=deg(H). Furthermore, as seen in Equation (1), a degree-zero divisor is non-special if and only if it is non-principal. Combining these facts with the Abel-Jacobi Theorem yields practical sufficient conditions for LCPs of elliptic codes.
Corollary 3.1. Let G and H be divisors on an elliptic curve E whose supports are disjoint from D=P1+⋯+Pn. Suppose 0<deg(G), deg(H)<n. Then (CL(D,G),CL(D,H)) is an LCP of elliptic codes if the following conditions hold:
(i) deg(G)+deg(H)=n;
(ii) deg(gcd(G,H))=0 and σ(gcd(G,H))=O;
(iii) deg(lmd(G,H))=n and σ(lmd(G,H))=σ(D).
A fundamental question is whether an LCP of codes can be formed entirely by MDS codes. The following result establishes that if an elliptic curve does not admit MDS codes of a given low dimension, then any LCP of elliptic codes derived from it that contains a code of that dimension will be completely without MDS codes.
Proposition 3.2. Let E/Fq be an elliptic curve and D=P1+⋯+Pn be the sum of n distinct rational points of E. Let α be an integer such that 0<α<n. Suppose that for every divisor G′∈Div(E) whose support is disjoint from D and which satisfies 0<deg(G′)<α, the elliptic code CL(D,G′) is not MDS. If (CL(D,G),CL(D,H)) is an LCP of elliptic codes with 0<deg(G)<α, then neither CL(D,G) nor CL(D,H) is an MDS code.
Proof. Let (CL(D,G),CL(D,H)) be an LCP of elliptic codes such that 0<degG<α. By the initial assumption, since 0<degG<α, we have dimCL(D,G)=degG and CL(D,G) is necessarily not an MDS code.
Since CL(D,G)⊕CL(D,H)=Fqn, we have
dimCL(D,H)=n−dimCL(D,G)=n−deg(G).
It follows that deg(H)=n−deg(G).
Suppose, by contradiction, that CL(D,H) is an MDS code. It is well-known that the dual of an MDS code is also MDS. Recall that the dual code CL(D,H)⊥ is the elliptic code CL(D,H⊥), where H⊥:=D−H+div(η) for some suitable differential η on E. Since the divisor of a differential on an elliptic curve has degree 2g−2=0, the degree of H⊥ is given by
Consequently, we obtain 0<deg(H⊥)<α. By hypothesis, this condition forces the elliptic code CL(D,H⊥) to be non-MDS, contradicting our assumption. Hence, CL(D,H) cannot be MDS.
Remark 3.3. The assumption that no code CL(D,G′) of dimension k<α is MDS restricts the evaluation divisor D. By Lemma 2.1, this hypothesis requires that, for every 1≤k<α, the subset sum map from the k-subsets of Supp(D) to E(Fq), given by {Q1,…,Qk}↦Q1⊕⋯⊕Qk, must be surjective. This implies (kn)≥∣E(Fq)∣. If α≥2, setting k=1 yields n≥∣E(Fq)∣. Since Supp(D)⊆E(Fq) implies n≤∣E(Fq)∣, we obtain n=∣E(Fq)∣. Thus, the non-existence of MDS codes for dimensions k<α occurs only when evaluating over all Fq-rational points of E.
ADLER MARQUES
3.2. Constructions of LCPs of MDS Elliptic Codes. By Remark 3.3, constructing an LCP of MDS elliptic codes requires the evaluation divisor D to be supported on a proper subset of E(Fq). We provide explicit constructions of such pairs by forming D from subgroup cosets, excluding at least two rational points of E.
Let H≤E(Fq) be a subgroup of order m, and let P0∈E(Fq) be such that ⟨P0⟩∩H={O}. Let Λ={λ1,…,λs} be a set of s distinct non-zero integers modulo ord(P0) with λ1=1. For each 1≤j≤s, define the coset Hj=[λj]P0⊕H. The condition on Λ ensures that O∈/Hj for all j.
Let U=⋃j=1sHj and define the evaluation divisor as
D=P∈U\{P0}∑P.
Let n=deg(D)=sm−1. The number of points each coset contributes to Supp(D) is given by m1=m−1 and mj=m for 2≤j≤s. Finally, let SΛ=∑j=1sλj. By construction, Supp(D) is disjoint from {P0,O}.
Theorem 3.4. With the notation above, let a and b be positive integers satisfying 0<b−a<n, and assume that
a≡0andb≡0(modord(P0)).
Furthermore, assume the following conditions hold:
(1) b≡mSΛ−1(modord(P0)).
(2) For every sequence of integers (k1,…,ks) such that 0≤kj≤mj and ∑j=1skj=b−a,
b≡j=1∑skjλj(modord(P0)).
(3) For every sequence of integers (ℓ1,…,ℓs) such that 0≤ℓj≤mj and ∑j=1sℓj=a+n−b,
a≡j=1∑sℓjλj(modord(P0)).
Then, the pair of codes
(CL(D,aP0+(n−b)O),CL(D,bP0−aO))
forms an LCP of MDS elliptic codes with parameters [n,a+n−b,b−a+1]q and [n,b−a,n−b+a+1]q, respectively.
Proof. Let G=aP0+(n−b)O and H=bP0−aO. Note that deg(G)=a+n−b and deg(H)=b−a. Since 0<b−a<n, we have 0<deg(G), deg(H)<n. Furthermore, Supp(G)∪Supp(H)⊆{P0,O}, which is disjoint from Supp(D) by construction. Thus, the codes CL(D,G) and CL(D,H) are well-defined with dimensions kG=deg(G) and kH=deg(H).
We first show that CL(D,H) is an MDS code. Suppose, for contradiction, that it is not. By Lemma 2.1, there exists a subset of kH distinct points in Supp(D) such that
(4)
Pi1⊕⋯⊕PikH=σ(H)=[b]P0.
LCP OF MDS ELLIPTIC CODES
7
By grouping these kH points according to the cosets Hj to which they belong, we can rewrite the left-hand side of (4) as
(5)
Pi1⊕⋯⊕PikH=j=1⨁sl=1⨁kjPj,l,
where Pj,l∈Hj∩Supp(D) and ∑j=1skj=kH with 0≤kj≤mj.
Since each point Pj,l belongs to Hj=[λj]P0⊕H, the sum of kj such points evaluates to [kjλj]P0⊕Qj for some Qj∈H. Substituting this into (4) and (5) yields
where Q′=⨁j=1sQj∈H. Rearranging terms, we obtain
[b−j=1∑skjλj]P0=Q′∈H.
Since ⟨P0⟩∩H={O}, this forces b−∑j=1skjλj≡0(modord(P0)), contradicting Condition 2. Thus, CL(D,H) is MDS.
By an analogous argument, we show that CL(D,G) is MDS. Assume for contradiction that there exist kG=a+n−b points in Supp(D) summing to σ(G)=[a]P0. Grouping these points by coset yields variables ℓj satisfying 0≤ℓj≤mj and ∑j=1sℓj=kG such that
[a]P0=[j=1∑sℓjλj]P0⊕Q,forsomeQ∈H.
This implies [a−∑j=1sℓjλj]P0∈H, which contradicts Condition 3. Hence, CL(D,G) is also MDS.
Finally, we prove that (CL(D,G),CL(D,H)) is a linear complementary pair. From Corollary 3.1, we must verify that gcd(G,H) and lmd(G,H)−D are divisors of degree zero satisfying
σ(gcd(G,H))=Oandσ(lmd(G,H)−D)=O.
Since 0<b−a<n, it follows that gcd(G,H)=aP0−aO, whose degree is 0 and whose group sum is σ(gcd(G,H))=[a]P0. As a≡0(modord(P0)), we have [a]P0=O.
To evaluate σ(lmd(G,H)−D), we first determine σ(D). The sum of all m points in a single coset Hj is [mλj]P0⊕SH, where SH=⨁Q∈HQ. Since P0 is removed from H1, we obtain
Since ⟨P0⟩∩H={O}, Condition 1 guarantees that [b−mSΛ+1]P0=O. Thus, σ(lmd(G,H)−D)=O, concluding the proof that (CL(D,G),CL(D,H)) is an LCP of MDS elliptic codes.
Corollary 3.5. Let H≤E(Fq) be a subgroup of order m and P0∈E(Fq) a rational point such that ⟨P0⟩∩H={O}. Let D=∑P∈(P0⊕H)∖{P0}P, so that n=deg(D)=m−1. Assume a and b are positive integers satisfying 0<b−a<n, such that
a,b≡0(modord(P0))andb≡n(modord(P0)).
Then, the pair of codes
(CL(D,aP0+(n−b)O),CL(D,bP0−aO))
is an LCP of MDS elliptic codes with respective parameters [n,a+n−b,b−a+1]q and [n,b−a,n−b+a+1]q.
Proof. We apply Theorem 3.4 for s=1. Here, Λ={1}, so λ1=1 and SΛ=1. Condition 1 becomes b≡m−1(modord(P0)), that is, b≡n(modord(P0)). For Condition 2, the only possible partition for b−a is k1=b−a. The condition reduces to b≡b−a(modord(P0)), which simplifies to a≡0(modord(P0)). For Condition 3, the only partition for a+n−b is ℓ1=a+n−b. The condition reduces to a≡a+n−b(modord(P0)), which simplifies to b≡n(modord(P0)). Since a≡0 and b≡n(modord(P0)) by hypothesis, all conditions of Theorem 3.4 are satisfied and the result follows.
4. EXAMPLES FROM EXPLICIT ELIPTIC CURVES
In this section, we apply the general constructions established previously to explicitly specialize the LCPs of MDS elliptic codes over finite fields. By evaluating over specific elliptic curves with well-known cyclic or bi-cyclic group structures, such as Mordell curves and supersingular curves, we generate concrete families and numerical examples of these codes.
Proposition 4.1. Let p be a prime satisfying p≡5 or 11(mod18) and set n=(p−2)/3. Let E:y2=x3+λ be a Mordell curve over Fp with λ∈Fp∗. Let P0∈E(Fp) be a rational point of order 3, and let H≤E(Fp) be the unique subgroup of order n+1. Define the evaluation divisor D=∑P∈(P0⊕H)∖{P0}P. If b is an integer such that 1<b<n+1, with b≡0(mod3) and b≡n(mod3), then the pair of codes
(CL(D,P0+(n−b)O),CL(D,bP0−O))
forms an LCP of MDS elliptic codes over Fp with respective parameters
[n,n−b+1,b]pand[n,b−1,n−b+2]p.
Proof. First, observe that p≡5 or 11 (mod 18) implies p≡2 (mod 3). For a Mordell curve y2=x3+λ over Fp with p≡2 (mod 3), the map x↦x3 is a bijection on Fp. Consequently, the curve has exactly ∣E(Fp)∣=p+1 rational points. Moreover, the polynomial x3+λ has a unique root in Fp, meaning the curve has exactly one rational point of order 2. Since ∣E(Fp)∣=p+1 is even, this unique point of order 2 ensures that the finite abelian group E(Fp) is cyclic.
From n=3p−2, we have ∣E(Fp)∣=p+1=3(n+1). Since E(Fp) is cyclic, it contains a unique subgroup H of order n+1 and a unique subgroup of order 3, which is generated by P0. The condition p≡5 or 11 (mod 18) implies that p≡2 or 5 (mod 9), which guarantees that p+1 is not divisible by 9. Consequently, 3 does not divide n+1=(p+1)/3. Thus, gcd(∣H∣,ord(P0))=gcd(n+1,3)=1, which means that ⟨P0⟩∩H={O}.
By definition, the divisor D is the sum of the points in the coset P0⊕H excluding P0. Therefore, deg(D)=∣H∣−1=n, and its support does not contain P0. We now apply Corollary 3.5 with a=1. The assumption 1<b<n+1 guarantees that 0<b−1<deg(D). Furthermore, since ord(P0)=3 and deg(D)=n, by hypotheses, we obtain b≡0(modord(P0)) and b≡deg(D)(modord(P0)).
Since all conditions of Corollary 3.5 are satisfied, the pair of codes forms an LCP of MDS elliptic codes over Fp. Their respective dimensions are kG=n−b+1 and kH=b−1, completing the proof.
Proposition 4.2. Let p≡3(mod8) be a prime and set n=(p−3)/4. Let E:y2=x3+x be an elliptic curve over Fp. Let P0∈E(Fp) be a rational point of order 4 and let H≤E(Fp) be the unique subgroup of order n+1. Define the evaluation divisor D=∑P∈(P0⊕H)∖{P0}P.
If b is an integer such that 1<b<n+1, with b≡0(mod4) and b≡n(mod4), then the pair of codes
(CL(D,P0+(n−b)O),CL(D,bP0−O))
forms an LCP of MDS elliptic codes over Fp with respective parameters
[n,n−b+1,b]pand[n,b−1,n−b+2]p.
Proof. First, observe that the congruence p≡3(mod8) implies p≡3(mod4). It is a well-known fact that the elliptic curve y2=x3+x over Fp with p≡3(mod4) has exactly ∣E(Fp)∣=p+1 rational points. Because p≡3(mod4), -1 is a quadratic non-residue modulo p. Therefore, the polynomial x3+x=x(x2+1) has a unique root in Fp, meaning the curve has exactly one rational point of order 2. Since ∣E(Fp)∣=p+1 is even, this unique point of order 2 ensures that the finite abelian group E(Fp) is cyclic.
From n=(p−3)/4, we have ∣E(Fp)∣=p+1=4(n+1). Since E(Fp) is cyclic, it contains a unique subgroup H of order n+1 and a unique subgroup of order 4, which is generated by P0. Furthermore, the condition p≡3(mod8) implies that p+1≡4(mod8), meaning that n+1=(p+1)/4 is an odd integer. Thus, gcd(∣H∣,ord(P0))=gcd(n+1,4)=1, which means that ⟨P0⟩∩H={O}.
By definition, the divisor D is the sum of the points in the coset P0⊕H excluding P0. Therefore, deg(D)=∣H∣−1=n, and its support does not contain P0. We now apply Corollary 3.5 with a=1. The assumption 1<b<n+1 guarantees that 0<b−1<deg(D). Furthermore, since ord(P0)=4 and deg(D)=n, the hypotheses
ADLER MARQUES
b≡0(mod4) and b≡n(mod4) translate directly to b≡0(modord(P0)) and b≡deg(D)(modord(P0)).
Since all conditions of Corollary 3.5 are satisfied, the pair of codes forms an LCP of MDS elliptic codes over Fp. Their respective dimensions are kG=n−b+1 and kH=b−1, completing the proof.
Example 4.3. Let p=47≡11(mod18), which yields n=347−2=15. For a Mordell curve E:y2=x3+λ (with λ=0) over F47, Proposition 4.1 provides explicit LCPs of MDS codes of length 15 using a subgroup H of order 16 and a rational point P0 of order 3.
The integer b must satisfy 1<b<16, b≡0(mod3) and b≡15≡0(mod3). Thus, b∈{2,4,5,7,8,10,11,13,14}. For each choice of b, the construction yields a pair of MDS codes CL(D,G) and CL(D,H) with dimensions 16−b and b−1, respectively. Their parameters are summarized below:
b
CL(D,G)
CL(D,H)
2
[15,14,2]47
[15,1,15]47
4
[15,12,4]47
[15,3,13]47
5
[15,11,5]47
[15,4,12]47
7
[15,9,7]47
[15,6,10]47
8
[15,8,8]47
[15,7,9]47
10
[15,6,10]47
[15,9,7]47
11
[15,5,11]47
[15,10,6]47
13
[15,3,13]47
[15,12,4]47
14
[15,2,14]47
[15,13,3]47
Example 4.4. Let p=59≡3(mod8), which gives n=459−3=14. For the curve E:y2=x3+x over F59, Proposition 4.2 provides explicit LCPs of length 14 using a subgroup H of order 15 and a rational point P0 of order 4.
The integer b must satisfy 1<b<15 and the congruences b≡0(mod4) and b≡14≡2(mod4). This implies that b∈{3,5,7,9,11,13}. For each choice of b, the construction yields an LCP of MDS codes CL(D,G) and CL(D,H) with dimensions 15−b and b−1, respectively. Their parameters are summarized below:
b
CL(D,G)
CL(D,H)
3
[14,12,3]59
[14,2,13]59
5
[14,10,5]59
[14,4,11]59
7
[14,8,7]59
[14,6,9]59
9
[14,6,9]59
[14,8,7]59
11
[14,4,11]59
[14,10,5]59
13
[14,2,13]59
[14,12,3]59
While the preceding results focus on the single-coset case (s=1), the following example illustrates the general multi-coset construction (s>1) established in Theorem 3.4.
Example 4.5. Consider the supersingular elliptic curve E:y2=x3+x over F19. Since 19≡3(mod4), we have ∣E(F19)∣=20 and E(F19)≅Z/20Z is cyclic. Let P0∈E(F19) be a rational point of order 4 and H be the unique subgroup of order m=5; in particular, ⟨P0⟩∩H={O}. We consider Λ={1,3} to form s=2 cosets. The resulting evaluation divisor D has degree n=2⋅5−1=9.
Setting a=1, the integer b is restricted to 1<b<10 and b≡0(mod4). We verify the conditions of Theorem 3.4:
• Condition 1 requires b≡mSΛ−1(mod4). Since SΛ=4, this gives b≡5(4)−1≡3(mod4), restricting the allowed values to b∈{2,5,6,9}.
• Condition 2 states that for any sequence of non-negative integers (k1,k2) such that k1+k2=b−1, we must have b≡k1+3k2(mod4). Substituting k2=b−1−k1, the congruence reduces to 2b≡1−2k1(mod4). Since 2b is even and 1−2k1 is odd, this holds trivially for all b.
• Condition 3 determines 1≡ℓ1+3ℓ2(mod4) for any sequence of non-negative integers (ℓ1,ℓ2) such that ℓ1+ℓ2=10−b. This similarly simplifies to b≡3+2ℓ1(mod4). This holds for b∈{2,6} (which are even) but fails for b∈{5,9} (which are odd) upon choosing ℓ1=1.
Consequently, b∈{2,6}. By Theorem 3.4, this yields the following LCPs of MDS elliptic codes of length 9:
Finally, we apply the multi-coset approach to construct large-length LCPs of MDS codes over quadratic extensions. Using the Zp+1⊕Zp+1 group structure of supersingular curves over Fp2, we generate the following infinite family by taking the union of s cosets.
Proposition 4.6. Let p≥7 be a prime satisfying p≡3(mod4). Let E:y2=x3−x be an elliptic curve over Fp2. Let H and ⟨P0⟩ be disjoint subgroups of E(Fp2) of order p+1. For an integer 1≤s≤(p−1)/2, define
U=(j=1⋃s[j]P0⊕H)∖{P0}andD=P∈U∑P.
Let n=deg(D)=s(p+1)−1. If k≥1 is an integer satisfying k(2s−1)+2≤p, define a=k(s−1)+1 and b=ks+1. Then, the pair of codes
(CL(D,aP0+(n−b)O),CL(D,bP0−aO))
forms an LCP of MDS elliptic codes over Fp2 with respective parameters
[n,n−k,k+1]p2and[n,k,n−k+1]p2.
Proof. First, recall that since p≡3(mod4), the curve E over Fp is supersingular with trace of Frobenius zero. Standard elliptic curve theory over finite fields (see, e.g., [17, Chapter 4]) dictates that E(Fp2)≅Zp+1⊕Zp+1. This guarantees the existence of the disjoint subgroups H and ⟨P0⟩, both of order p+1. We apply Theorem 3.4 with
ord(P0)=p+1,Λ={1,…,s},m1=pandmj=p+1for2≤j≤s.
The condition k≥1 implies a=k(s−1)+1≥1, which ensures 0<a<b<p+1. Consequently, 0<b−a=k<n and a,b≡0(modp+1).
We now verify the three conditions of Theorem 3.4.
For Condition 1, mSΛ−1=(p+1)SΛ−1≡−1≡p(modp+1). Since b<p, we have b≡mSΛ−1(modp+1).
ADLER MARQUES
For Condition 2, consider a sequence kj such that ∑j=1skj=b−a=k. The sum Σk=∑j=1sjkj satisfies k≤Σk≤ks. Since b=ks+1, we have b>Σk, yielding b≡Σk(modp+1).
For Condition 3, consider a sequence ℓj such that ∑j=1sℓj=a+n−b=n−k. Setting v1=p−ℓ1 and vj=p+1−ℓj for j≥2, we obtain ∑j=1svj=k. The sum Σℓ=∑j=1sjℓj evaluates to
Σℓ=p+(p+1)j=2∑sj−j=1∑sjvj≡−1−Σv(modp+1),
where Σv=∑j=1sjvj. Since ∑j=1svj=k, we have k≤Σv≤ks. Thus, Σℓ(modp+1) takes values in the interval [p−ks,p−k]. Finally, since a=ks−k+1 and 2ks−k+2≤p, we have a≤p−ks−1<p−ks. Hence, a≡Σℓ(modp+1).
Since all conditions of Theorem 3.4 are satisfied, the pair of codes forms the desired LCP of MDS elliptic codes, completing the proof.
To illustrate the possible values of the parameters and the geometric conditions of this family, we apply the construction explicitly to p=19, considering all possible choices of cosets and dimensions.
Example 4.7. Let p=19≡3(mod4). We consider the supersingular elliptic curve E:y2=x3−x over F361. The group of rational points is isomorphic to Z20⊕Z20. Let H and ⟨P0⟩ be disjoint subgroups of E(F361) of order p+1=20. The number of cosets s can take values from 1 to (p−1)/2=9. For a given s, the evaluation divisor D is supported on n=20s−1 rational points.
By Proposition 4.6, for each s∈{1,…,9}, the parameter k must be a positive integer satisfying k(2s−1)+2≤19, so k≤⌊17/(2s−1)⌋. Each valid pair (s,k) determines the coefficients a=k(s−1)+1 and b=ks+1.
By setting G=aP0+(n−b)O and H=bP0−aO, we obtain an LCP of MDS elliptic codes over F361 with dimensions n−k and k. The parameters of the resulting codes are summarized below:
s
n
k
CL(D,G)
CL(D,H)
1
19
1≤k≤17
[19,19−k,k+1]361
[19,k,20−k]361
2
39
1≤k≤5
[39,39−k,k+1]361
[39,k,40−k]361
3
59
1≤k≤3
[59,59−k,k+1]361
[59,k,60−k]361
4
79
1≤k≤2
[79,79−k,k+1]361
[79,k,80−k]361
5
99
1
[99,98,2]361
[99,1,99]361
6
119
1
[119,118,2]361
[119,1,119]361
7
139
1
[139,138,2]361
[139,1,139]361
8
159
1
[159,158,2]361
[159,1,159]361
9
179
1
[179,178,2]361
[179,1,179]361
As shown above, increasing the number of cosets s results in longer lengths n, but restricts the possible values of k. In particular, for s≥5, the bounding condition forces k=1, yielding component codes of dimensions 1 and n−1.
5. CONCLUSION
In this paper, we investigated the theoretical limitations and explicit constructions of LCPs of MDS elliptic codes over finite fields. By applying the Abel-Jacobi
REFERENCES
13
theorem, we established sufficient geometric conditions for LCPs of elliptic codes and proved a fundamental non-existence result: an LCP of elliptic codes cannot consist entirely of MDS codes if evaluated over all rational points. To overcome this geometric obstruction, we developed a general multi-coset algebraic construction that systematically breaks the zero-sum relation. Relying on the precise group structure of the underlying curve, this approach enabled the derivation of exact parameters for explicit infinite families of LCPs of MDS codes from Mordell and supersingular curves. All explicit families and computational parameters have been verified using MAGMA. For future work, it would be interesting to extend this geometric framework to construct LCPs of optimal codes by exploiting the group of divisors of algebraic curves of higher genus.
[2] Julien Bringer et al. “Orthogonal Direct Sum Masking”. In: Information Security Theory and Practice. Securing the Internet of Things. Ed. by David Naccache and Damien Sauveron. Berlin, Heidelberg: Springer Berlin Heidelberg, 2014, pp. 40–56. ISBN: 978-3-662-43826-8.
[3] Claude Carlet and Sylvain Guilley. “Complementary Dual Codes for Counter-Measures to Side-Channel Attacks”. In: Coding Theory and Applications. Ed. by Raquel Pinto, Paula Rocha Malonek, and Paolo Vettori. Cham: Springer International Publishing, 2015, pp. 97–105. ISBN: 978-3-319-17296-5.
[4] Alonso S. Castellanos, Adler V. Marques, and Luciane Quoos. “Linear Complementary Dual Codes and Linear Complementary Pairs of AG Codes in Function Fields”. In: IEEE Transactions on Information Theory 71.3 (2025), pp. 1676–1688. DOI: 10.1109/TIT.2024.3521094.
[5] Haojie Chen et al. On the Maximal Length of MDS Elliptic Codes. 2026. arXiv:2605.29439 [cs.IT]. URL: https://arxiv.org/abs/2605.29439.
[7] Dongchun Han and Yuan Ren. “A Tight Upper Bound for the Maximal Length of MDS Elliptic Codes”. In: IEEE Transactions on Information Theory 69.2 (2023), pp. 819–822. DOI: 10.1109/TIT.2022.3211543.
[8] Jiyou Li, Daqing Wan, and Jun Zhang. “On the minimum distance of elliptic curve codes”. In: 2015 IEEE International Symposium on Information Theory (ISIT). 2015, pp. 2391–2395. DOI: 10.1109/ISIT.2015.7282884.
[10] Eduardo Camps Moreno, Hiram H. López, and Gretchen L. Matthews. "Explicit Non-special Divisors of Small Degree, Algebraic Geometric Hulls, and LCD Codes from Kummer Extensions". In: SIAM Journal on Applied Algebra and Geometry 8.2 (2024), pp. 394–413. DOI: 10.1137/21M1467936. eprint: https://doi.org/10.1137/21M1467936. URL: https://doi.org/10.1137/21M1467936.
[12] Xuan Thuy Ngo et al. “Linear complementary dual code improvement to strengthen encoded circuit against hardware Trojan horses”. In: 2015 IEEE International Symposium on Hardware Oriented Security and Trust (HOST). 2015, pp. 82–87. DOI: 10.1109/HST.2015.7140242.
[13] Joseph H Silverman. The arithmetic of elliptic curves. Vol. 106. 2. Springer, 2009.
[14] Henning Stichtenoth. Algebraic function fields and codes. Springer, 2009.
[15] J.F. Voloch. “A note on elliptic curves over finite fields”. eng. In: Bulletin de la Société Mathématique de France 116.4 (1988), pp. 455–458. URL: http://eudml.org/doc/87565.
[16] Puyin Wang et al. “Non Reed–Solomon Type MDS Codes From Elliptic Curves”. In: IEEE Transactions on Information Theory 72.9 (2026), pp. 6551–6557. DOI: 10.1109/TIT.2026.3705881.