[Paper Review] On the security of a Loidreau's rank metric code based encryption scheme
This paper presents a polynomial-time key recovery attack on Loidreau's rank metric code-based encryption scheme when the parameter λ=2 and the public code has rate at least 1/2. The attack exploits a structural distinguisher based on the Frobenius action on the dual code, enabling efficient recovery of the secret Gabidulin code structure via linear algebra and root-finding over finite fields, with successful implementation in seconds for cryptographic parameters.
We present a polynomial time attack of a rank metric code based encryption scheme due to Loidreau for some parameters.
Motivation & Objective
- To analyze the security of Loidreau's rank metric code-based encryption scheme under specific parameter choices.
- To identify structural weaknesses in the scheme when λ=2 and the public code has high rate (R_pub ≥ 1/2).
- To develop a polynomial-time key recovery attack exploiting the hidden structure of the public key.
- To provide a practical cryptanalysis demonstrating the insecurity of certain parameter sets in Loidreau's scheme.
Proposed method
- Construct a distinguisher by analyzing the action of the Frobenius map on the dual of the public code, revealing a hidden structure.
- Compute the dual code C_pub⊥ and its Frobenius shifts C_pub⊥[i] to detect invariants under the Frobenius action.
- Use iterative intersections of Frobenius-shifted dual codes to recover a low-dimensional subspace structure.
- Solve linear systems to recover a pair (u_ij, v_ij) that helps reconstruct the secret code's generator matrix.
- Apply the Cantor–Zassenhaus algorithm to factor a univariate polynomial P_γ over F_q^m to recover the secret parameter γ′.
- Reconstruct the secret Gabidulin code by combining the recovered structure with the public key and known code parameters.
Experimental results
Research questions
- RQ1Can the public key of Loidreau's rank metric code-based scheme be distinguished from a random code when λ=2 and R_pub ≥ 1/2?
- RQ2Is there a polynomial-time key recovery attack on Loidreau's scheme under these parameter conditions?
- RQ3What structural properties of the dual code enable the construction of a distinguisher in this setting?
- RQ4How efficient is the attack in practice for cryptographic parameters?
Key findings
- A polynomial-time key recovery attack is possible when λ=2 and the public code has rate at least 1/2, rendering the scheme insecure for these parameters.
- The attack runs in O(n^ω+1) operations over F_q^m, with a practical Magma implementation recovering keys in a few seconds for parameters like q=2, m=50, n=50, k=32.
- The attack successfully recovers the secret structure (a, γ'Q₀, Q₁) such that C_pub⊥ = G_{n−k}(a') · (Q₀ + γ'Q₁)^T.
- For larger λ, the distinguisher remains valid under the condition n(1−1/λ)+1 < k < n−λ, indicating broader structural vulnerabilities.
- The attack is efficient and practical, with average timings of 0.6s, 1.2s, and 9.5s for parameters (q=2, m=50, n=50, k=32), (m=80, n=70, k=41), and (m=120, n=110, k=65), respectively.
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.