[Paper Review] Cryptanalysis of Two McEliece Cryptosystems Based on Quasi-Cyclic Codes
This paper presents structural cryptanalysis of two McEliece cryptosystems based on quasi-cyclic codes: one using subcodes of primitive BCH codes and another using quasi-cyclic low-density parity-check (QC-LDPC) codes. The attacks exploit the hidden algebraic structure—using linear algebra for the BCH variant and polynomial factorization with low-weight codeword search for the QC-LDPC variant—successfully recovering the secret keys in under 15 minutes for the latter, demonstrating both schemes are insecure despite reduced key sizes.
We cryptanalyse here two variants of the McEliece cryptosystem based on quasi-cyclic codes. Both aim at reducing the key size by restricting the public and secret generator matrices to be in quasi-cyclic form. The first variant considers subcodes of a primitive BCH code. We prove that this variant is not secure by finding and solving a linear system satisfied by the entries of the secret permutation matrix. The other variant uses quasi-cyclic low density parity-check codes. This scheme was devised to be immune against general attacks working for McEliece type cryptosystems based on low density parity-check codes by choosing in the McEliece scheme more general one-to-one mappings than permutation matrices. We suggest here a structural attack exploiting the quasi-cyclic structure of the code and a certain weakness in the choice of the linear transformations that hide the generator matrix of the code. Our analysis shows that with high probability a parity-check matrix of a punctured version of the secret code can be recovered in cubic time complexity in its length. The complete reconstruction of the secret parity-check matrix of the quasi-cyclic low density parity-check codes requires the search of codewords of low weight which can be done with about $2^{37}$ operations for the specific parameters proposed.
Motivation & Objective
- To analyze the security of McEliece cryptosystems using quasi-cyclic codes to reduce key size.
- To identify structural weaknesses in two recent variants: one based on subcodes of primitive BCH codes and another on quasi-cyclic LDPC codes.
- To develop practical cryptanalytic techniques that break both schemes by exploiting their underlying algebraic structures.
- To demonstrate that the security of these variants is compromised despite their efficiency improvements over the original McEliece system.
Proposed method
- For the BCH-based variant, the attack constructs an over-constrained linear system using the fact that the secret code is a subcode of a known BCH code, which constrains entries of the secret permutation matrix.
- For the QC-LDPC variant, the attack uses a polynomial-oriented approach to find two low-weight polynomials whose product equals a public polynomial, leveraging the quasi-cyclic structure.
- The method involves searching for divisors of low weight in the public polynomial, which correspond to structural components of the secret code.
- A punctured version of the secret code is analyzed to recover its parity-check matrix by searching for low-weight codewords.
- The attack applies the Canteaut-Chabaud algorithm to identify low-weight codewords in the punctured code, enabling reconstruction of the secret parity-check matrix.
- The secret matrices are recovered by inverting transformed matrices derived from the public data and the recovered structural components.
Experimental results
Research questions
- RQ1Can the secret permutation matrix in the McEliece variant using subcodes of a primitive BCH code be efficiently recovered?
- RQ2Does the use of quasi-cyclic LDPC codes in place of permutation matrices in the McEliece scheme provide sufficient resistance against structural cryptanalysis?
- RQ3Can the algebraic structure of quasi-cyclic codes be exploited to recover the secret key in polynomial time?
- RQ4What is the computational complexity of recovering the secret parity-check matrix of a QC-LDPC code from its public form?
- RQ5To what extent does the choice of linear transformations in the QC-LDPC variant introduce exploitable weaknesses?
Key findings
- The secret permutation matrix in the BCH-based variant was recovered in all experiments by solving a linear system of equations, with the solution space having dimension one.
- The first phase of the attack on the QC-LDPC variant—finding low-weight polynomial divisors—was completed in 140 seconds using MAGMA on a 2.80GHz Pentium 4.
- The second phase, recovering low-weight codewords in a punctured version of the secret code, required approximately 2^37 operations for the given parameters.
- The complete reconstruction of the secret parity-check matrix was achieved with a work factor of about 2^37 operations, consistent with the Canteaut-Chabaud algorithm’s performance.
- The attack successfully broke both variants, showing that the security of the McEliece system is compromised when quasi-cyclic structures are used without sufficient randomness in transformations.
- The implementation confirmed that both attacks are practical, with the QC-LDPC variant broken in under 15 minutes on standard hardware, despite claims of immunity to general attacks.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.