## Secret Sharing for Secure and Private Information Retrieval: A Construction Using Algebraic Geometry Codes

Okko Makkonen, David A. Karpuk, Camilla Hollanti Department of Mathematics and Systems Analysis Aalto University, Finland

## Abstract

Private information retrieval (PIR) considers the problem of retrieving a data item from a database or distributed storage system without disclosing any information about which data item was retrieved. Secure PIR complements this problem by further requiring the contents of the data to be kept secure. Privacy and security can be achieved by adding suitable noise to the queries and data using methods from secret sharing. In this paper, a new framework for homomorphic secret sharing in secure and private information retrieval from colluding servers is proposed, generalizing the original cross-subspace alignment (CSA) codes proposed by Jia, Sun, and Jafar. We utilize this framework to give a secure PIR construction using algebraic geometry codes over hyperelliptic curves of arbitrary genus. It is shown that the proposed scheme offers interesting tradeoffs between the field size, file size, number of colluding servers, and the total number of servers. When the field size is fixed, this translates in some cases to higher retrieval rates than those of the original scheme. In addition, the new schemes exist also for some parameters where the original ones do not.

## I. INTRODUCTION

Private Information Retrieval (PIR) [2] studies the problem of retrieving a file from a database or distributed storage system without disclosing any information on the identity of the retrieved item. The basic variant of the problem considers public files, though security can be added to protect the contents of the files in addition to protecting user privacy. Scheme constructions for various scenarios with related capacity results can be found in the literature, e.g., [3]-[10], including some quantum extensions [11], [12].

Cross-Subspace Alignment (CSA) codes have been recently proposed as a means to construct secure and private information retrieval schemes [13], [14]. The necessary noise introduced to mask files and queries inevitably leads to the presence of interference in the decoding process. CSA codes, as well as many other codes designed for various

This work was done in part while O. Makkonen and C. Hollanti were visiting the Simons Institute for the Theory of Computing at the University of California, Berkeley. Preliminary results were presented at the 2024 IEEE International Symposium on Information Theory [1]. This work has been supported by the Research Council of Finland under Grant No. 336005. The first author's work has been supported by the Vilho, Yrj¨ o and Kalle V¨ ais¨l¨ a a Foundation of the Finnish Academy of Science and Letters. Emails: okko.makkonen@aalto.fi, davekarpuk@gmail.com, camilla.hollanti@aalto.fi.

PIR problems, decompose the ambient space into a direct sum of an 'information space' and a 'noise space', and the goal of the scheme construction is mitigate the interference by minimizing the dimension of the latter under the constraint that the desired information is decodable.

In this work, we reinterpret the original CSA codes from [13] as evaluation codes over the projective line, utilizing the framework of homomorphic secret sharing. In addition to a more conceptual construction, the resulting algebraic-geometric interpretation admits generalization to higher-genus curves. We focus on Algebraic Geometry (AG) codes on hyperelliptic curves of arbitrary genus, and showcase their potential in attaining PIR rates higher than the original CSA codes for a fixed field size by allowing a small increase in the number of servers and subpacketization. This improvement stems from the fact that increasing the genus yields curves with more rational points, which allows for longer code constructions. This allows for interesting tradeoffs between the field size, subpacketization, number of colluding servers, and the number of servers in total. Lowering the field size is of particular interest in applications where the communication bandwidth, computational capability or memory capacity of the storage nodes is limited, as is widely recognized in the literature evolving around codes for distributed data storage [15], [16]. Furthermore, some applications may operate on a very large number of storage nodes, and hence requiring the field size to grow with the number of nodes can become a limiting factor.

Let us also note that while this paper concentrates on the application of CSA codes to PIR, the AG framework is much more general and can be extended to cover several further instances of interference alignment in distributed systems. Namely, CSA codes have also been used as a means to construct Secure Distributed Matrix Multiplication (SDMM) schemes over classical and quantum channels [17]-[20] and for secure multi-party computation [17]. For some previous works on SDMM utilizing AG codes, we refer to [21], [22]. The framework introduced in the current paper should also serve as an invitation to revisit the star product PIR scheme [6] and all of its subsequent derivatives, when the schemes are instantiated using algebraic geometry (AG) codes. With the exception of the preprint [23], wherein the author observes that the framework of [6] is suitable for AG codes, the current authors know of no previous attempt at using AG codes for PIR, excluding the base case of Reed-Solomon codes.

The rest of the paper is organized as follows. In Section II, the necessary mathematical background is outlined. Section III explains the framework of homomorphic secret sharing underlying any PIR scheme. Basics in PIR are given in Section IV. Sections V and VI contain the detailed scheme constructions over the projective line and hyperelliptic curves, respectively. Section VII provides comparison of our construction to the CSA construction in [13] and summarizes the work and provides directions for future research.

## II. PRELIMINARIES

In this section, we provide the background in coding theory and algebraic geometry relevant to our scheme constructions in Sections V and VI. The current work is meant to appeal to algebraic geometers who might be interested in new applications, as well as information or coding theorists unfamiliar to techniques from algebraic geometry. As such, we provide the necessary background from both fields.

## A. Divisors and the Riemann-Roch Theorem

We assume basic familiarity with the theory of algebraic curves, divisors, and Riemann-Roch spaces, but review crucial details in this subsection. We let F q denote the finite field with q elements. By a curve over F q we will always mean a smooth, projective, geometrically connected algebraic curve.

Let X be a curve over F q with function field F q ( X ) . Recall that a divisor on X is a formal sum D = ∑ P ∈X n P P where all but finitely many n P = 0 . For a nonzero rational function f ∈ F q ( X ) ∗ and a point P ∈ X we define v P ( f ) ∈ Z to be the order of vanishing of f at P . The divisor ( f ) = ∑ P ∈X v P ( f ) P of any nonzero f ∈ F q ( X ) ∗ can be written as

$$( f ) = ( f ) _ { 0 } - ( f ) _ { \infty }, \ \text{ where } \ ( f ) _ { 0 } = \sum _ { P, v _ { P } ( f ) > 0 } v _ { P } ( f ) P \ \text{ and } \ ( f ) _ { \infty } = \sum _ { P, v _ { P } ( f ) < 0 } - v _ { P } ( f ) P$$

are the zero divisor and pole divisor of f , respectively. Moreover, we have deg(( f )) = 0 . Divisors of functions are also known as principal divisors.

If D is any divisor on X , we can define the associated Riemann-Roch space

$$\mathcal { L } ( D ) = \{ f \in \mathbb { F } _ { q } ( \mathcal { X } ) \ | \ ( f ) + D \geq 0 \} \cup \{ 0 \}.$$

This is a finite-dimensional vector space over F q , whose dimension is denoted by ℓ D ( ) . If L ( D ) and L ( D ′ ) are two such spaces, we can define their product to be

$$\mathcal { L } ( D ) \cdot \mathcal { L } ( D ^ { \prime } ) = \text{span} _ { \mathbb { F } _ { q } } \{ f \cdot g \ | \ f \in \mathcal { L } ( D ), g \in \mathcal { L } ( D ^ { \prime } ) \}.$$

We define the maximum of two divisors D = ∑ P ∈X n P P and D ′ = ∑ P ∈X n ′ P P to be the divisor max { D,D ′ } = ∑ P ∈X max { n P , n ′ P } P .

In the following theorem we collect all of the standard results about divisors that we require in the sequel.

Theorem II.1. Let X be a curve of genus g over F q , and let D,D ′ be divisors on X .

- 1) If D is a divisor with deg( D &lt; ) 0 , then ℓ D ( ) = 0 .
- 2) If D ≤ D ′ , then L ( D ) ⊆ L ( D ′ ) . It follows that L ( D ) + L ( D ′ ) ⊆ L (max { D,D ′ } ) .

↦

- 4) [24, Theorem 8] We have L ( D ) · L ( D ′ ) ⊆ L ( D + D ′ ) with equality if deg( D ) ≥ 2 g and deg( D ′ ) ≥ 2 g +1 .
- 3) If D ′ = D +( ) h then we have an isomorphism of vector spaces L ( D ′ ) →L ( D ) given by f → fh . In particular, if D = -( h ) then L ( D ) = span { h } .
- 5) (Riemann-Roch Theorem) If deg( D &gt; ) 2 g -2 then ℓ D ( ) = deg( D ) -g +1 .

With the exception of 4) and 5), the above facts are all straightforward to verify from the definitions. The last point is of course only a consequence of the full Riemann-Roch Theorem, but it is all we require.

## B. Hyperelliptic Curves

Here we review the required basics on hyperelliptic curves. We largely follow [25, Chapter 13] and refer to this text for proofs of the results presented below. By a hyperelliptic curve over F q we shall mean a curve X over F q with affine equation

$$y ^ { 2 } + H ( x ) y = F ( x )$$

̸

where F is monic of deg( F ) = 2 g +1 and deg( H ) ≤ g , for some g ≥ 1 . It can be shown that X has a single point P ∞ = [0 : 1 : 0] at infinity. In case char( F q ) = 2 one may assume H = 0 . Under these conditions, one can show that the genus of X is equal to g . More general models of hyperelliptic curves are possible [26, Chapter 10], but the above suffices for our purposes. When g = 1 , we call a hyperelliptic curve an elliptic curve .

̸

Now fix a hyperelliptic curve X of genus g over F q where char( F q ) = 2 , and consider the divisor ( k + g -1) P ∞ for some k &gt; g -1 . By the Riemann-Roch theorem, we have ℓ (( k + g -1) P ∞ ) = k . A basis for the Riemann-Roch space is given by

$$\mathcal { L } ( ( k + g - 1 ) P _ { \infty } ) & = \text{span} _ { \mathbb { F } _ { q } } \{ x ^ { i } y ^ { j } \ | \ 0 \leq i, 0 \leq j \leq 1, 2 i + ( 2 g + 1 ) j \leq k + g - 1 \} \\ & = \text{span} _ { \mathbb { F } _ { q } } \{ 1, x, \dots, x ^ { \lfloor ( k + g - 1 ) / 2 \rfloor }, y, y x, \dots, y x ^ { \lfloor ( k - g - 2 ) / 2 \rfloor } \}. \\. \. \. \. \. \. \. \. \.$$

In particular, if k ≡ g (mod 2) , then

$$\mathcal { L } ( ( k + g - 1 ) P _ { \infty } ) = \text{span} _ { \mathbb { F } _ { q } } \{ 1, x, \dots, x ^ { ( k + g - 2 ) / 2 }, y, y x, \dots, y x ^ { ( k - g - 2 ) / 2 } \}.$$

For a given genus g and field size q , the Hasse-Weil bound asserts that for any curve of genus g over F q , we have

$$| \mathcal { X } ( \mathbb { F } _ { q } ) | \leq q + 1 + 2 g \sqrt { q }$$

and a curve is maximal if it achieves this bound. Determining when maximal curves exist for various values of g and q is an active area of research; see e.g. [27]. On the other hand, given a hyperelliptic curve X , we can define the hyperelliptic involution ι : X → X by the affine formula

$$\iota ( x, y ) = ( x, - y - H ( x ) ).$$

The map φ : X → P 1 defined on affine patches by φ x, y ( ) = x is a degree two rational map with fibers { P, ι ( P ) } for P ∈ X . This gives the upper bound |X ( F q ) | ≤ 2 q +1 . We will be particularly interested in hyperelliptic curves with many rational points, but this upper bound shows that we cannot hope to increase the number of points without bound by simply increasing the genus.

## C. Coding Theory Preliminaries

An [ n, k, d ] (linear) code C is an F q -subspace of F n q with dimension k and minimum (Hamming) distance d . We will omit the d if unnecessary, and refer to C as an [ n, k ] code. If c ∈ C we will refer to c as a codeword , and write its i th coordinate as c i ( ) . More generally, if T ⊆ [ n ] is any subset of coordinates, we denote by c ( T ) the projection of a codeword c onto the coordinates in T , and similarly by C T ( ) the projection of the subspace C onto these coordinates. Any T ⊆ [ n ] of size k such that dim( C T ( )) = k is called an information set of C .

The Singleton bound asserts that d ≤ n -k +1 , and if this bound is achieved with equality we say that C is Maximum Distance Separable (MDS).

We denote by C ⊥ the dual code of C , that is,

$$\mathcal { C } ^ { \perp } = \{ v \in \mathbb { F } _ { q } ^ { n } \ | \ \langle c, v \rangle = 0 \text{ for all } c \in \mathcal { C } \},$$

where ⟨· , ·⟩ denotes the standard inner product on F n q . The code C ⊥ has length n and dimension n -k . We denote its minimum distance by d ⊥ ( C ) or simply d ⊥ , and refer to this quantity as the dual minimum distance of C .

## D. Generalized Reed-Solomon Codes and Star Products

Many PIR schemes are explicitly [6] or, as we will demonstrate, implicitly [13] based on Generalized ReedSolomon (GRS) codes and their star products . Let us briefly review the construction of such codes and their behavior with respect to the star product of two linear codes.

For any k &gt; 0 and any polynomial 0 = f ∈ F q [ x ] we define the F q -subspaces

̸

$$\mathbb { F } _ { q } [ x ] ^ { < k } \coloneqq \{ p \in \mathbb { F } _ { q } [ x ] \ | \deg ( p ) < k \} \ \text{ and } \ f \cdot \mathbb { F } _ { q } [ x ] ^ { < k } \coloneqq \{ f \cdot p \ | \ p \in \mathbb { F } _ { q } [ x ] ^ { < k } \}$$

of the polynomial ring F q [ x ] , each of which clearly has dimension k .

̸

To construct a GRS code of length n and dimension k ≤ n , we choose a vector α = ( α , . . . , α 1 n ) ∈ F n q of distinct evaluation points, and a polynomial f ∈ F q [ x ] such that f ( α i ) = 0 for all i . Let ν = ( f ( α 1 ) , . . . , f ( α n )) . We consider the evaluation map

$$\ e v _ { \alpha } \colon \mathbb { F } _ { q } [ x ] \to \mathbb { F } _ { q } ^ { n }, \ \ e v _ { \alpha } ( h ) = ( h ( \alpha _ { 1 } ), \dots, h ( \alpha _ { n } ) )$$

and define GRS ( k α, ν ) as the image of f · F q [ x ] &lt;k under this map. It is straightforward to verify that GRS ( k α, ν ) is an MDS code of length n and dimension k . If f is a nonzero constant polynomial, the resulting code is simply called a Reed-Solomon code and denoted by RS ( k α ) .

The star product of two linear codes C and D of length n over F q is defined to be

$$\mathcal { C } * \mathcal { D } \coloneqq \text{span} _ { \mathbb { F } _ { q } } \{ c * d \ | \ c \in \mathcal { C }, d \in \mathcal { D } \}$$

where c ⋆ d = ( (1) c d (1) , . . . , c ( n d n ) ( )) . Note that when we endow F n q with the star product, it becomes an F q -algebra in a natural way. Now if V and W are any finite-dimensional F q -subspaces of F q [ x ] , we can define V · W = span F q { f · g | f ∈ V, g ∈ W } . Letting C = ev α ( V ) and D = ev α ( W ) , we arrive at the identity

$$e v _ { \alpha } ( V \cdot W ) = \mathcal { C } * \mathcal { D }$$

which expresses the compatibility of the product of polynomials and the star product of their evaluation vectors.

When we choose V = f · F q [ x ] &lt;k and W = g · F q [ x ] &lt;ℓ , that is, let the above C and D be GRS codes, we have that V · W = fg · F q [ x ] &lt;k + ℓ -1 . Applying the map ev α to both sides of this equation yields the star product identity

$$\text{GRS} _ { k } ( \alpha, \nu ) \ast \text{GRS} _ { \ell } ( \alpha, \mu ) = \text{GRS} _ { \min \{ k + \ell - 1, n \} } ( \alpha, \nu \ast \mu )$$

where ν = ( f ( α 1 ) , . . . , f ( α n )) and µ = ( g α ( 1 ) , . . . , g ( α n )) .

## E. Algebraic Geometry Codes

One generalizes the construction of GRS codes to Algebraic Geometry codes, or simply AG codes, as follows. We provide [28] as a catch-all reference for this topic.

We fix a curve X over F q with genus g and rational function field F q ( X ) . Let S be a non-empty, finite subset of X and set U = X \ S , which is Zariski open. We let P = { P , . . . , P 1 n } ⊆ U be a set of F q -rational evaluation points on X . We consider the ring O X ( U ) ⊆ F q ( X ) of regular functions on U , and the evaluation map

$$\text{ev} _ { \mathcal { P } } \colon \mathcal { O } _ { \mathcal { X } } ( U ) \to \mathbb { F } _ { q } ^ { n }, \ \text{ev} _ { \mathcal { P } } ( h ) = ( h ( P _ { 1 } ), \dots, h ( P _ { n } ) ).$$

If D is a divisor on X such that supp( D ) ⊆ S , then we define the AG code C P ( , D ) to be the image of L ( D ) under this map.

Assuming that n &gt; deg( D ) , then C P ( , D ) is an [ n, k, d ] code with k = ℓ D ( ) and d ≥ n -deg( D ) . By Theorem II.1, if deg( D &gt; ) 2 g -2 , then ℓ D ( ) = deg( D ) -g +1 , so combining with the Singleton bound we get

$$n - k + 1 - g \leq d \leq n - k + 1.$$

Using the well-known fact that the dual of an AG code is again an AG code, one can derive the following bound on the dual minimum distance d ⊥ of such a code:

$$k + 1 - g \leq d ^ { \perp } \leq k + 1$$

From (1) one sees that AG codes on curves with genus g = 0 are MDS codes. More precisely, we have the following example.

̸

Example II.2 . Let X = P 1 and let P ∞ = [0 : 1] be the point at infinity. Consider a divisor D with deg( D ) ≥ 0 and let k = deg( D ) + 1 . Since every degree zero divisor on P 1 is principal, we may write D = ( k -1) P ∞ -( h ) for some function h ∈ F q ( x ) ∗ . Letting P i = [ α i : 1] ∈ P 1 , setting ν i = h α ( i ) and assuming ν i = 0 , one has C P ( , D ) = GRS ( k α, ν ) . This means that the AG codes over the projective line are exactly the GRS codes. In particular, if D = 0 , then C P ( , D ) = Rep( n ) , the length n repetition code.

If V and W are finite-dimensional F q -subspaces of O X ( U ) then we can define V · W = span F q { f · g | f ∈ V, g ∈ W } ⊆ O X ( U ) . Setting V = L ( D ) and W = L ( D ′ ) for some divisors D and D ′ whose supports are both contained in S , we have

$$\mathcal { L } ( D ) \cdot \mathcal { L } ( D ^ { \prime } ) \subseteq \mathcal { L } ( D + D ^ { \prime } ) \subseteq \mathcal { O } _ { \mathcal { X } } ( U )$$

with equality in the first containment if deg( D ) ≥ 2 g and deg( D ′ ) ≥ 2 g +1 by Theorem II.1. Applying the map ev P to both sides of the first containment we arrive at the identity

$$\mathcal { C } ( \mathcal { P }, D ) \ast \mathcal { C } ( \mathcal { P }, D ^ { \prime } ) \subseteq \mathcal { C } ( \mathcal { P }, D + D ^ { \prime } )$$

where we again have equality under the previously mentioned assumptions.

## III. SECRET SHARING

An encryption scheme turns a message m into a ciphertext c using a random transformation. We say an encryption scheme has perfect security if the distribution of the ciphertext does not depend on the message m . One way to achieve perfect security is by using a one-time pad . In particular, let G be a finite additive group and let m ∈ G be a message. Choose r ∈ G uniformly at random and set c = m + r . It is easy to verify that c is uniformly distributed and independent of m for all m , so the one-time pad has perfect security.

Secret sharing is a way of distributing a secret value to N parties such that only some admissible sets of parties are able to recover the secret, while some forbidden sets of parties will not be able to deduce anything about the secret. The security in secret sharing is often based on the one-time pad, which provides perfect security against any forbidden subset of the parties. One can view such a secret sharing scheme as a collection of 'local' one-time pads,

where the noise one adds is not uniform on the ambient space, but appears uniform when we restrict our attention to any forbidden subset.

## A. Linear Secret Sharing

One way to construct secret sharing schemes from linear codes is given as follows. We begin by choosing two linear codes C C , noise ⊆ F N q . The secret value is encoded as a codeword c ∈ C and the secret share ̂ c is chosen uniformly at random from c + C noise . Each party n ∈ [ N ] is then given the coordinate ̂ c n ( ) . The secret value should be uniquely decodable from all the shares ̂ c , so we require that C ∩ C noise = 0 , which makes the sum ̂ C = C + C noise direct. The pair of codes ( C C , noise ) that satisfies C ∩ C noise = 0 is said to be a linear secret sharing scheme , or LSSS, over the field F q . We say that a scheme ( C C , noise ) is T -secure , if the distribution of any subset of T shares does not depend on the secret, i.e., provides perfect security for the secret. For a general reference on LSSS's see [29, Section 4.2].

A set of T compromised parties T ⊆ [ N ] will observe the projection ̂ c ( T ) ∈ c ( T ) + C noise ( T ) . If d ⊥ ( C noise ) &gt; T , then any T columns of the generator matrix of C noise will be linearly independent, so C noise ( T ) = F T q . Therefore, ̂ c ( T ) ∈ c ( T ) + F T q is uniformly distributed, which means that the compromised parties will observe c ( T ) one-time padded with uniform noise. We formulate this as the following standard result about LSSS's.

$$\text{Proposition III.1. } A n \text{ LSSS } ( \mathcal { C }, \mathcal { C } ^ { \text{noise} } ) \text{ is } T _ { \ast } s e c u r e \text{ for } T = d ^ { \perp } ( \mathcal { C } ^ { \text{noise} } ) - 1.$$

Example III.2 (Shamir secret sharing) . Secret sharing was first introduced by Shamir in 1979 [30]. This construction fits in the linear secret sharing framework described above as the codes C and C noise are chosen to be GRS codes. In particular, we choose the polynomial ̂ f ∈ f + x · F q [ x ] &lt;T uniformly at random, where f ∈ F q is the secret. The shares are chosen as ̂ c n ( ) = ̂ f ( α n ) , where α , . . . , α 1 N are distinct elements in F q . This corresponds to the codes

$$\mathcal { C } = e v _ { \alpha } ( \mathbb { F } _ { q } ) = R S _ { 1 } ( \alpha ) \ \text{ and } \ \mathcal { C } ^ { \text{noise} } = e v _ { \alpha } ( x \cdot \mathbb { F } _ { q } [ x ] ^ { < T } ) = \text{GRS} _ { T } ( \alpha, \alpha ),$$

̸

where F q ⊆ F q [ x ] is identified with the constant polynomials. As long as α n = 0 for all n ∈ [ N ] , we have that d ⊥ ( C noise ) = T +1 &gt; T . Instead of codes and codewords, we will often work with function spaces and functions with the assumption that we have an evaluation map that can turn these into codewords in some suitable code.

Example III.3 (Chen-Cramer secret sharing) . Let X be a curve over F q of genus g . The Chen-Cramer secret sharing scheme of [31] generalizes the Shamir scheme as follows. Let P ∞ be a fixed rational point of X and consider the divisor ( T +2 g -1) P ∞ for some security parameter T &gt; 0 , let h ∈ F q ( X ) ∗ be nonconstant and have zero divisor disjoint from P ∞ , and choose a set P = { P , . . . , P 1 N } ⊆ X ( F q ) of evaluation points avoiding P ∞ and ( h ) . Suppose we have a secret f ∈ F q . Choose a rational function ̂ f ∈ f + h · L (( T +2 g -1) P ∞ ) uniformly at random. The shares are now chosen to be ̂ c n ( ) = ̂ f ( P n ) . This corresponds to the codes

$$\mathcal { C } = \text{ev} _ { \mathcal { P } } ( \mathbb { F } _ { q } ) \text{ \ and \ } \mathcal { C } ^ { \text{noise} } = \mathcal { C } ( \mathcal { P }, ( T + 2 g - 1 ) P _ { \infty } - ( h ) ).$$

Clearly any function in h · L (( T +2 g -1) P ∞ ) has zeros at the zeros of h , hence the two codes intersect trivially. Assuming that N &gt; T +2 g -1 so that dim( C noise ) = T + g , the LSSS ( C C , noise ) is T -secure.

For example, consider the (maximal) hyperelliptic curve X of genus g = 2 defined over F 13 by the affine equation

$$y ^ { 2 } = x ^ { 5 } + x ^ { 4 } + 4 x ^ { 2 } + 2 x + 1$$

which has a single point P ∞ at infinity and |X ( F 13 ) | -1 = 25 non-infinite rational points. This curve was obtained from the tables at [32]. Set h = y , which has a single rational zero at Q = (5 0) , . Let P = X ( F 13 ) \ { P ∞ , Q } . Setting the security parameter to be T = 4 , we have

$$\mathcal { L } ( ( T + 2 g - 1 ) P _ { \infty } ) = \mathcal { L } ( 7 P _ { \infty } ) = \text{span} _ { \mathbb { F } _ { 1 3 } } \{ 1, x, x ^ { 2 }, x ^ { 3 }, y, x y \}.$$

The code C noise = C P ( , 7 P ∞ -( y )) has parameters [24 , 6 17] , and dual minimum distance d ⊥ ( C noise ) = T +1 = 5 , and therefore the LSSS ( C C , noise ) is 4 -secure. Note that defining the Shamir scheme for N = 24 parties and security parameter T ≥ 4 would require q ≥ 25 .

## B. Homomorphic Secret Sharing

Instead of just one secret value, assume that the parties hold the secret shares of L different secrets and we wish to decode a linear combination of the secrets. We could do this by downloading all of the shares individually and computing the linear combination of the secrets. However, doing this would come at a large bandwidth cost as we download L shares. Instead, we can download a linear combination of the shares and decode the linear combination of the secrets directly. If ̂ c ℓ ∈ c ℓ + C noise , then we receive

$$\sum _ { \ell \in [ L ] } \lambda _ { \ell } \widehat { c } _ { \ell } \in \sum _ { \ell \in [ L ] } \lambda _ { \ell } c _ { \ell } + \mathcal { C } ^ { \text{noise} },$$

for some coefficients λ , . . . , λ 1 L ∈ F q . This means that the result is a secret share of the linear combination in the secret sharing scheme ( C C , noise ) .

Instead of decoding a linear combination of the secrets, we may want to decode all of the secrets individually. Again, we could do this by downloading all of the shares individually and incurring a larger bandwidth cost. Instead, we download the sum of the shares from each party. If ̂ c ℓ ∈ c ℓ + C noise ℓ , then we observe

$$\sum _ { \ell \in [ L ] } \widehat { c } _ { \ell } \in \sum _ { \ell \in [ L ] } c _ { \ell } + \sum _ { \ell \in [ L ] } \mathcal { C } _ { \ell } ^ { \text{noise} },$$

where c ℓ ∈ C ℓ . In this case the individual secret sharing schemes ( C ℓ , C noise ℓ ) may consist of different linear codes. However, the sum is a secret share in the LSSS defined by the codes C = C 1 + · · · + C L and C noise = C noise 1 + · · · + C noise L . Then, ∑ ℓ c ℓ is decodable from the sum if and only if C ∩ C noise = 0 . Furthermore, the individual secret values c 1 , . . . , c L will be decodable from ∑ ℓ c ℓ if and only if the subspaces C 1 , . . . , C L are linearly independent, i.e., dim( ∑ ℓ C ℓ ) = ∑ ℓ dim( C ℓ ) .

Example III.4 . We continue with Example III.2. Let f , f 1 2 ∈ F q be two secrets that are secret shared using the polynomials ̂ f 1 ∈ f 1 + x · F q [ x ] &lt;T and ̂ f 2 ∈ f 2 + x · F q [ x ] &lt;T . Then their sum will be

$$\widehat { f } _ { 1 } + \widehat { f } _ { 2 } \in ( f _ { 1 } + f _ { 2 } ) + x \cdot \mathbb { F } _ { q } [ x ] ^ { < T }.$$

As f 1 + f 2 is the constant term, we can not decode both f 1 and f 2 , but only their sum. On the other hand, if we modify the secret shares to be ̂ f 1 ∈ f 1 + x 2 · F q [ x ] &lt;T and ̂ f 2 ∈ f 2 · x + x 2 · F q [ x ] &lt;T , then the sum is

$$\widehat { f } _ { 1 } + \widehat { f } _ { 2 } \in f _ { 1 } + f _ { 2 } x + x ^ { 2 } \cdot \mathbb { F } _ { q } [ x ] ^ { < T }.$$

Now, after passing to appropriate evaluation vectors, f 1 and f 2 can be decoded, since 1 and x are linearly independent.

Consider the case that the parties hold shares for two secrets and we want to obtain the product of these secret values. Decoding each secret individually is not practical, so we ask the parties to compute the product of their shares and return it. If the shares are ̂ c ∈ c + C noise and ̂ d ∈ d + D noise coming from LSSS's ( C C , noise ) and ( D D , noise ) , then the product will be

$$\widehat { c } * \widehat { d } \in c * d + \mathcal { C } * \mathcal { D } ^ { \text{noise} } + \mathcal { C } ^ { \text{noise} } * \mathcal { D } + \mathcal { C } ^ { \text{noise} } * \mathcal { D } ^ { \text{noise} }.$$

This is a secret share of c ⋆ d in the LSSS defined by

$$\mathcal { E } = \mathcal { C } * \mathcal { D } \text{ and } \mathcal { E } ^ { \text{noise} } = \mathcal { C } * \mathcal { D } ^ { \text{noise} } + \mathcal { C } ^ { \text{noise} } * \mathcal { D } + \mathcal { C } ^ { \text{noise} } * \mathcal { D } ^ { \text{noise} }.$$

Again, to be able to decode, we should have that these codes intersect trivially. To achieve this, the code E noise should not have a large dimension. However, the dimension of the star product of generic codes C noise , D noise ⊆ F N q will have dimension min { N, dim( C noise ) dim( D noise ) } , which means that we need to choose these codes in a clever manner.

## IV. SECURE AND PRIVATE INFORMATION RETRIEVAL

Consider a database consisting of M files s , . . . , s 1 M ∈ F L q , stored in a distributed fashion across N servers. We refer to a single coordinate of such a vector as a fragment of a file. These fragments could themselves be vectors over F q , but for our purposes there is no loss of generality in simply assuming the fragments are scalars s m,ℓ ∈ F q , for ℓ ∈ [ L ] and m ∈ [ M ] . In private information retrieval (PIR), we want to retrieve one of these files s µ = ( s µ, 1 , . . . , s µ,L ) without revealing the desired index µ ∈ [ M ] to the servers. We will retrieve the file by sending queries to the servers who combine them with their stored data and send back their responses . The precise nature of how the data is stored, how we query each server, and the method we use to recover the desired file from the responses, will soon be made precise.

To have data security , we require that the data stored at any X servers reveals nothing about the file contents. Similarly, to have query privacy , we require that the queries sent to any T servers reveal nothing about the desired file index. For a precise information-theoretic formulation of secure and private information retrieval, see [13].

For us, a PIR scheme is a set of pairs of linear secret sharing schemes ( C ℓ , C noise ℓ ) and ( D ℓ , D noise ℓ ) over F q for ℓ ∈ [ L ] , each with N parties. We will use the LSSSs ( C ℓ , C noise ℓ ) to secret share the file fragments with the N servers and the LSSSs ( D ℓ , D noise ℓ ) to secret share the queries. We say that a PIR scheme is X -secure if the LSSSs ( C ℓ , C noise ℓ ) are X -secure. Similarly, we say that a PIR scheme is T -private if the LSSSs ( D ℓ , D noise ℓ ) are T -secure. It is easy to verify that the conditions in [13] are satisfied by our definitions. The (download) rate of a PIR scheme is defined as the ratio of the amount of desired information (the file size) and the amount of information downloaded while retrieving the file, which in our case is R = L N .

For simplicity we assume that the codes C ℓ and D ℓ are one-dimensional and spanned by some vectors c ℓ and d ℓ , respectively. Realizing the file fragments s m,ℓ and the queries q m,ℓ as elements of F q , we then secret share these objects among the N servers according to

$$\widehat { s } _ { m, \ell } \in s _ { m, \ell } c _ { \ell } + \mathcal { C } _ { \ell } ^ { \text{noise} }, \ \widehat { q } _ { m, \ell } \in q _ { m, \ell } d _ { \ell } + \mathcal { D } _ { \ell } ^ { \text{noise} }.$$

The server indexed by n ∈ [ N ] stores ̂ s m,ℓ ( n ) for all ℓ ∈ [ L ] and m ∈ [ M ] . We query this server with ̂ q m,ℓ ( n ) and they respond with the inner product

$$r ( n ) = \sum _ { \ell \in [ L ] } \sum _ { m \in [ M ] } \widehat { s } _ { m, \ell } ( n ) \widehat { q } _ { m, \ell } ( n ).$$

Since we are free to pick the queries q m,ℓ as we like, we set q m,ℓ = δ m,µ , the Kronecker delta picking out the desired term in the sum. Thus we can write a desired file fragment s µ,ℓ as the linear combination

$$s _ { \mu, \ell } = \sum _ { m \in [ M ] } s _ { m, \ell } q _ { m, \ell }$$

which demonstrates that this indeed is a particular instance of homomorphic secret sharing. The total vector r = ( (1) r , . . . , r ( N )) we receive is given by

$$r = \sum _ { \ell \in [ L ] } \sum _ { m \in [ M ] } \widehat { s } _ { m, \ell } \ast \widehat { q } _ { m, \ell } \in \sum _ { \ell \in [ L ] } \left ( \sum _ { m \in [ M ] } s _ { m, \ell } q _ { m, \ell } \right ) e _ { \ell } + \mathcal { E } ^ { \text{noise} } = \sum _ { \ell \in [ L ] } s _ { \mu, \ell } e _ { \ell } + \mathcal { E } ^ { \text{noise} }$$

where e ℓ = c ℓ ⋆ d ℓ and the noise space E noise is defined to be

$$\mathcal { E } ^ { \text{noise} } = \sum _ { \ell \in [ L ] } \left ( \mathcal { C } _ { \ell } * \mathcal { D } _ { \ell } ^ { \text{noise} } + \mathcal { C } _ { \ell } ^ { \text{noise} } * \mathcal { D } _ { \ell } + \mathcal { C } _ { \ell } ^ { \text{noise} } * \mathcal { D } _ { \ell } ^ { \text{noise} } \right ).$$

From this expression we must be able to decode s µ,ℓ for all ℓ ∈ [ L ] to recover the desired file.

Now define the subspaces E ℓ = C ℓ ⋆ D ℓ = span { e ℓ } , whose sum E = ∑ ℓ E ℓ we refer to as the information space . To be able to decode the s µ,ℓ we require that E ∩ E noise = 0 and e ℓ are linearly independent, i.e., dim( E ) = L . If this condition holds, then we see that r is a secret share in the LSSS defined by ( E , E noise ) . We summarize the connection between homomorphic secret sharing schemes and X -secure T -private information retrieval in the following theorem.

Theorem IV.1. Let ( C ℓ , C noise ℓ ) and ( D ℓ , D noise ℓ ) for ℓ ∈ [ L ] be linear secret sharing schemes over F q with N parties such that dim( C ℓ ) = dim( D ℓ ) = 1 , E ∩ E noise = 0 , and dim( E ) = L , where E , E noise are defined as above. Then there exists a PIR scheme with rate R = L N which is X -secure for X = min ℓ d ⊥ ( C noise ℓ ) -1 and T -private for T = min ℓ d ⊥ ( D noise ℓ ) -1 .

The authors of [13] construct an X -secure T -private information retrieval scheme with rate R = 1 -X + T N and N = L + X + T servers over a field of size q ≥ N + L = 2 L + X + T . They also show that this rate is information-theoretically optimal as the number of files M approaches infinity.

We remark that the above-described scheme carries through if the queries q m,ℓ are any constants whatsoever. In other words, the above construction generalizes in a straightforward way to compute any L linear functions of a database while achieving the same rate.

Let us conclude this subsection by making a connection with PIR schemes for coded distributed storage systems [5], wherein data is divided into blocks and then distributed among N servers using a storage code . One could rephrase the coding done in the above construction to guarantee X -security as employing such a storage code, but then applying the methods for PIR for coded systems as in [5], [6] results in one effectively decoding vectors of length X +1 to obtain a single scalar. The net effect is the presence of an undesirable multiplicative factor of 1 X +1 in the rate. This strategy was employed in [33], but clearly the scheme of [13], which does not suffer this defect, achieves superior performance.

## V. CONSTRUCTION USING THE PROJECTIVE LINE

In this section we reconstruct the CSA codes of [13] as Algebraic Geometry codes on the projective line P 1 , i.e., GRS codes. As a first step we demonstrate the construction solely in terms of polynomials (i.e. regular functions on an affine patch of P 1 ), and then interpret the construction geometrically. This geometric interpretation allows us to generalize these codes to higher genus curves. In general, scheme constructions are often streamlined by working directly with polynomials and rational functions instead of the evaluation vectors they define.

The general framework of the previous two sections is well-suited for evaluation codes. In particular, we realize C ℓ , C noise ℓ , D ℓ , D noise ℓ as GRS codes. The dictionary between GRS codes and F q -subspaces of the form h · F q [ x ] &lt;K , and therefore between codewords and polynomials, allows us to describe pairs of linear secret sharing schemes ( C ℓ , C noise ℓ ) and ( D ℓ , D noise ℓ ) for ℓ ∈ [ L ] which satisfy the hypotheses of Theorem IV.1 solely in terms of polynomials.

## A. Construction by Polynomials

Let h be a polynomial of degree L . Then

$$\mathbb { F } _ { q } [ x ] ^ { < L } \oplus h \cdot \mathbb { F } _ { q } [ x ] = \mathbb { F } _ { q } [ x ]$$

due to the polynomial division algorithm in F q [ x ] . We want to utilize this direct sum decomposition in our construction. More specifically, for some N &gt; L , we truncate the above direct sum decomposition to get

$$\mathbb { F } _ { q } [ x ] ^ { < L } \oplus h \cdot \mathbb { F } _ { q } [ x ] ^ { < N - L } = \mathbb { F } _ { q } [ x ] ^ { < N }$$

and the two summands on the left-hand side will play the role of E and E noise , respectively. Our goal now is to use GRS codes to construct appropriate secret sharing schemes ( C ℓ , C noise ℓ ) and ( D ℓ , D noise ℓ ) so that the resulting pair ( E , E noise ) as described previously section is as desired.

Let f , g ℓ ℓ ∈ F q be scalars whose product we want to compute. Similar to Example III.4 we choose the secret shares to be

$$\widehat { f } _ { \ell } \in f _ { \ell } + f _ { \ell } ^ { \text{noise} } \cdot \mathbb { F } _ { q } [ x ] ^ { < X }, \quad \widehat { g } _ { \ell } \in g _ { \ell } h _ { \ell } + g _ { \ell } ^ { \text{noise} } \cdot \mathbb { F } _ { q } [ x ] ^ { < T },$$

where h ℓ , f noise ℓ and g noise ℓ are suitably chosen polynomials. The sum of the products of the secret shares is then

$$\sum _ { \ell \in [ L ] } \widehat { f } _ { \ell } \widehat { g } _ { \ell } \in \sum _ { \ell \in [ L ] } f _ { \ell g } h _ { \ell } + \sum _ { \ell \in [ L ] } ( g _ { \ell } ^ { \text{noise} } \cdot \mathbb { F } _ { q } [ x ] ^ { < T } + f _ { \ell } ^ { \text{noise} } h _ { \ell } \cdot \mathbb { F } _ { q } [ x ] ^ { < X } + f _ { \ell } ^ { \text{noise} } g _ { \ell } ^ { \text{noise} } \cdot \mathbb { F } _ { q } [ x ] ^ { < X + T - 1 } ).$$

To take advantage of the direct sum decomposition of (3), we want the terms in the first sum to have degree &lt; L and be linearly independent, hence the presence of the polynomial h ℓ . Furthermore, we want the terms in the second sum to be multiples of h . To achieve this, we assert that (1) h ℓ are a basis of F q [ x ] &lt;L , (2) g noise ℓ = h , and (3) f noise ℓ = h/h ℓ (assuming that h ℓ divides h ). With these choices one can verify that

$$\sum _ { \ell \in [ L ] } \widehat { f } _ { \ell } \widehat { g } _ { \ell } \in \sum _ { \ell \in [ L ] } f _ { \ell } g _ { \ell } h _ { \ell } + h \cdot \mathbb { F } _ { q } [ x ] ^ { < X + T - 1 + \Delta },$$

where ∆ = max deg( ℓ h/h ℓ ) . In particular, the above polynomial has degree &lt; L + X + T -1 + ∆ .

These choices for the polynomials mean that the corresponding secret sharing codes are

$$\mathcal { C } _ { \ell } & = \text{ev} _ { \alpha } ( \mathbb { F } _ { q } ), \quad \mathcal { C } _ { \ell } ^ { \text{noise} } = \text{ev} _ { \alpha } ( h / h _ { \ell } \cdot \mathbb { F } _ { q } [ x ] ^ { < X } ), \\ \mathcal { D } _ { \ell } & = \text{ev} _ { \alpha } ( h _ { \ell } \cdot \mathbb { F } _ { q } ), \quad \mathcal { D } _ { \ell } ^ { \text{noise} } = \text{ev} _ { \alpha } ( h \cdot \mathbb { F } _ { q } [ x ] ^ { < T } ),$$

̸

where F q ⊆ F q [ x ] is identified with the constant polynomials. If the evaluation points α are chosen such that h α ( i ) = 0 , then these are all generalized Reed-Solomon codes. Thus, d ⊥ ( C noise ℓ ) -1 = X and d ⊥ ( D noise ℓ ) -1 = T , which means that we achieve the desired security and privacy levels. Furthermore, it is clear that dim( C ℓ ) = dim( D ℓ ) = 1 . The codes E ℓ , E and E noise are

$$\mathcal { E } _ { \ell } = e v _ { \alpha } ( h _ { \ell } \cdot \mathbb { F } _ { q } ), \ \mathcal { E } = e v _ { \alpha } ( \mathbb { F } _ { q } [ x ] ^ { < L } ), \ \mathcal { E } ^ { n o i s e } = e v _ { \alpha } ( h \cdot \mathbb { F } _ { q } [ x ] ^ { < X + T - 1 + \Delta } ).$$

By setting N = L + X + T -1 + ∆ we can guarantee that ev α is injective on all of the above subspaces, which means that E ∩ E noise = 0 due to Eq. (3). Therefore, according to Theorem IV.1 there is an X -secure T -private information retrieval scheme with rate R = L N , where N = L + X + T -1 + ∆ .

Recall that we want to choose h , . . . , h 1 L to be a basis of F q [ x ] &lt;L and h of degree L to be a multiple of h ℓ for all ℓ ∈ [ L ] , with the goal of minimizing ∆ . By choosing the basis polynomials h ℓ = x ℓ -1 and h = x L , we have that deg( h/h ℓ ) = L -ℓ +1 , so ∆ = L , which scales with L . A better choice of basis elements can be made by choosing distinct elements γ , . . . , γ 1 L ∈ F q and setting

̸

$$h _ { \ell } = \prod _ { \substack { \ell ^ { \prime } \in [ L ] \\ \ell ^ { \prime } \neq \ell } } ( x - \gamma _ { \ell ^ { \prime } } ), \quad \text{and} \quad h = \prod _ { \ell \in [ L ] } ( x - \gamma _ { \ell } ).$$

We have that h/h ℓ = x -γ ℓ , so ∆ = 1 . Therefore, N = L + X + T , which corresponds to the decomposition

$$\mathbb { F } _ { q } [ x ] ^ { < L } \oplus h \cdot \mathbb { F } _ { q } [ x ] ^ { < X + T } = \mathbb { F } _ { q } [ x ] ^ { < L + X + T }$$

of finite dimensional vector spaces. We obtain the PIR rate R = 1 -X + T N . This is the construction given in [13] translated to polynomials. As we need to choose N distinct evaluation points from F q distinct from the γ , . . . , γ 1 L we chose as the roots of h , we need the field size to be q ≥ N + L . We recap this construction in the following theorem.

Theorem V.1. Let N = L + X + T . If q ≥ L + T , then there exists a PIR scheme over F q with rate

$$\mathcal { R } = 1 - \frac { X + T } { N },$$

which is X -secure and T -private.

## B. Geometric Interpretation

Let X = P 1 and let P ∞ = [0 : 1] be the point at infinity. We may write (5) in terms of Riemann-Roch spaces as follows. Recall that L (( k -1) P ∞ ) = F q [ x ] &lt;k and h · L ( D ) = L ( D -( h )) . Therefore, (5) corresponds to

$$\mathcal { L } ( ( L - 1 ) P _ { \infty } ) \oplus \mathcal { L } ( ( X + T - 1 ) P _ { \infty } - ( h ) ) = \mathcal { L } ( ( L + X + T - 1 ) P _ { \infty } ),$$

where ( h ) = P 1 + · · · + P L -LP ∞ , and P ℓ = [ γ ℓ : 1] . It is this direct sum decomposition of Riemann-Roch spaces that will generalize to higher genus curves, allowing for analogous PIR protocols from AG codes. In the previous subsection we saw that choosing an appropriate basis of the space L (( L -1) P ∞ ) was crucial to the CSA construction. Finding similar bases of analogous Riemann-Roch spaces for higher-genus curves will prove equally crucial.

## VI. CONSTRUCTION USING HYPERELLIPTIC CURVES

In this section we take the geometric interpretation for the polynomial construction of CSA codes of the previous section, and generalize it from the projective line to hyperelliptic curves. Ultimately, this allows us to construct PIR protocols which operate on smaller fields than are possible with the genus zero construction of [13]. In the same way that Shamir secret sharing is an essential building block of the CSA codes of the previous section, underlying the construction of the current section is the Chen-Cramer secret sharing scheme of [31].

Throughout this section we fix a hyperelliptic curve X defined by y 2 + H x y ( ) = F x ( ) over F q with genus g ≥ 1 , deg( F ) = 2 g +1 and deg( H ) ≤ g +1 , and a single rational point P ∞ at infinity. Throughout this section, we assume that L ≡ g (mod 2) and L ≥ g and set J = L + g 2 .

## A. Information and Noise Spaces

The information space F q [ x ] &lt;L from the previous section will be replaced with the subspace L (( L + g -1) P ∞ ) , which is also L -dimensional. We let h be a rational function on X with pole divisor ( h ) ∞ = ( L + g P ) ∞ . If U = X \ S , where S is some finite subset of X containing P ∞ , then we have the containment

$$\mathcal { L } ( ( L + g - 1 ) P _ { \infty } ) \oplus h \cdot \mathcal { O } _ { \chi } ( U ) \subseteq \mathcal { O } _ { \chi } ( U )$$

which will provide us with the corresponding codes E and E noise as before, after restricting to appropriate finitedimensional subspaces.

In analogy with the genus zero case, we have scalars f , g ℓ ℓ ∈ F q whose product we want to compute. We choose the secret shares to be

$$\widehat { f } _ { \ell } \in f _ { \ell } + f _ { \ell } ^ { \text{noise} } \cdot \mathcal { L } ( X + 2 g - 1 ) P _ { \infty }, \quad \widehat { g } _ { \ell } \in g _ { \ell } h _ { \ell } + g _ { \ell } ^ { \text{noise} } \cdot \mathcal { L } ( T + 2 g - 1 ) P _ { \infty }$$

for some rational functions h ℓ which form a basis of L (( L + g -1) P ∞ ) . Again, we choose g noise ℓ = h and f noise ℓ = h/h ℓ and a short computation yields that

$$\sum _ { \ell \in [ L ] } \widehat { f } _ { \ell } \widehat { g } _ { \ell } \in \sum _ { \ell \in [ L ] } f _ { \ell } g _ { \ell } h _ { \ell } + h \cdot \mathcal { L } ( ( X + T + 4 g - 2 ) P _ { \infty } + D _ { \infty } )$$

where D ∞ = max ℓ { ( h/h ℓ ) ∞ } . Let ∆ = deg( D ∞ ) , so that the dimension of our noise space is

$$\ell ( ( X + T + 4 g - 2 ) P _ { \infty } + D _ { \infty } ) = X + T + 3 g - 1 + \Delta$$

Our goal now is to choose h and h ℓ to attempt to minimize the above quantity.

̸

To construct the basis functions and the noise space we choose distinct values γ , . . . , γ 1 J ∈ F q such that F γ ( j ) = 0 and set h = ∏ j ∈ [ J ] ( x -γ j ) . Further, set

̸

$$h _ { j } ^ { ( 1 ) } = \prod _ { \substack { j ^ { \prime } \in [ J ] \\ j ^ { \prime } \neq j } } ( x - \gamma _ { j ^ { \prime } } ) \text{ \ for } j \in [ J ], \text{ \ } h _ { j } ^ { ( 2 ) } = y \prod _ { \substack { j ^ { \prime } \in [ J - g ] \\ j ^ { \prime } \neq j } } ( x - \gamma _ { j ^ { \prime } } ) \text{ \ for } j \in [ J - g ].$$

̸

It is simple to check that h (1) 1 , . . . , h (1) J , h (2) 1 , . . . , h (2) J -g is a basis for L (( L + g -1) P ∞ ) . There are L = 2 J -g of these basis functions that we will denote by h , . . . , h 1 L . We have that

$$h / h _ { j } ^ { ( 1 ) } & = x - \gamma _ { j } \in \mathcal { L } ( 2 P _ { \infty } ) \\ h / h _ { j } ^ { ( 2 ) } & = y ^ { - 1 } ( x - \gamma _ { j } ) ( x - \gamma _ { J - g + 1 } ) \cdots ( x - \gamma _ { J } ) \in \mathcal { L } ( P _ { \infty } + ( y ) _ { 0 } ).$$

$$h / h _ { j } ^ { ( 2 ) } = y ^ { - 1 } ( x - \gamma _ { j } ) ( x - \gamma _ { J - g + 1 } ) \cdots ( x - \gamma _ { J } ) \in \mathcal { L } ( P _ { \infty } + ( y ) _ { 0 } ).$$

It follows that D ∞ = 2 P ∞ +( ) y 0 and therefore ∆ = deg(2 P ∞ +( ) ) = 2 y 0 g +3 . Hence the dimension of the noise space is ℓ (( X + T +4 ) g P ∞ +( ) ) = y 0 X + T +5 +2 g .

Observe that nonzero functions in the noise space h · L (( X + T +4 ) g P ∞ +( ) ) y 0 have at least 2 J = L + g zeros, but nonzero functions in the information space L (( L + g -1) P ∞ ) can have at most L + g -1 zeros. Therefore, the intersection of these two Riemann-Roch spaces is trivial. Considering the smallest Riemann-Roch space that contains both the information and noise spaces, we have the inclusion

$$\mathcal { L } ( ( L + g - 1 ) P _ { \infty } ) \oplus h \cdot \mathcal { L } ( ( X + T + 4 g ) P _ { \infty } + ( y ) _ { 0 } ) \subseteq \mathcal { L } ( ( L + X + T + 5 g ) P _ { \infty } + ( y ) _ { 0 } )$$

which is the higher genus analogue of the direct sum decomposition of (6). Setting S = { P ∞ }∪ supp(( y ) 0 ) , we also see that the above direct sum is a subspace of the direct sum appearing in (7), as was the case with the analogous objects in genus zero.

## B. The Evaluation Map and PIR Rate

̸

Let us now finalize our construction by choosing a set of evaluation points and computing the PIR rate. With the objects and notation of the previous subsection, we denote D = ( L + X + T + 5 g P ) ∞ + ( y ) 0 . By finding deg( D ) + 1 = L + X + T + 7 g + 2 rational points P n distinct from P ∞ and ( y ) 0 such that h P ( n ) = 0 , we can define the evaluation map and the associated AG code. The dimension of the resulting code will be N = deg( D ) + 1 -g = L + X + T +6 +2 g . By restricting the code to an information set P of size N the code we get an injective evaluation map ev P . The corresponding secret sharing codes, which in turn define our PIR scheme, are then

$$\mathcal { C } _ { \ell } & = \text{ev} _ { \mathcal { P } } ( \mathbb { F } _ { q } ), \quad \mathcal { C } _ { \ell } ^ { \text{noise} } = \text{ev} _ { \mathcal { P } } ( h / h _ { \ell } \cdot \mathcal { L } ( ( X + 2 g - 1 ) P _ { \infty } ) ) \\ \mathcal { D } _ { \ell } & = \text{ev} _ { \mathcal { P } } ( h _ { \ell } \cdot \mathbb { F } _ { q } ), \quad \mathcal { D } _ { \ell } ^ { \text{noise} } = \text{ev} _ { \mathcal { P } } ( h \cdot \mathcal { L } ( ( T + 2 g - 1 ) P _ { \infty } ),$$

$$\mathcal { D } _ { \ell } = e v _ { \mathcal { P } } ( h _ { \ell } \cdot \mathbb { F } _ { q } ), \quad \mathcal { D } _ { \ell } ^ { \text{noise} } = e v _ { \mathcal { P } } ( h \cdot \mathcal { L } ( ( T + 2 g - 1 ) P _ { \infty } ),$$

where F q ⊆ F q ( X ) is identified with the constants. According to Eq. (2), d ⊥ ( C noise ℓ ) -1 ≥ X and d ⊥ ( D noise ℓ ) -1 ≥ T , which means that we achieve the desired security and privacy levels. It is again clear that dim( C ℓ ) = dim( D ℓ ) = 1 . The resulting codes E ℓ , E and E noise are

$$\mathcal { E } _ { \ell } & = \text{ev} _ { \mathcal { P } } ( h _ { \ell } \cdot \mathbb { F } _ { q } ), \quad \mathcal { E } = \text{ev} _ { \mathcal { P } } ( \mathcal { L } ( ( L + g - 1 ) P _ { \infty } ) ) \\ \mathcal { E } ^ { \text{noise} } & = \text{ev} _ { \mathcal { P } } ( h \cdot \mathcal { L } ( ( X + T + 4 g ) P _ { \infty } + ( y ) _ { 0 } ) ).$$

$$\mathcal { E } ^ { \text{noise} } = \text{ev} _ { \mathcal { P } } ( h \cdot \mathcal { L } ( ( X + T + 4 g ) P _ { \infty } + ( y ) _ { 0 } ) ).$$

Finally, we arrive at the following theorem.

̸

Theorem VI.1. Let X be a hyperelliptic curve of genus g defined by the affine equation y 2 + H x y ( ) = F x ( ) over F q . Let L ≥ g , L ≡ g (mod 2) and J = L + g 2 . Let γ , . . . , γ 1 J ∈ F q be such that F γ ( j ) = 0 and set h = ∏ j ∈ [ J ] ( x -γ j ) . Let N = L + X + T +6 +2 g for some security and privacy parameters X and T . If there are N + g rational points P , . . . , P 1 N + g disjoint from P ∞ and ( y ) 0 and such that h P ( n ) = 0 , then there exists a PIR scheme over F q with rate

̸

$$\mathcal { R } = 1 - \frac { X + T + 6 g + 2 } { N }.$$

which is X -secure and T -private.

## C. Maximizing the Rate

Instead of focusing on the PIR rate given some fixed number of servers N , we want to fix a field size q and find the maximal rate over that field size given the security and privacy parameters X and T . For the construction over the projective line we require that q ≥ 2 L + X + T , so the largest rate is achieved by choosing L = ⌊ q -( X + ) T 2 ⌋ and N = L + X + T .

For a given hyperelliptic curve X of genus g the maximum PIR rate is achieved by maximizing N , i.e., by maximizing the parameter L . Recall that we have to be able to find N + g rational points that are disjoint from { P ∞ } ∪ supp(( y ) 0 ) ∪ supp(( h ) 0 ) . The function h depends on L , so we want to maximize L , while keeping the number of rational points in supp(( h ) 0 ) sufficiently small. The zeros of h are those points whose x -coordinate is γ j ∈ F q for j = 1 , . . . , J .

Let Γ = { x P ( ) | P ∈ X ( F q ) } and Γ = F q \ Γ . If γ ∈ Γ , then x -γ has no rational zeros and if γ ∈ Γ , then x -γ has at most two rational zeros. This means that choosing γ j ∈ Γ will not reduce the number of rational points at our disposal, but choosing γ j ∈ Γ will reduce the number by at most two. Choosing an additional γ j , i.e., increasing J by one, will increase L by two. We will choose the γ j 's by first choosing them from Γ and then from Γ until we cannot choose any more points without violating the condition of having at least N + g rational points outside of { P ∞ } ∪ supp(( y ) 0 ) ∪ supp(( h ) 0 ) . While it is hard to derive a precise expression for the resulting L , the following example will show that choosing a maximal curve will not always yield the best PIR rate.

Example VI.2 . Set X = T = 1 and consider curves of genus g = 1 . Consider the maximal elliptic curve over F 11 defined by y 2 = x 3 + x +3 with 18 rational points. The function y has one rational zero, which means that the number of usable rational points is 16 . We see that the number of free x coordinates is | Γ = 2 | . We choose γ , γ 1 2 ∈ Γ and set J = 2 , L = 3 . This implies that N = 13 , so we need to have N + g = 14 rational points available

Fig. 1. Comparison between the maximal achievable rate of the CSA construction of [13] over the projective line (Theorem V.1) and the construction over hyperelliptic curves (Theorem VI.1) over a fixed field. The constructions are over F 2 8 with primitive element α satisfying α 8 + α 4 + α 3 + α 2 +1 = 0 (left) and over F 61 (right).

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.00542v1-figure-d2b51b8d-b6d3-462a-8ca1-434ad07fc4fd.jpg)

outside of P ∞ and the rational zero of y . As 18 -2 = 16 ≥ 14 , we see that having J = 2 is possible. On the other hand, setting J = 3 and choosing γ 3 ∈ Γ is not possible, since this reduces the number of usable rational points to 14 , while increasing the requirement to N +1 = 16 . Therefore, the maximal achievable rate for this curve is 3 13 ≈ 0 231 . .

Consider the elliptic curve over F 11 defined by y 2 = x 3 +2 x +4 with 17 rational points. The function y has no rational zeros, which means that there are again 16 usable rational points. The number of free x coordinates is | Γ = 3 | , so let us set J = 3 , L = 5 and choose γ , γ 1 2 , γ 3 ∈ Γ . This means that N = 15 and we achieve a rate of 5 15 ≈ 0 333 . .

## VII. DISCUSSION

In this section we discuss the different aspects our construction and compare it to the CSA construction in [13]. One of the difficulties in our construction is finding hyperelliptic curves with a large number of rational points. Exhaustive search can be done for small values of g and q by going through all polynomials F x , H x ( ) ( ) in the equation of the hyperelliptic curve. For larger parameters, such an exhaustive search is not feasible, but random search over F x , H x ( ) ( ) does produce curves with sufficiently many points to demonstrate the desired improvement in the rate as the genus increases. Lastly, for some values of g and q , hyperelliptic curves in the desired form with many points can be found at [32].

## A. Comparison

As mentioned before, we are interested in the maximal PIR rate achievable over a fixed field size q and fixed security and privacy parameters X and T . In Section VII-A we have plotted the maximal rate as a function of

X = T over different curves. We observe that the constructions over hyperelliptic curves achieve a higher maximal PIR rate when X = T is sufficiently large. The following example shows how the flexibility in choosing a larger parameter L allows for the larger rate.

Example VII.1 . Consider the field F 2 8 , which can be represented in one byte and has efficient hardware implementations on many architectures. Set the security and privacy parameters to X = T = 50 . Over this field, the largest rate achievable for the construction over the projective line is achieved for L = 78 and N = 178 , since this uses all 256 = 2 · 78 + 50 + 50 points. The corresponding PIR rate is R = 78 178 ≈ 0 44 . . On the other hand, consider the elliptic curve X : y 2 + ( αx + α 6 + α 4 ) y = x 3 with 288 rational points, where α ∈ F 2 8 satisfies α 8 + α 4 + α 3 + α 2 +1 = 0 . This construction allows for L = 177 and N = 285 with a corresponding PIR rate of R = 177 285 ≈ 0 62 . . This shows that over the same field F 2 8 the construction given in this paper can achieve a much higher PIR rate.

## B. Security and Privacy Beyond X and T

Let us now briefly highlight an additional feature of our PIR scheme, namely that it is private against some U -subsets of servers even when U &gt; T , and similarly secure against some V -subsets of servers even when V &gt; X . As we will see, the CSA codes of [13] cannot have this property, because the underlying LSSS is based on MDS codes.

Returning to the language of LSSS's of Section III, one has for a general code C noise that d ⊥ ( C noise ) -1 ≤ dim( C noise ) , with equality exactly when C noise is MDS. If ( C C , noise ) is a T -secure LSSS, then we can consider its security against sets of U compromised parties for U ≥ T . Clearly, the interval of interest is

$$U \in [ d ^ { \perp } ( \mathcal { C } ^ { n o i s e } ) - 1, \dim ( \mathcal { C } ^ { n o i s e } ) ]$$

on which Proposition III.1 admits the following generalization.

Proposition VII.2. Let ( C C , noise ) be an LSSS and let T ⊆ [ N ] be a subset of size U ∈ [ d ⊥ ( C noise ) -1 dim( , C noise )] . If dim( C noise ( T )) = U , then the LSSS is secure against T .

For U in the interval of (9) we define σ U ( ) to be the fraction of U -subsets of [ N ] against which an LSSS is not secure. If we consider a Chen-Cramer LSSS with C noise = C P ( , ( T +2 g -1) P ∞ -( h )) as in Example III.3, then we are secure against some U -sets whenever U ∈ [ T, T + ] g . The authors of [34] study the function σ U ( ) on this interval and show that if g/q 1 / 2 → 0 then σ U ( ) → 0 for all U ∈ [ T, T + g ] . For the [24 , 6 17] , AG code over F 13 from Example III.3, one can compute by enumerating low weight codewords of the dual code that σ (5) = 92 / ( 24 5 ) ≈ 0 0022 . and σ (6) = 8684 / ( 24 6 ) ≈ 0 0645 . .

As the security and privacy properties of our PIR scheme are inherited directly from the underlying LSSS's, it is clear that the PIR scheme of Section VI is secure against some subsets of size V ∈ [ X,X + ] g , and private against some subsets of size U ∈ [ T, T + ] g . However, we are most interested in the case of a fixed ground field, the asymptotic results of [34] are not directly applicable to the current work. While isolated examples such as that

of the previous paragraph hint that the related quantities σ U ( ) are indeed quite small, we reserve deeper study of the security and privacy properties of PIR schemes beyond the prescribed parameters X and T for future work.

## C. Conclusions and Future Work

In this work, we have reformulated the original cross-subspace alignment scheme for secure PIR in the language of Reed-Solomon codes on the projective line, and generalized the construction to utilize algebraic geometry codes on hyperelliptic curves of arbitrary genus. A higher genus yields more rational points with respect to the field size, hence allowing for a more flexible choice of parameters. For instance, for a fixed field size, we can increase the number of servers beyond the field size, which is not possible for genus zero. This enables higher rates at the cost of slightly higher subpacketization level and few more servers. By the new construction, we can also avoid sharp threshold effects that may lead to suboptimal implementations. For instance, arithmetic over certain finite fields is highly optimized on hardware. Nevertheless, for application settings where the field size or computational complexity is not a concern, the original CSA codes employed with large enough fields provide higher rates.

As for future work, one could consider establishing upper bounds on the maximal rate achievable by our construction, that is, for a fixed field size q and genus g , find explicit upper bounds on the PIR rate as we range over all hyperelliptic curves of the given genus and all possible choices of interpolation and evaluation points. More generally, one could ask for upper bounds on the achievable secure PIR rate for a fixed field size, though such questions are notoriously difficult. Another interesting direction for future research is to study similar constructions for other families of algebraic curves, including Hermitian or norm-trace curves. This means that one should find a suitable basis of L (( L + g -1) P ∞ ) , or some other Riemann-Roch space, that achieves a constant ∆ -parameter (as described in Section VI-A) with respect to L . Constructions over other families of curves would also clarify the relevant properties that are required from the curves used in homomorphic secret sharing.

## REFERENCES

- [1] O. Makkonen, D. A. Karpuk, and C. Hollanti, 'Algebraic geometry codes for cross-subspace alignment in private information retrieval,' in 2024 IEEE International Symposium on Information Theory , 2024.
- [2] B. Chor, O. Goldreich, E. Kushilevitz, and M. Sudan, 'Private information retrieval,' in Proceedings of IEEE 36th Annual Foundations of Computer Science , pp. 41-50, IEEE, 1995.
- [3] H. Sun and S. A. Jafar, 'The capacity of robust private information retrieval with colluding databases,' IEEE Transactions on Information Theory , vol. 64, pp. 2361-2370, April 2018.
- [4] H. Sun and S. A. Jafar, 'The capacity of private information retrieval,' IEEE Transactions on Information Theory , vol. 63, no. 7, pp. 4075-4088, 2017.
- [5] K. Banawan and S. Ulukus, 'The capacity of private information retrieval from coded databases,' IEEE Transactions on Information Theory , vol. 64, pp. 1945-1956, mar 2018.
- [6] R. Freij-Hollanti, O. W. Gnilke, C. Hollanti, and D. A. Karpuk, 'Private information retrieval from coded databases with colluding servers,' SIAM Journal on Applied Algebra and Geometry , vol. 1, no. 1, pp. 647-664, 2017.
- [7] R. Tajeddine, O. W. Gnilke, D. Karpuk, R. Freij-Hollanti, and C. Hollanti, 'Private information retrieval from coded storage systems with colluding, Byzantine, and unresponsive servers,' IEEE Transactions on Information Theory , vol. 65, no. 6, pp. 3898-3906, 2019.
- [8] R. Freij-Hollanti, O. W. Gnilke, C. Hollanti, A.-L. Horlemann-Trautmann, D. Karpuk, and I. Kubjas, ' -private information retrieval t schemes using transitive codes,' IEEE Transactions on Information Theory , vol. 65, no. 4, pp. 2107-2118, 2018.

- [9] R. G. L. D'Oliveira and S. El Rouayheb, 'Lifting private information retrieval from two to any number of messages,' in 2018 IEEE International Symposium on Information Theory (ISIT) , pp. 1744-1748, June 2018.
- [10] L. Holzbaur, R. Freij-Hollanti, J. Li, and C. Hollanti, 'Toward the capacity of private information retrieval from coded and colluding servers,' IEEE Transactions on Information Theory , vol. 68, no. 1, pp. 517-537, 2022.
- [11] M. Nomeir, A. Aytekin, and S. Ulukus, 'Quantum X -secure B -Byzantine T -colluding private information retrieval,' 2024.
- [12] S. Song and M. Hayashi, 'Capacity of quantum private information retrieval with colluding servers,' IEEE Transactions on Information Theory , vol. 67, no. 8, pp. 5491-5508, 2021.
- [13] Z. Jia, H. Sun, and S. A. Jafar, 'Cross subspace alignment and the asymptotic capacity of X -secure T -private information retrieval,' IEEE Transactions on Information Theory , vol. 65, pp. 5783-5798, Sep. 2019.
- [14] Z. Jia and S. A. Jafar, ' X -secure T -private information retrieval from MDS coded storage with Byzantine and unresponsive servers,' IEEE Transactions on Information Theory , vol. 66, no. 12, pp. 7427-7438, 2020.
- [15] H. Hou, K. W. Shum, M. Chen, and H. Li, 'Basic codes: Low-complexity regenerating codes for distributed storage systems,' IEEE Transactions on Information Theory , vol. 62, no. 6, pp. 3053-3069, 2016.
- [16] N. Raviv, N. Silberstein, and T. Etzion, 'Constructions of high-rate minimum storage regenerating codes over small fields,' IEEE Transactions on Information Theory , vol. 63, no. 4, pp. 2015-2038, 2017.
- [17] Z. Chen, Z. Jia, Z. Wang, and S. A. Jafar, 'GCSA codes with noise alignment for secure coded multi-party batch matrix multiplication,' IEEE Journal on Selected Areas in Information Theory , vol. 2, no. 1, pp. 306-316, 2021.
- [18] Z. Jia and S. A. Jafar, 'On the capacity of secure distributed batch matrix multiplication,' IEEE Transactions on Information Theory , vol. 67, no. 11, pp. 7420-7437, 2021.
- [19] M. Allaix, Y. Lu, Y. Yao, T. Pllaha, C. Hollanti, and S. Jafar, ' N -sum box: An abstraction for linear computation over many-to-one quantum networks,' arXiv preprint arXiv:2304.07561 , 2023.
- [20] Y. Lu and S. A. Jafar, 'Quantum cross subspace alignment codes via the N -sum box abstraction,' arXiv preprint arXiv:2304.14676 , 2023.
- [21] R. A. Machado, W. Santos, and G. L. Matthews, 'HerA scheme: Secure distributed matrix multiplication via Hermitian codes,' arXiv preprint arXiv:2303.16366 , 2023.
- [22] C. Hollanti, O. Makkonen, and E. Sac ¸ıkara, 'Algebraic geometry codes for secure distributed matrix multiplication,' arXiv preprint arXiv:2303.15429 , 2023.
- [23] H. Chen, 'Star product PIR schemes with colluding servers over small fields,' 2022.
- [24] A. Couvreur, I. M´ arquez-Corbella, and R. Pellikaan, 'Cryptanalysis of McEliece cryptosystem based on algebraic geometry codes and their subcodes,' IEEE Transactions on Information Theory , vol. 63, no. 8, pp. 5404-5418, 2017.
- [25] L. C. Washington, Elliptic Curves: Number Theory and Cryptography, 2nd Edt. Chapman &amp; Hall/CRC, 2 ed., 2008.
- [26] S. D. Galbraith, Mathematics of Public Key Cryptography . Cambridge University Press, 2018.
- [27] A. Garcia, 'Curves over finite fields attaining the Hasse-Weil upper bound,' in European Congress of Mathematics (C. Casacuberta, R. M. Mir´ o-Roig, J. Verdera, and S. Xamb´-Descamps, eds.), (Basel), pp. 199-205, Birkh¨ auser Basel, 2001. o
- [28] T. Høholdt, J. van Lint, and G. Pellikaan, Handbook of Coding Theory (V.S. Pless, W.C. Huffman and R.A. Brualdi Eds.) , vol. 1, ch. Algebraic geometry codes, pp. 871-961. Netherlands: Elsevier, 1998.
- [29] H. Chen, R. Cramer, S. Goldwasser, R. De Haan, and V. Vaikuntanathan, 'Secure computation from random error correcting codes,' in Annual International Conference on the Theory and Applications of Cryptographic Techniques , pp. 291-310, Springer, 2007.
- [30] A. Shamir, 'How to share a secret,' Communications of the ACM , vol. 22, no. 11, pp. 612-613, 1979.
- [31] H. Chen and R. Cramer, 'Algebraic geometric secret sharing schemes and secure multi-party computations over small fields,' in Advances in Cryptology - CRYPTO 2006 (C. Dwork, ed.), (Berlin, Heidelberg), pp. 521-536, Springer Berlin Heidelberg, 2006.
- [32] G. van der Geer, E. W. Howe, K. E. Lauter, and C. Ritzenthaler, 'Tables of curves with many points,' 2009. Retrieved 22.6.2024.
- [33] N. Raviv and D. A. Karpuk, 'Private polynomial computation from Lagrange encoding,' IEEE Transactions on Information Forensics and Security , vol. 15, pp. 553-563, 2020.
- [34] F. Peng, H. Chen, and C.-A. Zhao, 'Algebraic geometric secret sharing schemes over large fields are asymptotically threshold,' Pacific Journal of Mathematics , vol. 319, no. 1, pp. 213-232, 2022.
Okko Makkonen David Karpuk Camilla Hollanti
Secret Sharing for Secure and Private Information Retrieval: A Construction Using Algebraic Geometry Codes
Private information retrieval (PIR) considers the problem of retrieving a
data item from a database or distributed storage system without disclosing any
information about which data item was retrieved. Secure PIR complements this
problem by further requiring the contents of the data to be kept secure.
Privacy and security can be achieved by adding suitable noise to the queries
and data using methods from secret sharing. In this paper, a new framework for
homomorphic secret sharing in secure and private information retrieval from
colluding servers is proposed, generalizing the original cross-subspace
alignment (CSA) codes proposed by Jia, Sun, and Jafar. We utilize this
framework to give a secure PIR construction using algebraic geometry codes over
hyperelliptic curves of arbitrary genus. It is shown that the proposed scheme
offers interesting tradeoffs between the field size, file size, number of
colluding servers, and the total number of servers. When the field size is
fixed, this translates in some cases to higher retrieval rates than those of
the original scheme. In addition, the new schemes exist also for some
parameters where the original ones do not.