---
title: "Syndrome Decoding of random linear codes (SD)"
description: "Given a random parity-check matrix and a syndrome, the low-weight error that produced it cannot be found. Schemes that rely on it, evidence of hardness, and best known attacks."
url: "https://pqt-19a6ffd695e12a.pages.dev/assumptions/syndrome-decoding/"
site: "PQ Tracker, maintained by zkSecurity"
reviewed: "2026-11-25"
license: "https://creativecommons.org/licenses/by/4.0/"
---

# Syndrome Decoding of random linear codes (SD)

Codes · Hardness assumption

Given a random parity-check matrix and a syndrome, the low-weight error that produced it cannot be found.

**zkSecurity** · Reviewed 2026-11-25

## Statement

Let **H** be the parity-check matrix of a random binary linear code of length n. Given **H** and

**y** = **H**·**e**^T, weight(**e**) = t

find the error vector **e**. This is the coding-theory counterpart of [LWE](https://pqt-19a6ffd695e12a.pages.dev/assumptions/lwe/), with sparse errors measured by Hamming weight in place of small errors measured by size.

## Use in schemes

- **Classic McEliece.** A ciphertext is the syndrome of a random weight-t error under the public matrix. The receiver decodes because the public matrix describes a Goppa code, which adds a second assumption, [Goppa indistinguishability](https://pqt-19a6ffd695e12a.pages.dev/assumptions/goppa-indistinguishability/). The 2026 attacks on Classic McEliece target that second assumption, not syndrome decoding.
- **HQC** uses the [quasi-cyclic variant](https://pqt-19a6ffd695e12a.pages.dev/assumptions/qcsd/), with no hidden code.
- **SDitH** proves knowledge of a solution in zero knowledge, with no trapdoor.

## Evidence of hardness

- The decision problem is NP-complete (Berlekamp, McEliece and van Tilborg, 1978). This is a worst-case statement; no average-case reduction is known.
- Decoding of random codes has been studied since 1962. Improvements have been incremental.
- McEliece's 1978 parameters were broken in practice in 2008 at about 2^60 operations, as a result of faster hardware and incremental algorithms. Current parameters are scaled accordingly.

## Best known attacks

- **Information set decoding.** Prange (1962), Stern, Dumer, May-Meurer-Thomae, Becker-Joux-May-Meurer. For high-rate, low-weight codes all known variants have the same asymptotic exponent.
- **Recent.** A 2026 variant that amortizes linear algebra reduced the estimate for HQC's lowest parameter set by about 3 bits. Decoding-challenge records continue to advance at sizes far below deployed parameters.
- **Quantum.** Grover search over information sets gives approximately a square-root speedup. Parameters account for it.

## Limitations

- The assumption concerns random codes. A scheme using a structured code requires a separate argument that the structure does not assist an attacker.
- A random-looking parity-check matrix is large. Classic McEliece public keys range from 261 KB to 1.3 MB.

## Record

2 entries · [Feed](https://pqt-19a6ffd695e12a.pages.dev/feed/)

- 2026-11-24 · Theoretical result · No action required · [New generic syndrome-decoding records (length 580/weight 71; quasi-cyclic weight 64)](https://pqt-19a6ffd695e12a.pages.dev/feed/2026-11-24-new-generic-syndrome-decoding-records-length-580/)
- 2026-07-22 · Reduced security margin · Action: monitor · [Improved ISD puts HQC-1 about 3 bits under target; HQC team raises error weights](https://pqt-19a6ffd695e12a.pages.dev/feed/2026-07-22-improved-isd-puts-hqc-1-about-3-bits-under-targe/)

- **Status**: Standing
- **Studied since**: 1978 (NP-completeness: Berlekamp, McEliece, van Tilborg, 1978. First decoding attack: Prange, 1962)
- **Exploitable structure**: None
- **Worst-case reduction**: None (NP-hard in the worst case)
- **Quantum speedup**: Quadratic at most (Grover)

### Relied on by

- **[Classic McEliece](https://pqt-19a6ffd695e12a.pages.dev/algorithms/classic-mceliece/)** (Recovering the message means decoding a random-looking binary linear code)
- **[SDitH](https://pqt-19a6ffd695e12a.pages.dev/candidates/#sdith)** (Plain syndrome decoding, no trapdoor)

### Consequence of failure

All code-based schemes fail: Classic McEliece, HQC, BIKE and SDitH.

### Related

[QC syndrome decoding](https://pqt-19a6ffd695e12a.pages.dev/assumptions/qcsd/), [Goppa indistinguishability](https://pqt-19a6ffd695e12a.pages.dev/assumptions/goppa-indistinguishability/)

**References (3)**

- [Classic McEliece: specification and security guide](https://classic.mceliece.org/)
- [Becker, Joux, May, Meurer: Decoding random binary linear codes in 2^(n/20): how 1+1=0 improves information set decoding](https://eprint.iacr.org/2012/026)
- [Bernstein, Lange, Peters: Attacking and defending the McEliece cryptosystem](https://eprint.iacr.org/2008/318)

### Data

[data.json](https://pqt-19a6ffd695e12a.pages.dev/assumptions/syndrome-decoding/data.json)
