scieee AI-readable full text Open interactive document viewer

Squares of matrix-product codes

Cascudo, Ignacio,Gundersen, Jaron Skovsted,Ruano Benito, Diego

Abstract

This work is supported by the Danish Council for IndependentResearch: grant DFF-4002-00367, theSpanish Ministry of Economy/FEDER: grant RYC-2016-20208 (AEI/FSE/UE), the Spanish Ministry of Science/FEDER: grant PGC2018-096446-B-C21, and Junta de CyL (Spain): grant VA166G1

Full text

Squares of Matrix-product Codes∗ Ignacio Cascudo† , Jaron Skovsted Gundersen‡ , and Diego Ruano§ Abstract The component-wise or Schur product C∗C0of two linear error-correcting codes Cand C0over certain finite field is the linear code spanned by all component-wise products of a codeword in Cwith a codeword in C0. When C=C0, we call the product the square of Cand denote it C∗2. Motivated by several applications of squares of linear codes in the area of cryptography, in this paper we study squares of so-called matrixproduct codes, a general construction that allows to obtain new longer codes from several “constituent” codes. We show that in many cases we can relate the square of a matrix-product code to the squares and products of their constituent codes, which allow us to give bounds or even determine its minimum distance. We consider the well-known (u, u+v)-construction, or Plotkin sum (which is a special case of a matrix-product code) and determine which parameters we can obtain when the constituent codes are certain cyclic codes. In addition, we use the same techniques to study the squares of other matrix-product codes, for example when the defining matrix is Vandermonde (where the minimum distance is in a certain sense maximal with respect to matrix-product codes). 1 Introduction Component-wise or Schur products of linear error-correcting codes have been studied for different purposes during the last decades, from efficient decoding to applications in several different areas within cryptography. Given two linear (over some finite field F) codes C1, C2 of the same length we define the component-wise product of the codes C1∗C2to be the span over Fof all component-wise products c1∗c2, where ci∈Ci. Many of these applications involve the study of the main parameters of interest in the theory of error-correcting codes, namely dimension and minimum distance, where in this case we want to analyze the behaviour of some of these parameters both on the factor codes and their product simultaneously. Recall that the dimension dim Cof a linear code Cis its dimension as a vector space over the finite field, and the minimum distance d(C)of Cis the smallest Hamming distance between two distinct codewords of the code. Additionally, some applications involve the analysis of the minimum distance of the duals of the factor codes (recall that the dual C⊥of Cis the linear code containing all vectors that are orthogonal to all codewords of Cunder the standard inner product over F). One of the first applications where component-wise products of codes became relevant concerned error decoding via the notion of error-locating pairs in the works of Pellikaan ∗Published in Finite Fields and their Applications. Volume 62, 101606 (2020). This work is supported by the Danish Council for Independent Research: grant DFF-4002-00367, the Spanish Ministry of Economy/FEDER: grant RYC-2016-20208 (AEI/FSE/UE), the Spanish Ministry of Science/FEDER: grant PGC2018-096446-B-C21, and Junta de CyL (Spain): grant VA166G18. †IMDEA Software Institute, Madrid, Spain. Email: [email protected] ‡Department of Mathematical Sciences, Aalborg University, Denmark. Email: [email protected] §IMUVA-Mathematics Research Institute, University of Valladolid, Spain. Email: [email protected] 1 and of Duursma and Kötter [13, 22]. An error-locating pair for a code Cis a pair C1, C2 where C1∗C2⊆C⊥, and the number of errors the pair is able to correct depends on the dimensions and minimum distances of the codes and their duals. More precisely, it is required that dim(C1)> t and d(C⊥ 2)> t if we should be able to locate terrors. Later on, the use of component-wise products found several applications in the area of cryptography. For example, some attacks to variants of the McEliece cryptosystem (which relies on the assumption that it is hard to decode a general linear code) use the fact that the dimension of the product C∗Ctends to be much larger when Cis a random code than when Chas certain algebraic structure, which can be used to identify algebraic patterns in certain subcodes of the code defining the cryptosystem, see for instance [7, 8, 19, 23, 27]. A different cryptographic problem where products of codes are useful is private information retrieval, where a client can retrieve data from a set of servers allocating a coded database in such a way that the servers do not learn what data the client has accessed. In [15] a private information retrieval protocol based on error-correcting codes was shown, where it is desirable to use two linear codes C1and C2such that dim(C1),d(C⊥ 2), and d(C1∗C2)are simultaneously high. In this work, however, we are more interested in the application of products of codes to the area of secure multiparty computation. The goal of secure multiparty computation is to design protocols which can be used in the situation where a number of parties, each holding some private input, want to jointly compute the output of a function on those inputs, without at any point needing that any party reveals his/her input to anybody. A central component in secure computation protocols is secure multiplication, which different protocols realize in different ways. Several of these protocols require to use an error-correcting code Cwhose square C∗2=C∗Chas large minimum distance while there are additional conditions on C which vary across the different protocols. For example a well known class of secure computation protocols [1, 6, 9] relies on the concept of strongly multiplicative secret sharing scheme formalized in [9]. Such secret sharing schemes can be constructed from linear codes Cwhere the amount of colluding cheating parties that the protocol can tolerate is min(d(C⊥), d(C∗2)) + 2, where C⊥is the dual code to C. These two minimum distances are therefore desired to be simultaneously high. For more information about secret sharing and multiparty computation, see for instance [10]. Other more recent protocols have the less stringent requirement that d(C∗2)and dim C are simultaneously large. This is the case of the MiniMac [12] protocol, a secure computation protocol to evaluate boolean circuits, and its successor Tinytables [11]. In those protocols, the cheating parties have certain probability of being able to disrupt the computation, but this probability is bounded by 2−d(C∗2), meaning that a high distance on the square will give a higher security. On the other hand, a large relative dimension, or rate, of Cwill reduce the communication cost, so it is desirable to optimize both parameters. A very similar phenomenon occurs in recent work about commitment schemes, which are a building block of many multiparty computation protocols; in fact, when these schemes have a number of additional homomorphic properties and in addition can be composed securely, we can base the entire secure computation protocol on them [14]. Efficient commitment schemes with such properties were constructed in [5] based on binary linear codes, where multiplicative homomorphic properties require again to have a relatively large d(C∗2)(see [5, section 4]) and the rate of the code is also desired to be large to reduce the communication overhead. These applications show the importance of finding linear codes where the minimum distance of the square d(C∗2)is large relative to the length of the codes and where some other parameter (in some cases dim(C), in others d(C⊥)) is also relatively large. Moreover, it is especially interesting for the applications that the codes are binary, or at least be defined 2 over small fields. Powers of codes, and more generally products, have been studied in several works such as [3, 4, 20, 24, 25, 26] from different perspectives. In [24] an analog of the Singleton bound for dim(C)and d(C∗2)was established, and in [20] it is shown that Reed Solomon codes are essentially the only codes which attain this bound unless some of the parameters are very restricted. However, Reed Solomon codes come with the drawback that the field size must be larger than or equal to the length of the codes. Therefore, finding asymptotically good codes over a fixed small field has also been studied, where in this case asymptotically good means that both dim(C)and d(C∗2)grows linearly with the length of the code C. In [25] the existence of such a family over the binary field was shown, based on recent results on algebraic function fields. However, it seems like most families of codes do not have this property: in fact, despite the well known fact that random linear codes will, with high probability, be over the Gilbert Varshamov bound, and hence are asymptotically good in the classical sense, this is not the case when we impose the additional restriction that d(C∗2) is linear in the length, as it is shown in [4]. The main result in [4] implies that for a family of random linear codes either the code or the square will be asymptotically bad. The asymptotical construction from [25], despite being very interesting from the theoretical point of view, has the drawbacks that the asymptotics kick in relatively late and moreover, the construction relies on algebraic geometry, which makes it computationally expensive to construct such codes. Motivated by the aforementioned applications to cryptography, [3] focuses on codes with fixed lengths (but still considerably larger than the size of the field), and constructs cyclic codes with relatively large dimension and minimum distance of their squares. In particular, the parameters of some of these codes are explicitly computed in the binary case. This provides a limited constellation of parameters that we know that are achievable for the tuple consisting of length of C,dim(C)and d(C∗2). It is then interesting to study what other parameters can be attained, and a natural way to do so is to study how the square operation behaves under known procedures in coding theory that allow to construct new codes from existing codes. One such construction is matrix-product codes, where several codes can be combined into a new longer code. Matrix-product codes, formalized in [2], is a generalization of some previously known code constructions, such as for example the (u, u +v)-construction, also known as Plotkin sum. Matrix-product codes have been studied in several works, including [2, 16, 17, 21]. 1.1 Results and outline In this work, we study squares of matrix-product codes. We show that in several cases, the square of a matrix-product code can be also written as a matrix-product code. This allows us to determine new achievable parameters for the squares of codes. More concretely, we start by introducing matrix-product codes and products of codes in Section 2. Afterwards, we determine the product of two codes when both codes are constructed using the (u, u+v)-construction in Section 3. In Section 4, we restrict ourselves to squares of codes and exemplify what parameters we can achieve using cyclic codes in the (u, u +v)-construction in order to compare the parameters with the codes from [3]. At last, in Section 5, we consider other constructions of matrix-product codes. In particular, we consider the case where the defining matrix is Vandermonde, which is especially relevant because such matrix-product codes achieve the best possible minimum distance that one can hope for with this matrix-product strategy. We show that the squares of these 3 codes are again matrix-product codes, and if the constituent codes of the original matrixproduct code are denoted Ci, then the ones for the square are all of the form Pi+j=lCi∗Cj for some l. This is especially helpful for determining the parameters if the Ci’s are for example algebraic geometric codes. We remark that this property also holds for the other constructions we study in this paper, but only when the Ci’s are nested. Finally, we also study the squares of a matrix-product construction from [2] where we can apply the same proof techniques as we have in the other constructions. 2 Preliminaries Let Fqbe the finite field with qelements. A linear code Cis a subspace of Fn q. When Chas dimension k, we will call it an [n, k]qcode. A generator matrix for a code Cis a k×nmatrix consisting of kbasis vectors for Cas the krows. The Hamming weight of x∈Fn q, denoted w(x), is the number of nonzero entries in xand the Hamming distance between x,y∈Fn q is given by d(x,y) = w(x−y). By the linearity of Cthe minimum Hamming distance taken over all pairs of distinct elements in Cis the same as the minimum Hamming weight taking over all non-zero elements in C, and therefore we define the minimum distance of C to be d(C) = minx∈C\{0}{w(x)}. If it is known that d(C) = d(respectively if we know that d(C)≥d) then we call Can [n, k, d]qcode (resp. [n, k, ≥d]q). We denote by C⊥the dual code to C, i.e., the vector space given by all elements y∈Fn qsuch that for every x∈C,x and yare orthogonal with respect to the standard inner product in Fn q. If Cis an [n, k]q code then C⊥is an [n, n −k]qcode. We recall the definition and basic properties of matrix-product codes (following [2]) and squares of codes. Definition 2.1 (Matrix-product code): Let C1, . . . , Cs⊆Fn qbe linear codes and let A∈ Fs×l qbe a matrix with rank s(implying s≤l). Then we define the matrix-product code C= [C1, . . . , Cs]A, as the set of all matrix products [c1,...,cs]A, where ci= (c1i, . . . , cni)T∈Ci. We call A= [aij]i=1,...,s,j=1,...,l the defining matrix and the Ci’s the constituent codes. We can consider a codeword c, in a matrix-product code, as a matrix of the form c=   c11a11 +c12a21 +· · · +c1sas1· · · c11a1l+c12a2l+· · · +c1sasl . . ..... . . cn1a11 +cn2a21 +· · · +cnsas1· · · cn1a1l+cn2a2l+· · · +cnsasl   ,(1) using the same notation for the ci’s as in the definition. Reading the entries in this matrix in a column-major order, we can also consider cas a vector of the form c= s X i=1 ai1ci,..., s X i=1 ailci!∈Fnl q.(2) We sum up some known facts about matrix-product codes in the following proposition. Proposition 2.2: Let C1, . . . , Cs⊆Fn qbe linear [n, k1],...,[n, ks]codes with generator matrices G1, . . . , Gs, respectively. Furthermore, let A∈Fs×l qbe a matrix with rank sand let C= [C1, . . . , Cs]A. Then Cis an [nl, k1+· · · +ks]linear code and a generator matrix 4 of Cis given by G=   a11G1· · · a1lG1 . . ..... . . as1Gs· · · aslGs   . We now turn our attention to the minimum distance of C. Denote by Aithe matrix consisting of the first irows of Aand let CAibe the linear code spanned by the rows in Ai. From [21], we have the following result on the minimum distance. Proposition 2.3: We are making the same assumptions as in Proposition 2.2, and write Di=d(CAi)and di=d(Ci). Then the minimum distance of the matrix-product code C satisfies d(C)≥min{D1d1, D2d2, . . . , Dsds}.(3) The following corollary is from [16]. Corollary 2.4: If we additionally assume that C1⊇ · · · ⊇ Cs, equality occurs in the bound in (3). The dual of a matrix-product code is also a matrix-product code, if we make some assumptions on the matrix A, as it was noted in [2]. Proposition 2.5: Let C= [C1, C2, . . . , Cs]Abe a matrix product code. If Ais an invertible square matrix then C⊥= [C⊥ 1, C⊥ 2, . . . , C⊥ s](A−1)T Additionally, if Jis the s×smatrix given by J=     0· · · 0 1 0· · · 1 0 . . ..... . .. . . 1· · · 0 0      the dual can be described as C⊥= [C⊥ s, C⊥ s−1, . . . , C⊥ 1](J(A−1)T). Notice that with regard to Proposition 2.3 the last expression is often more useful since d(C⊥ i)will often decrease when iincreases. Now, we turn our attention to products and squares of codes. We denote by ∗the component-wise product of two vectors. That is, if x= (x1, . . . , xn)and y= (y1, . . . , yn), then x∗y= (x1y1, . . . , xnyn). With this definition in mind, we define the product of two linear codes. 5 Definition 2.6 (Component-wise (Schur) products and squares of codes): Given two linear codes C, C0⊆Fn qwe define their component-wise product, denoted by C∗C0, as C∗C0=h{c∗c0|c∈C, c0∈C0}i. The square of a code Cis C∗2=C∗C. First note that the length of the product is the same as the length of the original codes. Regarding the other parameters (dimension and minimum distance) we enumerate some known results only in the case of the squares C∗2since this will be our primary focus. If G=     g1 g2 . . . gk      is a generator matrix for C, then {gi∗gj|1≤i≤j≤n}is a generating set for C∗2. However, it might not be a basis since some of the vectors might be linearly dependent. If additionally, a submatrix consisting of kcolumns of Gis the identity, the set {gi∗gi} consists of klinearly independent vectors. Since there is always a generator matrix satisfying this, this implies k≤dim(C∗2)≤k(k+1) 2, where k= dim(C), and d(C∗2)≤d(C). In most cases, however, d(C∗2)is much smaller than d(C). For example, the Singleton bound for squares [24] states that d(C∗2)≤max{1, n −2k+ 2}(which is much restrictive than the Singleton bound for C, which states that d(C)≤n−k+ 1). Additionally, the codes for which d(C∗2) = n−2k+ 2 have been characterized in [20], where it was shown that essentially only Reed-Solomon codes, certain direct sums of self-dual codes, and some degenerate codes have this property. Furthermore, it is shown in [4] that taking a random code with dimension kthe dimension of C∗2will with high probability be min{n, k(k+1) 2}. Therefore, often dim(C∗2)dim(C)and hence typically d(C∗2)d(C). 3 The (u, u +v)-Construction In this section, we will consider one of the most well-known matrix-product codes, namely the (u, u +v)-construction. We obtain this construction when we let A=1 1 0 1∈F2×2 q(4) be the defining matrix. Note that if C= [C1, C2]Athen d(C)≥min{2d(C1), d(C2)}and d(C⊥)≥min{2d(C⊥ 2), d(C⊥ 1)}. This can easily be deduced from Propositions 2.3 and 2.5 by constructing J(A−1)T. In the following theorem, we will determine the product of two codes Cand C0when both codes come from the (u, u+v)-construction. We will use the notation C+C0to denote the smallest linear code containing both Cand C0. Theorem 3.1: Let C1, C2, C0 1, C0 2⊆Fn qbe linear codes. Furthermore, let Abe as in (4) and denote by C= [C1, C2]Aand by C0= [C0 1, C0 2]A. Then C∗C0= [C1∗C0 1, C1∗C0 2+C2∗C0 1+C2∗C0 2]A. 6 Proof: Let G1, G2, G0 1, G0 2be generator matrices for C1, C2, C0 1, C0 2respectively. By Proposition 2.2, we have that G=G1G1 0G2, G0=G0 1G0 1 0G0 2 are generator matrices for Cand C0respectively. A generator matrix for C∗C0can be obtained by making the componentwise products of all the rows in Gwith all the rows in G0and afterwards removing all linearly dependent rows. We denote by G∗G0the matrix consisting of all componentwise products of rows in Gwith rows in G0. Then G∗G0=    G1∗G0 1G1∗G0 1 0G1∗G0 2 0G2∗G0 1 0G2∗G0 2     . The set of rows in Gi∗G0 jis a generating set for Ci∗C0 j. Hence, by removing linearly dependent rows we obtain a generator matrix of the form ˜ G=˜ G1˜ G1 0˜ G2, where ˜ G1is a generator matrix for C1∗C0 1, and ˜ G2for C1∗C0 2+C2∗C0 1+C2∗C0 2. By using Proposition 2.2 once again, we see that ˜ Gis a generator matrix for the code [C1∗C0 1, C1∗C0 2+C2∗C0 1+C2∗C0 2]Aproving the theorem. The following corollary consider the square of a code from the (u, u +v)-construction, and in the remaining of the paper the focus will be on squares. Corollary 3.2: Let C1, C2⊆Fn qbe linear codes. Furthermore, let Abe as in (4) and denote by C= [C1, C2]A. Then C∗2= [C∗2 1,(C1+C2)∗C2]A, and we have that d(C∗2)≥min{2d(C∗2 1), d((C1+C2)∗C2)}.(5) Additionally, if C2⊆C1we obtain C∗2= [C∗2 1, C1∗C2]A, and we have that d(C∗2) = min{2d(C∗2 1), d(C1∗C2)}.(6) Proof: The results follows by setting C0 i=Ciin Theorem 3.1 implying C0=C, and we obtain that C∗2= [C1∗C1, C1∗C2+C2∗C1+C2∗C2]A= [C∗2 1,(C1+C2)∗C2]A. If C2⊆C1we have C1+C2=C1. The bound in (5) follows directly from Proposition 2.3, and (6) follows by Corollary 2.4. 7 4 Constructions from Binary Cyclic Codes In this section, we exemplify what parameters we can achieve for Cand C∗2when we use the (u, u +v)-construction together with cyclic codes as constituent codes. We start by presenting some basics of cyclic codes. Cyclic codes are linear codes which are invariant under cyclic shifts. That is, if c= (c0, c1, . . . , cn−2, cn−1)is a codeword then (cn−1, c0, c1, . . . , cn−2)is as well. We will assume that gcd(n, q)=1. A cyclic code of length nover Fqis isomorphic to an ideal in R= Fq[x]/hxn−1igenerated by a polynomial g, where g|xn−1. The isomorphism is given by c0+c1x+. . . +cn−1xn−17→ (c0, c1, . . . , cn−1), and we notice that a cyclic shift is represented by multiplying by x. The cyclic code generated by ghas dimension n−deg g. To bound the minimum distance of the code, we introduce the q-cyclotomic cosets modulo n. Definition 4.1 (q-cyclotomic coset modulo n): Let a∈Z/nZ. Then the q-cyclotomic coset modulo nof ais given by [a] = {aqjmod n|j≥0}. Now let βn= 1 and βk6= 1 for 1≤k≤n, meaning that βis a primitive n-th root of unity in an algebraic closure of Fq. Since g|xn−1every root of gmust be of the form βjfor some j∈ {0,1, . . . , n −1}=Z/nZ. This leads to the following definition which turns out to be useful in describing the parameters of a cyclic code. Definition 4.2 (Defining and generating set): Denote by J={j∈Z/nZ|g(βj)=0} and I={j∈Z/nZ|g(βj)6= 0}. Then we call Jthe defining set and Ithe generating set of the cyclic code Cgenerated by g. We remark that g=Qj∈J(x−βj) = (xn−1)/Qi∈I(x−βi), implying that |I|is the dimension of the cyclic code generated by g. We note that Iand Jmust be a union of q-cyclotomic cosets modulo n. Now we define the amplitude of Ias Amp(I) = min{i∈Z| ∃c∈Z/nZsuch that I⊆ {c, c + 1, . . . , c +i−1}}. As a consequence of the BCH-bound, see for example [3], we have that the minimum distance of the code generated by gis greater than or equal to n−Amp(I)+1. Hence, we see that both the dimension and minimum distance depend on I, and since Cis uniquely determined by I, we will use the notation C(I)to describe the cyclic code generated by g= (xn−1)/(Qi∈I(x−βi)). To summarize, we have that C(I)is a cyclic linear code with parameters [n, |I|,≥n−Amp(I) + 1]q.(7) The dual of a cyclic code is also a cyclic code. In fact, C(I)⊥=C(−J), where −J= {−jmod n|j∈J}. Clearly Amp(−J) = Amp(J)which shows that C(I)⊥is a cyclic linear code with parameters [n, |J|,≥n−Amp(J) + 1]q.(8) 8 Furthermore, we remark that Amp(J) = n−max{s| {i, i+1, . . . , i+s−1} ⊆ Ifor some i}, i.e nminus the size of the largest set of consecutive elements in I. We conclude that the minimum distance of C(I)⊥is strictly larger than the size of any set of consecutive elements in I. We consider cyclic codes for the (u, u +v)-construction, and therefore we will need the following proposition. Proposition 4.3: Let I1and I2be unions of q-cyclotomic cosets, and let C(I1)and C(I2) be the corresponding cyclic codes. Then C(I1) + C(I2) = C(I1∪I2) C(I1)∗C(I2) = C(I1+I2), where I1+I2={a+bmod n|a∈I1, b ∈I2}. We obtain this result by describing the cyclic codes as a subfield subcode of an evaluation code and generalizing Theorem 3.3 in [3]. The proof of this proposition is very similar to the one in [3] and can be found in Appendix A. The proposition implies the following corollary. Corollary 4.4: Let I1and I2be unions of q-cyclotomic cosets, and let C(I1)and C(I2)be the corresponding cyclic codes. Then C(I1)∗C(I2)is an [n, |I1+I2|,≥n−Amp(I1+I2) + 1]q cyclic code. Now, let C(I1)and C(I2)be two cyclic codes over Fqof length n, and let C= [C(I1), C(I2)] 1 1 0 1.(9) Then Cis a [2n, |I1|+|I2|,≥min{2(n−Amp(I1) + 1), n −Amp(I2)+1}]q linear code. This is in fact a quasi-cyclic code of index 2, see for instance [16, 18]. By combining Corollary 3.2 with Proposition 4.3, we obtain that C∗2= [C(I1+I1), C(I2+ (I1∪I2))] 1 1 0 1.(10) And from Propositions 2.2 and 2.3, and Corollary 4.4, we obtain that dim(C∗2) = |I1+I1|+|I2+ (I1∪I2)|, and d(C∗2)≥min{2(n−Amp(I1+I1) + 1), n −Amp(I2+ (I1∪I2)) + 1)}.(11) Therefore, it is of interest to find I1and I2such that the cardinalities of these sets are relatively large, implying a large dimension of C, while at the same time Amp(I1+I1)and Amp(I2+ (I1∪I2)) are relatively small, implying a large minimum distance on the square. 9 A Products and Sums of Cyclic Codes It is possible to describe a cyclic code as a subfield subcode of an evaluation code. For a set M⊆ {1, . . . , n −1}and the extension field F=Fq(β)denote by P(M) = (X i∈M aiXi|ai∈F). Furthermore, let evβ(f)=(f(1), f(β), . . . , f(βn−1)) and define B(M) = {evβ(f)|f∈ P(M)} ⊆ Fn. This is a linear code over F. We can obtain a linear code over Fqby taking the subfield subcode B(M)∩Fn q. Letting M=−I={−imod n|i∈I}, we obtain the cyclic code with generating set I, i.e. C(I) = B(−I)∩Fn q, see for instance Lemma 2.22 in [3]. We generalize Theorem 3.3 in [3], stating that C(I)∗2= C(I+I), to C(I1)∗C(I2) = C(I1+I2)below. The proofs are almost identical to the ones in [3]. Lemma A.1: Let I1and I2be cyclotomic cosets. Then B(−I1)∗ B(−I2) = B(−(I1+I2)), where I1+I2={a+bmod n|a∈I1, b ∈I2}. Proof: We start by proving the inclusion B(−I1)∗B(−I2)⊆ B(−(I1+I2)). Let v∈ B(−I1)∗B(−I2). Then for f1∈ P(−I1)and f2∈ P(−I2), we have v= evβ(f1)∗evβ(f2) = evβ(f1f2). Since f1f2∈ P(−(I1+I2)) the inclusion follows. For the other inclusion, let w∈ B(−(I1+I2)). Then for f=Pi∈−(I1+I2)aiXi∈ P(−(I1+I2)), where ai∈F, we have w= evβ(f) = X i∈−(I1+I2) aievβ(Xi). Since i∈ −(I1+I2), there exists j∈ −I1and k∈ −I2, such that Xi=XjXk, and therefore evβ(Xi) = evβ(Xj)∗evβ(Xk). Hence, wis an F-linear combination of elements in B(−I1)∗ B(−I2)showing that w∈ B(−I1)∗ B(−I2). With this lemma, we are able to proof Proposition 4.3. Proposition 4.3: Let I1and I2be unions of q-cyclotomic cosets, and let C(I1)and C(I2) be the corresponding cyclic codes. Then C(I1) + C(I2) = C(I1∪I2), C(I1)∗C(I2) = C(I1+I2). where I1+I2={a+bmod n|a∈I1, b ∈I2}. 16 Proof: Let ˜ Cbe the smallest linear code containing C(I1)and C(I2). Every codeword c∈˜ Cmust be of the form a1c2+a2c2, where a1, a2∈Fqand ci∈C(Ii). Now, let Tbe the function that do a cyclic shift. Then T(c) = T(a1c1+a2c2) = a1T(c1) + a2T(c2), and since T(ci)∈C(Ii), we also have c∈˜ C. Therefore, ˜ Cis cyclic. For C(Ii)to be included in the cyclic code ˜ Cthe generating polynomial gfor ˜ Cmust divide gi, the generating polynomial for C(Ii). The smallest code, which means the polynomial with highest degree, satisfying this is g= gcd(g1, g2). This implies that ˜ C=C(I1∪I2). To show the second equality, we start by noticing that B(−Ii) = C(Ii)F, i.e. extending the code C(Ii)to scalars over Fgives back B(−Ii). This is shown in [3]. Additionally, we use Lemma 2.23(iii) in [26] implying that C(I1)F∗C(I2)F= (C(I1)∗C(I2))F. Putting these two statements together we obtain C(I1)∗C(I2) = (C(I1)∗C(I2))F∩Fn q= (C(I1)F∗C(I2)F)∩Fn q = (B(−I1)∗ B(−I2)) ∩Fn q=B(−(I1+I2)) ∩Fn q =C(I1+I2), where we have used Lemma A.1 in the second to last step. 17 References [1] Michael Ben-Or, Shafi Goldwasser and Avi Wigderson. “Completeness Theorems for Non-cryptographic Fault-tolerant Distributed Computation”. In: Proceedings of the Twentieth Annual ACM Symposium on Theory of Computing. STOC ’88. ACM, 1988, pp. 1–10. doi:10.1145/62212.62213. [2] Tim Blackmore and Graham H. Norton. “Matrix-Product Codes over Fq”. In: Applicable Algebra in Engineering, Communication and Computing 12.6 (Dec. 2001), pp. 477–500. doi:10.1007/PL00004226. [3] Ignacio Cascudo. “On Squares of Cyclic Codes”. In: IEEE Transactions on Information Theory 65.2 (Feb. 2019), pp. 1034–1047. doi:10.1109/TIT.2018.2867873. [4] Ignacio Cascudo, Ronald Cramer, Diego Mirandola and Gilles Zémor. “Squares of Random Linear Codes”. In: IEEE Transactions on Information Theory 61 (Mar. 2015), pp. 1159 –1173. doi:10.1109/TIT.2015.2393251. [5] Ignacio Cascudo, Ivan Damgård, Bernardo Machado David, Nico Döttling, Rafael Dowsley and Irene Giacomelli. “Efficient UC Commitment Extension with Homomorphism for Free (and Applications)”. In: IACR Cryptology ePrint Archive 2018 (2018), p. 983. [6] David Chaum, Claude Crépeau and Ivan Damgård. “Multiparty Unconditionally Secure Protocols”. In: Proceedings of the Twentieth Annual ACM Symposium on Theory of Computing. STOC ’88. ACM, 1988, pp. 11–19. doi:10.1145/62212.62214. [7] Alain Couvreur, Irene Márquez-Corbella and Ruud Pellikaan. “Cryptanalysis of McE- liece Cryptosystem Based on Algebraic Geometry Codes and Their Subcodes”. In: IEEE Transactions on Information Theory 63.8 (2017), pp. 5404–5418. doi:10.1109/ TIT.2017.2712636. [8] Alain Couvreur, Ayoub Otmani and Jean-Pierre Tillich. “Polynomial Time Attack on Wild McEliece Over Quadratic Extensions”. In: IEEE Transactions on Information Theory 63.1 (Jan. 2017), pp. 404–427. doi:10.1109/TIT.2016.2574841. [9] Ronald Cramer, Ivan Damgård and Ueli Maurer. “General Secure Multi-party Computation from any Linear Secret-Sharing Scheme”. In: Advances in Cryptology — EUROCRYPT 2000. Springer Berlin Heidelberg, 2000, pp. 316–334. isbn: 978-3-540-45539-4. [10] Ronald Cramer, Ivan Bjerre Damgård and Jesper Buus Nielsen. Secure Multiparty Computation and Secret Sharing. Cambridge University Press, 2015. isbn: 978-1-107- 04305-3. [11] Ivan Damgård, Jesper Buus Nielsen, Michael Nielsen and Samuel Ranellucci. “The TinyTable Protocol for 2-Party Secure Computation, or: Gate-Scrambling Revisited”. In: Advances in Cryptology – CRYPTO 2017. Cham: Springer International Publishing, 2017, pp. 167–187. isbn: 978-3-319-63688-7. [12] Ivan Damgård and Sarah Zakarias. “Constant-Overhead Secure Computation of Boolean Circuits using Preprocessing”. In: Berlin, Heidelberg: Springer, 2013, pp. 621–641. isbn: 978-3-642-36594-2. [13] Iwan M. Duursma and Ralf Kötter. “Error-locating pairs for cyclic codes”. In: IEEE Transactions on Information Theory 40 (Aug. 1994), pp. 1108 –1121. doi:10.1109/ 18.335964. 18 [14] Tore K. Frederiksen, Benny Pinkas and Avishay Yanai. “Committed MPC”. In: Public- Key Cryptography – PKC 2018. Springer International Publishing, 2018, pp. 587–619. isbn: 978-3-319-76578-5. [15] Ragnar Freij-Hollanti, Oliver W. Gnilke, Camilla Hollanti and David A. Karpuk. “Private Information Retrieval from Coded Databases with Colluding Servers”. In: SIAM Journal on Applied Algebra and Geometry 1.1 (2017), pp. 647–664. doi:10. 1137/16M1102562. [16] Fernando Hernando, Kristine Lally and Diego Ruano. “Construction and decoding of matrix-product codes from nested codes”. In: Applicable Algebra in Engineering, Communication and Computing 20.5 (Oct. 2009), pp. 497–507. doi:10.1007/s00200- 009-0113-5. [17] Fernando Hernando and Diego Ruano. “New linear codes from matrix-product codes with polynomial units”. In: Advances in Mathematics of Communications 4 (2009), p. 363. doi:10.3934/amc.2010.4.363. [18] Kristine Lally and Patrick Fitzpatrick. “Algebraic structure of quasicyclic codes”. In: Discrete Applied Mathematics 111.1 (2001). Coding and Cryptology, pp. 157 –175. doi:https://doi.org/10.1016/S0166-218X(00)00350-4. [19] Lorenz Minder and Amin Shokrollahi. “Cryptanalysis of the Sidelnikov Cryptosystem”. In: Advances in Cryptology - EUROCRYPT 2007. Springer Berlin Heidelberg, 2007, pp. 347–360. isbn: 978-3-540-72540-4. [20] Diego Mirandola and Gilles Zémor. “Critical Pairs for the Product Singleton Bound”. In: IEEE Transactions on Information Theory 61 (June 2015), pp. 4928 –4937. doi: 10.1109/TIT.2015.2450207. [21] Ferruh Özbudak and Henning Stichtenoth. “Note on Niederreiter-Xing’s Propagation Rule for Linear Codes”. In: Applicable Algebra in Engineering, Communication and Computing 13.1 (Apr. 2002), pp. 53–56. doi:10.1007/s002000100091. [22] Ruud Pellikaan. “On decoding by error location and dependent sets of error positions”. In: Discrete Mathematics 106-107 (1992), pp. 369 –381. doi:https://doi.org/10. 1016/0012-365X(92)90567-Y. [23] Ruud Pellikaan and Irene Márquez-Corbella. “Error-correcting pairs for a public-key cryptosystem”. In: Journal of Physics: Conference Series 855 (June 2017). doi:10. 1088/1742-6596/855/1/012032. [24] Hugues Randriambololona. “An Upper Bound of Singleton Type for Componentwise Products of Linear Codes”. In: IEEE Transactions on Information Theory 59 (Sept. 2013), pp. 7936 –7939. doi:10.1109/TIT.2013.2281145. [25] Hugues Randriambololona. “Asymptotically Good Binary Linear Codes With Asymptotically Good Self-Intersection Spans”. In: IEEE Transactions on Information Theory 59 (May 2013), pp. 3038 –3045. doi:10.1109/TIT.2013.2237944. [26] Hugues Randriambololona. “On products and powers of linear codes under componentwise multiplication”. In: Contemporary Math. 637 (Apr. 2015). [27] Christian Wieschebrink. “Cryptanalysis of the Niederreiter Public Key Scheme Based on GRS Subcodes”. In: Post-Quantum Cryptography. Springer Berlin Heidelberg, 2010, pp. 61–72. isbn: 978-3-642-12929-2. 19 [28] Kyeongcheol Yang and P. Vijay Kumar. “On the true minimum distance of Hermitian codes”. In: Coding Theory and Algebraic Geometry. Springer Berlin Heidelberg, 1992, pp. 99–107. isbn: 978-3-540-47267-4. 20