Binary Goppa code

From HandWiki
Short description: Kind of error correction code

In mathematics and computer science, the binary Goppa code is an error-correcting code that belongs to the class of general Goppa codes originally described by Valerii Denisovich Goppa, but the binary structure gives it several mathematical advantages over non-binary variants, also providing a better fit for common usage in computers and telecommunication. Binary Goppa codes have interesting properties suitable for cryptography in McEliece-like cryptosystems and similar setups.

Construction and properties

An irreducible binary Goppa code is defined by a polynomial [math]\displaystyle{ g(x) }[/math] of degree [math]\displaystyle{ t }[/math] over a finite field [math]\displaystyle{ GF(2^m) }[/math] with no repeated roots, and a sequence [math]\displaystyle{ L_1, ..., L_n }[/math] of [math]\displaystyle{ n }[/math] distinct elements from [math]\displaystyle{ GF(2^m) }[/math] that are not roots of [math]\displaystyle{ g }[/math].

Codewords belong to the kernel of the syndrome function, forming a subspace of [math]\displaystyle{ \{0,1\}^n }[/math]:

[math]\displaystyle{ \Gamma(g,L)=\left\{ c \in \{0,1\}^n \left| \sum_{i=1}^{n} \frac{c_i}{x-L_i} \equiv 0 \mod g(x) \right. \right\} }[/math]

The code defined by a tuple [math]\displaystyle{ (g,L) }[/math] has dimension at least [math]\displaystyle{ n-mt }[/math] and distance at least [math]\displaystyle{ 2t+1 }[/math], thus it can encode messages of length at least [math]\displaystyle{ n-mt }[/math] using codewords of size [math]\displaystyle{ n }[/math] while correcting at least [math]\displaystyle{ \left\lfloor \frac{(2t+1)-1}{2} \right\rfloor }[/math] errors. It possesses a convenient parity-check matrix [math]\displaystyle{ H }[/math] in form

[math]\displaystyle{ H=VD=\begin{pmatrix} 1 & 1 & 1 & \cdots & 1\\ L_1^1 & L_2^1 & L_3^1 & \cdots & L_{n}^1\\ L_1^2 & L_2^2 & L_3^2 & \cdots & L_{n}^2\\ \vdots & \vdots & \vdots & \ddots & \vdots \\ L_1^{t-1} & L_2^{t-1} & L_3^{t-1} & \cdots & L_{n}^{t-1} \end{pmatrix} \begin{pmatrix} \frac{1}{g(L_1)} & & & & \\ & \frac{1}{g(L_2)} & & & \\ & & \frac{1}{g(L_3)} & & \\ & & & \ddots & \\ & & & & \frac{1}{g(L_{n})} \end{pmatrix} }[/math]

Note that this form of the parity-check matrix, being composed of a Vandermonde matrix [math]\displaystyle{ V }[/math] and diagonal matrix [math]\displaystyle{ D }[/math], shares the form with check matrices of alternant codes, thus alternant decoders can be used on this form. Such decoders usually provide only limited error-correcting capability (in most cases [math]\displaystyle{ t/2 }[/math]).

For practical purposes, parity-check matrix of a binary Goppa code is usually converted to a more computer-friendly binary form by a trace construction, that converts the [math]\displaystyle{ t }[/math]-by-[math]\displaystyle{ n }[/math] matrix over [math]\displaystyle{ GF(2^m) }[/math] to a [math]\displaystyle{ mt }[/math]-by-[math]\displaystyle{ n }[/math] binary matrix by writing polynomial coefficients of [math]\displaystyle{ GF(2^m) }[/math] elements on [math]\displaystyle{ m }[/math] successive rows.

Decoding

Decoding of binary Goppa codes is traditionally done by Patterson algorithm, which gives good error-correcting capability (it corrects all [math]\displaystyle{ t }[/math] design errors), and is also fairly simple to implement.

Patterson algorithm converts a syndrome to a vector of errors. The syndrome of a binary word [math]\displaystyle{ c=(c_1,\dots,c_n) }[/math] is expected to take a form of

[math]\displaystyle{ s(x) \equiv \sum_{i=1}^n \frac{c_i}{x - L_i} \mod g(x) }[/math]

Alternative form of a parity-check matrix based on formula for [math]\displaystyle{ s(x) }[/math] can be used to produce such syndrome with a simple matrix multiplication.

The algorithm then computes [math]\displaystyle{ v(x) \equiv \sqrt{s(x)^{-1}-x} \mod g(x) }[/math]. That fails when [math]\displaystyle{ s(x) \equiv 0 }[/math], but that is the case when the input word is a codeword, so no error correction is necessary.

[math]\displaystyle{ v(x) }[/math] is reduced to polynomials [math]\displaystyle{ a(x) }[/math] and [math]\displaystyle{ b(x) }[/math] using the extended euclidean algorithm, so that [math]\displaystyle{ a(x) \equiv b(x)\cdot v(x) \mod g(x) }[/math], while [math]\displaystyle{ \deg(a)\leq\lfloor t/2 \rfloor }[/math] and [math]\displaystyle{ \deg(b)\leq\lfloor (t-1)/2 \rfloor }[/math].

Finally, the error locator polynomial is computed as [math]\displaystyle{ \sigma(x) = a(x)^2 + x\cdot b(x)^2 }[/math]. Note that in binary case, locating the errors is sufficient to correct them, as there's only one other value possible. In non-binary cases a separate error correction polynomial has to be computed as well.

If the original codeword was decodable and the [math]\displaystyle{ e=(e_1,\dots,e_n) }[/math] was the binary error vector, then

[math]\displaystyle{ \sigma(x) = \prod_{i=1}^n e_i(x-L_i) }[/math]

Factoring or evaluating all roots of [math]\displaystyle{ \sigma(x) }[/math] therefore gives enough information to recover the error vector and fix the errors.

Properties and usage

Binary Goppa codes viewed as a special case of Goppa codes have the interesting property that they correct full [math]\displaystyle{ \deg(g) }[/math] errors, while only [math]\displaystyle{ \deg(g)/2 }[/math] errors in ternary and all other cases. Asymptotically, this error correcting capability meets the famous Gilbert–Varshamov bound.

Because of the high error correction capacity compared to code rate and form of parity-check matrix (which is usually hardly distinguishable from a random binary matrix of full rank), the binary Goppa codes are used in several post-quantum cryptosystems, notably McEliece cryptosystem and Niederreiter cryptosystem.

References

  • Elwyn R. Berlekamp, Goppa Codes, IEEE Transactions on information theory, Vol. IT-19, No. 5, September 1973, https://web.archive.org/web/20170829142555/http://infosec.seu.edu.cn/space/kangwei/senior_thesis/Goppa.pdf
  • Daniela Engelbert, Raphael Overbeck, Arthur Schmidt. "A summary of McEliece-type cryptosystems and their security." Journal of Mathematical Cryptology 1, 151–199. MR2345114. Previous version: http://eprint.iacr.org/2006/162/
  • Daniel J. Bernstein. "List decoding for binary Goppa codes." http://cr.yp.to/codes/goppalist-20110303.pdf

See also