Skip to main content
QUICK REVIEW

[Paper Review] LDPC codes in the McEliece cryptosystem: attacks and countermeasures

Marco Baldi|ArXiv.org|Sep 30, 2007
Coding theory and cryptographyComputer Science4 citations
TL;DR

This paper proposes a modified McEliece cryptosystem using quasi-cyclic low-density parity-check (QC-LDPC) codes to reduce key size and improve transmission rate while maintaining security. It introduces countermeasures against recent attacks exploiting structural flaws in the public key transformation, demonstrating that minor changes to constituent matrices preserve security without increasing complexity, enabling scalable, high-performance post-quantum encryption.

ABSTRACT

The McEliece cryptosystem is a public-key cryptosystem based on coding theory that has successfully resisted cryptanalysis for thirty years. The original version, based on Goppa codes, is able to guarantee a high level of security, and is faster than competing solutions, like RSA. Despite this, it has been rarely considered in practical applications, due to two major drawbacks: i) large size of the public key and ii) low transmission rate. Low-Density Parity-Check (LDPC) codes are state-of-art forward error correcting codes that permit to approach the Shannon limit while ensuring limited complexity. Quasi-Cyclic (QC) LDPC codes are a particular class of LDPC codes, able to join low complexity encoding of QC codes with high-performing and low-complexity decoding of LDPC codes. In a previous work it has been proposed to adopt a particular family of QC-LDPC codes in the McEliece cryptosystem to reduce the key size and increase the transmission rate. Recently, however, new attacks have been found that are able to exploit a flaw in the transformation from the private key to the public one. Such attacks can be effectively countered by changing the form of some constituent matrices, without altering the system parameters. This work gives an overview of the QC-LDPC codes-based McEliece cryptosystem and its cryptanalysis. Two recent versions are considered, and their ability to counter all the currently known attacks is discussed. A third version able to reach a higher security level is also proposed. Finally, it is shown that the new QC-LDPC codes-based cryptosystem scales favorably with the key length.

Motivation & Objective

  • To address the two major drawbacks of the original McEliece cryptosystem: large public key size and low transmission rate.
  • To evaluate the security of LDPC-based McEliece variants against classic and newly developed attacks, particularly those exploiting sparse transformation matrices.
  • To propose a secure, efficient, and scalable variant of the McEliece cryptosystem using QC-LDPC codes that maintains low computational complexity.
  • To demonstrate that minor modifications to the public key transformation matrices can effectively counter recent cryptanalytic attacks without compromising performance.
  • To show that the QC-LDPC-based system scales favorably with increasing key size, maintaining linear growth compared to the quadratic growth in the original system.

Proposed method

  • The system uses quasi-cyclic LDPC codes with sparse parity-check matrices to reduce key size and increase transmission rate while preserving the structure needed for efficient encoding and decoding.
  • It applies dense transformation matrices to obscure the secret code structure, preventing attacks that exploit sparse transformations in previous LDPC-based variants.
  • The public key is generated by transforming the private key using a dense matrix and a permutation, ensuring that the resulting generator matrix appears random and hides the underlying code structure.
  • The system leverages efficient sum-product algorithm (SPA) decoding for LDPC codes, minimizing decryption complexity and enabling high throughput.
  • The proposed countermeasures involve modifying the form of constituent matrices in the public key transformation, which disrupts attack vectors without altering system parameters or increasing computational cost.
  • Security is evaluated against known attacks, including information set decoding, Stern-type algorithms, and attacks targeting sparse structures, with performance analyzed via complexity estimation and key size scaling.

Experimental results

Research questions

  • RQ1Can QC-LDPC codes be securely integrated into the McEliece cryptosystem to reduce key size and improve transmission rate without compromising security?
  • RQ2How do recent attacks exploiting sparse transformation matrices compromise LDPC-based McEliece variants, and what structural changes can effectively neutralize them?
  • RQ3To what extent can the QC-LDPC-based McEliece system scale to higher security levels while maintaining efficiency and low complexity?
  • RQ4What is the computational cost of encryption and decryption in QC-LDPC-based variants compared to RSA and the original McEliece system?
  • RQ5Can the system preserve security against all known attacks, including quantum-resistant ones, while achieving performance comparable to or better than RSA?

Key findings

  • The first QC-LDPC-based McEliece variant reduces key size to 6144 bytes—over 10 times smaller than the original McEliece system (67072 bytes) and more than 5 times smaller than the Niederreiter variant.
  • The system achieves a transmission rate of 0.75 (3/4), significantly higher than the original McEliece system's rate of 0.51, improving efficiency for practical communication.
  • A second variant maintains the same key size as the first but increases the security level by a factor of approximately 2^10 by reducing the rate to 2/3, demonstrating a trade-off between performance and security.
  • A third variant achieves a security level of 2^106.5 by doubling the key size to 12288 bytes, still more than 5 times smaller than the original system, showing favorable linear scaling with code length.
  • The computational cost of encryption and decryption remains low: for the first variant, encryption cost is 658 operations per information bit and decryption is 4678, both significantly lower than RSA's 738112 operations per bit.
  • The system resists all known attacks, including improved Stern-type algorithms and structural attacks on sparse transformations, by modifying constituent matrices in the public key transformation without altering system parameters or increasing complexity.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.