{
  "id": "2026/1616",
  "url": "https://opencryptology.org/2026/1616",
  "original_url": "https://eprint.iacr.org/2026/1616",
  "title": "Flip a Failure into a Success: Improved Bit Flipping Decoding for QC-MDPC Codes",
  "authors": [
    "Paolo Santini",
    "Davide De Zuane",
    "Alessio Baldelli",
    "Marco Baldi"
  ],
  "affiliations": null,
  "abstract": "Quasi-Cyclic Moderate-Density Parity-Check (QC-MDPC) codes are a family of error correcting codes admitting parity-check matrices composed of sparse circulant blocks. QC-MDPC codes have been used for the design of BIKE, one of the finalists in the NIST competition for the standardization of post-quantum cryptography.  Decoding of QC-MDPC codes with cryptographically relevant parameters is intrinsically bound to fail, resulting in a decoding failure rate (DFR) that is nonzero. To achieve INDistinguishability under Adaptively Chosen Ciphertext Attacks (IND-CCA2), the DFR must not exceed $2^{-\\lambda}$, with $\\lambda$ being the security parameter. QC-MDPC codes are customarily decoded with a Bit Flipping (BF) algorithm.  Especially at very low DFR values, error patterns having a large intersection with near-codewords (which are vectors corresponding to columns of the parity-check matrix, up to some shift) are the main cause of decoding failures.\n\nIn this paper, we show how a BF decoder can be tweaked to exploit the knowledge about near-codewords. Since error vectors that cause decoding failures are likely making the decoder converge to the closest near-codeword (i.e., to the near-codeword with the largest amount of overlapping positions with the error vector), we exploit such a harmful but predictable behavior: we let the decoder recognize, and consequently correct, syndromes of near-codewords. This modification comes with a very mild computational overhead and can be applied to any BF decoder. As a concrete application, we focus on BIKE parameters for NIST security category 1. We show that a recently proposed BF variant called $\\textsf{BF}\\text{-}\\textsf{Max}$ outperforms significantly the two decoders used by BIKE within the NIST competition, achieving a significantly lower DFR with a comparable computational complexity.",
  "category": "Public-key cryptography",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“Flip a Failure into a Success: Improved Bit Flipping Decoding for QC-MDPC Codes” by Paolo Santini, Davide De Zuane, Alessio Baldelli, Marco Baldi, Cryptology ePrint Archive, Paper 2026/1616, https://eprint.iacr.org/2026/1616. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": false,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2026-08-05T13:52:31Z",
    "updated": "2026-08-05T13:52:31Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2026/1616.pdf",
    "sha256": "71ddf930ec3eeb46a55dbece62a026f28865ebfb25e4a0f5e846a2467b9a9b46",
    "size": 1001935,
    "source": "upload",
    "source_date": "2026-11-12T22:38:54.473Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "eprint_size": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2026/1616/versions/20261112T223854Z.pdf",
      "captured_at": "2026-11-12T22:38:54.473Z",
      "label": "copy captured 2026-11-12",
      "source": "upload",
      "source_url": null,
      "size": 1001935,
      "sha256": "71ddf930ec3eeb46a55dbece62a026f28865ebfb25e4a0f5e846a2467b9a9b46",
      "is_default_pdf": true
    }
  ],
  "other_sources": [],
  "bibtex": "@misc{cryptoeprint:2026/1616,\n      author = {Paolo Santini and Davide De Zuane and Alessio Baldelli and Marco Baldi},\n      title = {Flip a Failure into a Success: Improved Bit Flipping Decoding for QC-MDPC Codes},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2026/1616},\n      year = {2026},\n      url = {https://eprint.iacr.org/2026/1616}\n}"
}
